~ubuntu-branches/ubuntu/utopic/gimp/utopic

0.3.7 by Ari Pollak
Import upstream version 2.8.2
1
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1 by Daniel Holbach
Import upstream version 2.2.9
2
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
# Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
6
# This file is free software; the Free Software Foundation
7
# gives unlimited permission to copy and/or distribute it,
8
# with or without modifications, as long as this notice is preserved.
9
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
# PARTICULAR PURPOSE.
14
0.1.1 by Ari Pollak
Import upstream version 2.4.7
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
0.3.7 by Ari Pollak
Import upstream version 2.8.2
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
0.1.1 by Ari Pollak
Import upstream version 2.4.7
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
If you have problems, you may need to regenerate the build system entirely.
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
23
dnl -*- mode: autoconf -*-
24
25
# serial 1
26
27
dnl Usage:
28
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
29
AC_DEFUN([GTK_DOC_CHECK],
30
[
31
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
32
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
33
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
34
35
  dnl check for tools we added during development
36
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
37
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
38
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
39
40
  dnl for overriding the documentation installation directory
41
  AC_ARG_WITH([html-dir],
42
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
43
    [with_html_dir='${datadir}/gtk-doc/html'])
44
  HTML_DIR="$with_html_dir"
45
  AC_SUBST([HTML_DIR])
46
47
  dnl enable/disable documentation building
48
  AC_ARG_ENABLE([gtk-doc],
49
    AS_HELP_STRING([--enable-gtk-doc],
50
                   [use gtk-doc to build documentation [[default=no]]]),,
51
    [enable_gtk_doc=no])
52
53
  if test x$enable_gtk_doc = xyes; then
54
    ifelse([$1],[],
55
      [PKG_CHECK_EXISTS([gtk-doc],,
56
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
57
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
58
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
59
    dnl don't check for glib if we build glib
60
    if test "x$PACKAGE_NAME" != "xglib"; then
61
      dnl don't fail if someone does not have glib
62
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
63
    fi
64
  fi
65
66
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
67
  AC_MSG_RESULT($enable_gtk_doc)
68
69
  dnl enable/disable output formats
70
  AC_ARG_ENABLE([gtk-doc-html],
71
    AS_HELP_STRING([--enable-gtk-doc-html],
72
                   [build documentation in html format [[default=yes]]]),,
73
    [enable_gtk_doc_html=yes])
74
    AC_ARG_ENABLE([gtk-doc-pdf],
75
      AS_HELP_STRING([--enable-gtk-doc-pdf],
76
                     [build documentation in pdf format [[default=no]]]),,
77
      [enable_gtk_doc_pdf=no])
78
79
  if test -z "$GTKDOC_MKPDF"; then
80
    enable_gtk_doc_pdf=no
81
  fi
82
83
84
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
85
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
86
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
87
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
88
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
1.1.7 by Steve Kowalik
Import upstream version 2.4.0~rc3
89
])
90
1 by Daniel Holbach
Import upstream version 2.2.9
91
92
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
93
# serial 42 IT_PROG_INTLTOOL
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
94
AC_DEFUN([IT_PROG_INTLTOOL], [
95
AC_PREREQ([2.50])dnl
96
AC_REQUIRE([AM_NLS])dnl
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
97
98
case "$am__api_version" in
99
    1.[01234])
100
	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
101
    ;;
102
    *)
103
    ;;
104
esac
1 by Daniel Holbach
Import upstream version 2.2.9
105
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
106
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
107
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
108
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1 by Daniel Holbach
Import upstream version 2.2.9
109
if test -n "$1"; then
1.1.5 by Daniel Holbach
Import upstream version 2.3.18
110
    AC_MSG_CHECKING([for intltool >= $1])
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
111
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
112
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
113
	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
1 by Daniel Holbach
Import upstream version 2.2.9
114
fi
115
1.1.15 by Sebastien Bacher
Import upstream version 2.6.0
116
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
117
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
118
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
119
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
120
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
121
fi
122
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
123
if test -z "$AM_DEFAULT_VERBOSITY"; then
124
  AM_DEFAULT_VERBOSITY=1
125
fi
126
AC_SUBST([AM_DEFAULT_VERBOSITY])
127
128
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
129
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
130
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
131
AC_SUBST(INTLTOOL_V_MERGE)
132
AC_SUBST(INTLTOOL__v_MERGE_)
133
AC_SUBST(INTLTOOL__v_MERGE_0)
134
135
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
136
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
137
intltool__v_merge_options_0='-q'
138
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
139
AC_SUBST(intltool__v_merge_options_)
140
AC_SUBST(intltool__v_merge_options_0)
141
142
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
143
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
144
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
145
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
146
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
147
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
148
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
149
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
150
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
151
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
152
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
153
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
154
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
155
else
156
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
157
fi
158
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
159
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
160
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
161
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
162
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
163
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
164
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1 by Daniel Holbach
Import upstream version 2.2.9
165
0.2.2 by Ari Pollak
Import upstream version 2.6.7
166
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
167
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
168
_IT_SUBST(INTLTOOL_KEYS_RULE)
169
_IT_SUBST(INTLTOOL_PROP_RULE)
170
_IT_SUBST(INTLTOOL_OAF_RULE)
171
_IT_SUBST(INTLTOOL_PONG_RULE)
172
_IT_SUBST(INTLTOOL_SERVER_RULE)
173
_IT_SUBST(INTLTOOL_SHEET_RULE)
174
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
175
_IT_SUBST(INTLTOOL_UI_RULE)
176
_IT_SUBST(INTLTOOL_XAM_RULE)
177
_IT_SUBST(INTLTOOL_KBD_RULE)
178
_IT_SUBST(INTLTOOL_XML_RULE)
179
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
180
_IT_SUBST(INTLTOOL_CAVES_RULE)
181
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
182
_IT_SUBST(INTLTOOL_THEME_RULE)
183
_IT_SUBST(INTLTOOL_SERVICE_RULE)
184
_IT_SUBST(INTLTOOL_POLICY_RULE)
1 by Daniel Holbach
Import upstream version 2.2.9
185
1.1.10 by Pedro Fragoso
Import upstream version 2.4.3
186
# Check the gettext tools to make sure they are GNU
187
AC_PATH_PROG(XGETTEXT, xgettext)
188
AC_PATH_PROG(MSGMERGE, msgmerge)
189
AC_PATH_PROG(MSGFMT, msgfmt)
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
190
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1.1.10 by Pedro Fragoso
Import upstream version 2.4.3
191
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
192
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
193
fi
194
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
195
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
196
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
197
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
198
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
199
fi
200
0.2.2 by Ari Pollak
Import upstream version 2.6.7
201
AC_PATH_PROG(INTLTOOL_PERL, perl)
1 by Daniel Holbach
Import upstream version 2.2.9
202
if test -z "$INTLTOOL_PERL"; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
203
   AC_MSG_ERROR([perl not found])
1 by Daniel Holbach
Import upstream version 2.2.9
204
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
205
AC_MSG_CHECKING([for perl >= 5.8.1])
206
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
207
if test $? -ne 0; then
208
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
209
else
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
210
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
0.2.2 by Ari Pollak
Import upstream version 2.6.7
211
   AC_MSG_RESULT([$IT_PERL_VERSION])
1 by Daniel Holbach
Import upstream version 2.2.9
212
fi
213
if test "x$2" != "xno-xml"; then
214
   AC_MSG_CHECKING([for XML::Parser])
215
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
216
       AC_MSG_RESULT([ok])
217
   else
218
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
219
   fi
220
fi
221
1.1.3 by Sebastien Bacher
Import upstream version 2.2.13
222
# Substitute ALL_LINGUAS so we can use it in po/Makefile
223
AC_SUBST(ALL_LINGUAS)
1.1.4 by Daniel Holbach
Import upstream version 2.3.16
224
225
# Set DATADIRNAME correctly if it is not set yet
226
# (copied from glib-gettext.m4)
227
if test -z "$DATADIRNAME"; then
1.1.5 by Daniel Holbach
Import upstream version 2.3.18
228
  AC_LINK_IFELSE(
229
    [AC_LANG_PROGRAM([[]],
230
                     [[extern int _nl_msg_cat_cntr;
231
                       return _nl_msg_cat_cntr]])],
1.1.4 by Daniel Holbach
Import upstream version 2.3.16
232
    [DATADIRNAME=share],
233
    [case $host in
234
    *-*-solaris*)
235
    dnl On Solaris, if bind_textdomain_codeset is in libc,
236
    dnl GNU format message catalog is always supported,
237
    dnl since both are added to the libc all together.
238
    dnl Hence, we'd like to go with DATADIRNAME=share
239
    dnl in this case.
240
    AC_CHECK_FUNC(bind_textdomain_codeset,
241
      [DATADIRNAME=share], [DATADIRNAME=lib])
242
    ;;
243
    *)
244
    [DATADIRNAME=lib]
245
    ;;
246
    esac])
247
fi
248
AC_SUBST(DATADIRNAME)
249
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
250
IT_PO_SUBDIR([po])
251
252
])
253
254
255
# IT_PO_SUBDIR(DIRNAME)
256
# ---------------------
257
# All po subdirs have to be declared with this macro; the subdir "po" is
258
# declared by IT_PROG_INTLTOOL.
259
#
260
AC_DEFUN([IT_PO_SUBDIR],
261
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
262
dnl
0.3.3 by Ari Pollak
Import upstream version 2.6.10
263
dnl The following CONFIG_COMMANDS should be executed at the very end
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
264
dnl of config.status.
265
AC_CONFIG_COMMANDS_PRE([
266
  AC_CONFIG_COMMANDS([$1/stamp-it], [
0.2.2 by Ari Pollak
Import upstream version 2.6.7
267
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
268
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
269
    fi
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
270
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
271
    >"$1/stamp-it.tmp"
272
    [sed '/^#/d
273
	 s/^[[].*] *//
274
	 /^[ 	]*$/d
275
	'"s|^|	$ac_top_srcdir/|" \
276
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
277
    ]
278
    [sed '/^POTFILES =/,/[^\\]$/ {
279
		/^POTFILES =/!d
280
		r $1/POTFILES
281
	  }
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
282
	 ' "$1/Makefile.in" >"$1/Makefile"]
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
283
    rm -f "$1/Makefile.tmp"
284
    mv "$1/stamp-it.tmp" "$1/stamp-it"
285
  ])
286
])dnl
287
])
288
0.2.2 by Ari Pollak
Import upstream version 2.6.7
289
# _IT_SUBST(VARIABLE)
290
# -------------------
291
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
292
#
293
AC_DEFUN([_IT_SUBST],
294
[
295
AC_SUBST([$1])
296
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
297
]
298
)
299
1 by Daniel Holbach
Import upstream version 2.2.9
300
# deprecated macros
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
301
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
302
# A hint is needed for aclocal from Automake <= 1.9.4:
303
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1 by Daniel Holbach
Import upstream version 2.2.9
304
305
306
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
0.2.2 by Ari Pollak
Import upstream version 2.6.7
307
#
308
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
309
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
310
#                 Foundation, Inc.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
311
#   Written by Gordon Matzigkeit, 1996
312
#
313
# This file is free software; the Free Software Foundation gives
314
# unlimited permission to copy and/or distribute it, with or without
315
# modifications, as long as this notice is preserved.
316
317
m4_define([_LT_COPYING], [dnl
318
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
319
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
320
#                 Foundation, Inc.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
321
#   Written by Gordon Matzigkeit, 1996
322
#
323
#   This file is part of GNU Libtool.
324
#
325
# GNU Libtool is free software; you can redistribute it and/or
326
# modify it under the terms of the GNU General Public License as
327
# published by the Free Software Foundation; either version 2 of
328
# the License, or (at your option) any later version.
329
#
330
# As a special exception to the GNU General Public License,
331
# if you distribute this file as part of a program or library that
332
# is built using GNU Libtool, you may include this file under the
333
# same distribution terms that you use for the rest of that program.
334
#
335
# GNU Libtool is distributed in the hope that it will be useful,
336
# but WITHOUT ANY WARRANTY; without even the implied warranty of
337
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
338
# GNU General Public License for more details.
339
#
340
# You should have received a copy of the GNU General Public License
341
# along with GNU Libtool; see the file COPYING.  If not, a copy
342
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
343
# obtained by writing to the Free Software Foundation, Inc.,
344
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
345
])
346
0.3.5 by Ari Pollak
Import upstream version 2.6.12
347
# serial 57 LT_INIT
0.2.2 by Ari Pollak
Import upstream version 2.6.7
348
349
350
# LT_PREREQ(VERSION)
351
# ------------------
352
# Complain and exit if this libtool version is less that VERSION.
353
m4_defun([LT_PREREQ],
354
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
355
       [m4_default([$3],
356
		   [m4_fatal([Libtool version $1 or higher is required],
357
		             63)])],
358
       [$2])])
359
360
361
# _LT_CHECK_BUILDDIR
362
# ------------------
363
# Complain if the absolute build directory name contains unusual characters
364
m4_defun([_LT_CHECK_BUILDDIR],
365
[case `pwd` in
366
  *\ * | *\	*)
367
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
368
esac
369
])
370
371
372
# LT_INIT([OPTIONS])
373
# ------------------
374
AC_DEFUN([LT_INIT],
375
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
0.3.5 by Ari Pollak
Import upstream version 2.6.12
376
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
377
AC_BEFORE([$0], [LT_LANG])dnl
378
AC_BEFORE([$0], [LT_OUTPUT])dnl
379
AC_BEFORE([$0], [LTDL_INIT])dnl
380
m4_require([_LT_CHECK_BUILDDIR])dnl
381
382
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
383
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
384
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
385
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
386
dnl unless we require an AC_DEFUNed macro:
387
AC_REQUIRE([LTOPTIONS_VERSION])dnl
388
AC_REQUIRE([LTSUGAR_VERSION])dnl
389
AC_REQUIRE([LTVERSION_VERSION])dnl
390
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
391
m4_require([_LT_PROG_LTMAIN])dnl
392
0.3.5 by Ari Pollak
Import upstream version 2.6.12
393
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
394
0.2.2 by Ari Pollak
Import upstream version 2.6.7
395
dnl Parse OPTIONS
396
_LT_SET_OPTIONS([$0], [$1])
1 by Daniel Holbach
Import upstream version 2.2.9
397
398
# This can be used to rebuild libtool when needed
0.2.2 by Ari Pollak
Import upstream version 2.6.7
399
LIBTOOL_DEPS="$ltmain"
1 by Daniel Holbach
Import upstream version 2.2.9
400
401
# Always use our own libtool.
402
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
403
AC_SUBST(LIBTOOL)dnl
404
0.2.2 by Ari Pollak
Import upstream version 2.6.7
405
_LT_SETUP
406
407
# Only expand once:
408
m4_define([LT_INIT])
409
])# LT_INIT
410
411
# Old names:
412
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
413
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
414
dnl aclocal-1.4 backwards compatibility:
415
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
416
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
417
418
419
# _LT_CC_BASENAME(CC)
420
# -------------------
421
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
422
m4_defun([_LT_CC_BASENAME],
423
[for cc_temp in $1""; do
424
  case $cc_temp in
425
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
426
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
427
    \-*) ;;
428
    *) break;;
429
  esac
430
done
0.3.5 by Ari Pollak
Import upstream version 2.6.12
431
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
0.2.2 by Ari Pollak
Import upstream version 2.6.7
432
])
433
434
435
# _LT_FILEUTILS_DEFAULTS
436
# ----------------------
437
# It is okay to use these file commands and assume they have been set
438
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
439
m4_defun([_LT_FILEUTILS_DEFAULTS],
440
[: ${CP="cp -f"}
441
: ${MV="mv -f"}
442
: ${RM="rm -f"}
443
])# _LT_FILEUTILS_DEFAULTS
444
445
446
# _LT_SETUP
447
# ---------
448
m4_defun([_LT_SETUP],
449
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
450
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
451
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
452
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
453
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
454
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
455
dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
456
_LT_DECL([], [host_alias], [0], [The host system])dnl
457
_LT_DECL([], [host], [0])dnl
458
_LT_DECL([], [host_os], [0])dnl
459
dnl
460
_LT_DECL([], [build_alias], [0], [The build system])dnl
461
_LT_DECL([], [build], [0])dnl
462
_LT_DECL([], [build_os], [0])dnl
463
dnl
1 by Daniel Holbach
Import upstream version 2.2.9
464
AC_REQUIRE([AC_PROG_CC])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
465
AC_REQUIRE([LT_PATH_LD])dnl
466
AC_REQUIRE([LT_PATH_NM])dnl
467
dnl
1 by Daniel Holbach
Import upstream version 2.2.9
468
AC_REQUIRE([AC_PROG_LN_S])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
469
test -z "$LN_S" && LN_S="ln -s"
470
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
471
dnl
472
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
473
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
474
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
475
dnl
476
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
477
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
478
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
479
m4_require([_LT_CMD_RELOAD])dnl
480
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
481
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
482
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
483
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
484
m4_require([_LT_WITH_SYSROOT])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
485
486
_LT_CONFIG_LIBTOOL_INIT([
487
# See if we are running on zsh, and set the options which allow our
488
# commands through without removal of \ escapes INIT.
489
if test -n "\${ZSH_VERSION+set}" ; then
490
   setopt NO_GLOB_SUBST
491
fi
492
])
493
if test -n "${ZSH_VERSION+set}" ; then
494
   setopt NO_GLOB_SUBST
495
fi
496
497
_LT_CHECK_OBJDIR
498
499
m4_require([_LT_TAG_COMPILER])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
500
501
case $host_os in
502
aix3*)
503
  # AIX sometimes has problems with the GCC collect2 program.  For some
504
  # reason, if we set the COLLECT_NAMES environment variable, the problems
505
  # vanish in a puff of smoke.
506
  if test "X${COLLECT_NAMES+set}" != Xset; then
507
    COLLECT_NAMES=
508
    export COLLECT_NAMES
509
  fi
510
  ;;
511
esac
512
513
# Global variables:
0.2.2 by Ari Pollak
Import upstream version 2.6.7
514
ofile=libtool
1 by Daniel Holbach
Import upstream version 2.2.9
515
can_build_shared=yes
516
517
# All known linkers require a `.a' archive for static linking (except MSVC,
518
# which needs '.lib').
519
libext=a
0.2.2 by Ari Pollak
Import upstream version 2.6.7
520
1 by Daniel Holbach
Import upstream version 2.2.9
521
with_gnu_ld="$lt_cv_prog_gnu_ld"
522
523
old_CC="$CC"
524
old_CFLAGS="$CFLAGS"
525
526
# Set sane defaults for various variables
527
test -z "$CC" && CC=cc
528
test -z "$LTCC" && LTCC=$CC
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
529
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1 by Daniel Holbach
Import upstream version 2.2.9
530
test -z "$LD" && LD=ld
531
test -z "$ac_objext" && ac_objext=o
532
533
_LT_CC_BASENAME([$compiler])
534
535
# Only perform the check for file, if the check method requires it
0.2.2 by Ari Pollak
Import upstream version 2.6.7
536
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1 by Daniel Holbach
Import upstream version 2.2.9
537
case $deplibs_check_method in
538
file_magic*)
539
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
540
    _LT_PATH_MAGIC
1 by Daniel Holbach
Import upstream version 2.2.9
541
  fi
542
  ;;
543
esac
544
545
# Use C for the default configuration in the libtool script
0.2.2 by Ari Pollak
Import upstream version 2.6.7
546
LT_SUPPORTED_TAG([CC])
547
_LT_LANG_C_CONFIG
548
_LT_LANG_DEFAULT_CONFIG
549
_LT_CONFIG_COMMANDS
550
])# _LT_SETUP
551
552
0.3.5 by Ari Pollak
Import upstream version 2.6.12
553
# _LT_PREPARE_SED_QUOTE_VARS
554
# --------------------------
555
# Define a few sed substitution that help us do robust quoting.
556
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
557
[# Backslashify metacharacters that are still active within
558
# double-quoted strings.
559
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
560
561
# Same as above, but do not quote variable references.
562
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
563
564
# Sed substitution to delay expansion of an escaped shell variable in a
565
# double_quote_subst'ed string.
566
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
567
568
# Sed substitution to delay expansion of an escaped single quote.
569
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
570
571
# Sed substitution to avoid accidental globbing in evaled expressions
572
no_glob_subst='s/\*/\\\*/g'
573
])
574
0.2.2 by Ari Pollak
Import upstream version 2.6.7
575
# _LT_PROG_LTMAIN
576
# ---------------
577
# Note that this code is called both from `configure', and `config.status'
578
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
579
# `config.status' has no value for ac_aux_dir unless we are using Automake,
580
# so we pass a copy along to make sure it has a sensible value anyway.
581
m4_defun([_LT_PROG_LTMAIN],
582
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
583
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
584
ltmain="$ac_aux_dir/ltmain.sh"
585
])# _LT_PROG_LTMAIN
586
587
588
589
# So that we can recreate a full libtool script including additional
590
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
591
# in macros and then make a single call at the end using the `libtool'
592
# label.
593
594
595
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
596
# ----------------------------------------
597
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
598
m4_define([_LT_CONFIG_LIBTOOL_INIT],
599
[m4_ifval([$1],
600
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
601
                     [$1
602
])])])
603
604
# Initialize.
605
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
606
607
608
# _LT_CONFIG_LIBTOOL([COMMANDS])
609
# ------------------------------
610
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
611
m4_define([_LT_CONFIG_LIBTOOL],
612
[m4_ifval([$1],
613
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
614
                     [$1
615
])])])
616
617
# Initialize.
618
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
619
620
621
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
622
# -----------------------------------------------------
623
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
624
[_LT_CONFIG_LIBTOOL([$1])
625
_LT_CONFIG_LIBTOOL_INIT([$2])
626
])
627
628
629
# _LT_FORMAT_COMMENT([COMMENT])
630
# -----------------------------
631
# Add leading comment marks to the start of each line, and a trailing
632
# full-stop to the whole comment if one is not present already.
633
m4_define([_LT_FORMAT_COMMENT],
634
[m4_ifval([$1], [
635
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
636
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
637
)])
638
639
640
641
642
643
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
644
# -------------------------------------------------------------------
645
# CONFIGNAME is the name given to the value in the libtool script.
646
# VARNAME is the (base) name used in the configure script.
647
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
648
# VARNAME.  Any other value will be used directly.
649
m4_define([_LT_DECL],
650
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
651
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
652
	[m4_ifval([$1], [$1], [$2])])
653
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
654
    m4_ifval([$4],
655
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
656
    lt_dict_add_subkey([lt_decl_dict], [$2],
657
	[tagged?], [m4_ifval([$5], [yes], [no])])])
658
])
659
660
661
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
662
# --------------------------------------------------------
663
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
664
665
666
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
667
# ------------------------------------------------
668
m4_define([lt_decl_tag_varnames],
669
[_lt_decl_filter([tagged?], [yes], $@)])
670
671
672
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
673
# ---------------------------------------------------------
674
m4_define([_lt_decl_filter],
675
[m4_case([$#],
676
  [0], [m4_fatal([$0: too few arguments: $#])],
677
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
678
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
679
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
680
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
681
])
682
683
684
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
685
# --------------------------------------------------
686
m4_define([lt_decl_quote_varnames],
687
[_lt_decl_filter([value], [1], $@)])
688
689
690
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
691
# ---------------------------------------------------
692
m4_define([lt_decl_dquote_varnames],
693
[_lt_decl_filter([value], [2], $@)])
694
695
696
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
697
# ---------------------------------------------------
698
m4_define([lt_decl_varnames_tagged],
699
[m4_assert([$# <= 2])dnl
700
_$0(m4_quote(m4_default([$1], [[, ]])),
701
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
702
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
703
m4_define([_lt_decl_varnames_tagged],
704
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
705
706
707
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
708
# ------------------------------------------------
709
m4_define([lt_decl_all_varnames],
710
[_$0(m4_quote(m4_default([$1], [[, ]])),
711
     m4_if([$2], [],
712
	   m4_quote(lt_decl_varnames),
713
	m4_quote(m4_shift($@))))[]dnl
714
])
715
m4_define([_lt_decl_all_varnames],
716
[lt_join($@, lt_decl_varnames_tagged([$1],
717
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
718
])
719
720
721
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
722
# ------------------------------------
723
# Quote a variable value, and forward it to `config.status' so that its
724
# declaration there will have the same value as in `configure'.  VARNAME
725
# must have a single quote delimited value for this to work.
726
m4_define([_LT_CONFIG_STATUS_DECLARE],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
727
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
728
729
730
# _LT_CONFIG_STATUS_DECLARATIONS
731
# ------------------------------
732
# We delimit libtool config variables with single quotes, so when
733
# we write them to config.status, we have to be sure to quote all
734
# embedded single quotes properly.  In configure, this macro expands
735
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
736
#
0.3.5 by Ari Pollak
Import upstream version 2.6.12
737
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
738
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
739
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
740
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
741
742
743
# _LT_LIBTOOL_TAGS
744
# ----------------
745
# Output comment and list of tags supported by the script
746
m4_defun([_LT_LIBTOOL_TAGS],
747
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
748
available_tags="_LT_TAGS"dnl
749
])
750
751
752
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
753
# -----------------------------------
754
# Extract the dictionary values for VARNAME (optionally with TAG) and
755
# expand to a commented shell variable setting:
756
#
757
#    # Some comment about what VAR is for.
758
#    visible_name=$lt_internal_name
759
m4_define([_LT_LIBTOOL_DECLARE],
760
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
761
					   [description])))[]dnl
762
m4_pushdef([_libtool_name],
763
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
764
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
765
    [0], [_libtool_name=[$]$1],
766
    [1], [_libtool_name=$lt_[]$1],
767
    [2], [_libtool_name=$lt_[]$1],
768
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
769
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
770
])
771
772
773
# _LT_LIBTOOL_CONFIG_VARS
774
# -----------------------
775
# Produce commented declarations of non-tagged libtool config variables
776
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
777
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
778
# section) are produced by _LT_LIBTOOL_TAG_VARS.
779
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
780
[m4_foreach([_lt_var],
781
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
782
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
783
784
785
# _LT_LIBTOOL_TAG_VARS(TAG)
786
# -------------------------
787
m4_define([_LT_LIBTOOL_TAG_VARS],
788
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
789
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
790
791
792
# _LT_TAGVAR(VARNAME, [TAGNAME])
793
# ------------------------------
794
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
795
796
797
# _LT_CONFIG_COMMANDS
1 by Daniel Holbach
Import upstream version 2.2.9
798
# -------------------
0.2.2 by Ari Pollak
Import upstream version 2.6.7
799
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
800
# variables for single and double quote escaping we saved from calls
801
# to _LT_DECL, we can put quote escaped variables declarations
802
# into `config.status', and then the shell code to quote escape them in
803
# for loops in `config.status'.  Finally, any additional code accumulated
804
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
805
m4_defun([_LT_CONFIG_COMMANDS],
806
[AC_PROVIDE_IFELSE([LT_OUTPUT],
807
	dnl If the libtool generation code has been placed in $CONFIG_LT,
808
	dnl instead of duplicating it all over again into config.status,
809
	dnl then we will have config.status run $CONFIG_LT later, so it
810
	dnl needs to know what name is stored there:
811
        [AC_CONFIG_COMMANDS([libtool],
812
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
813
    dnl If the libtool generation code is destined for config.status,
814
    dnl expand the accumulated commands and init code now:
815
    [AC_CONFIG_COMMANDS([libtool],
816
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
817
])#_LT_CONFIG_COMMANDS
818
819
820
# Initialize.
821
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
822
[
823
824
# The HP-UX ksh and POSIX shell print the target directory to stdout
825
# if CDPATH is set.
826
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
827
828
sed_quote_subst='$sed_quote_subst'
829
double_quote_subst='$double_quote_subst'
830
delay_variable_subst='$delay_variable_subst'
831
_LT_CONFIG_STATUS_DECLARATIONS
832
LTCC='$LTCC'
833
LTCFLAGS='$LTCFLAGS'
834
compiler='$compiler_DEFAULT'
835
0.3.5 by Ari Pollak
Import upstream version 2.6.12
836
# A function that is used when there is no print builtin or printf.
837
func_fallback_echo ()
838
{
839
  eval 'cat <<_LTECHO_EOF
840
\$[]1
841
_LTECHO_EOF'
842
}
843
0.2.2 by Ari Pollak
Import upstream version 2.6.7
844
# Quote evaled strings.
845
for var in lt_decl_all_varnames([[ \
846
]], lt_decl_quote_varnames); do
0.3.5 by Ari Pollak
Import upstream version 2.6.12
847
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
848
    *[[\\\\\\\`\\"\\\$]]*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
849
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
0.2.2 by Ari Pollak
Import upstream version 2.6.7
850
      ;;
851
    *)
852
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
853
      ;;
854
    esac
855
done
856
857
# Double-quote double-evaled strings.
858
for var in lt_decl_all_varnames([[ \
859
]], lt_decl_dquote_varnames); do
0.3.5 by Ari Pollak
Import upstream version 2.6.12
860
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
861
    *[[\\\\\\\`\\"\\\$]]*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
862
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
0.2.2 by Ari Pollak
Import upstream version 2.6.7
863
      ;;
864
    *)
865
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
866
      ;;
867
    esac
868
done
869
870
_LT_OUTPUT_LIBTOOL_INIT
871
])
872
0.3.5 by Ari Pollak
Import upstream version 2.6.12
873
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
874
# ------------------------------------
875
# Generate a child script FILE with all initialization necessary to
876
# reuse the environment learned by the parent script, and make the
877
# file executable.  If COMMENT is supplied, it is inserted after the
878
# `#!' sequence but before initialization text begins.  After this
879
# macro, additional text can be appended to FILE to form the body of
880
# the child script.  The macro ends with non-zero status if the
881
# file could not be fully written (such as if the disk is full).
882
m4_ifdef([AS_INIT_GENERATED],
883
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
884
[m4_defun([_LT_GENERATED_FILE_INIT],
885
[m4_require([AS_PREPARE])]dnl
886
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
887
[lt_write_fail=0
888
cat >$1 <<_ASEOF || lt_write_fail=1
889
#! $SHELL
890
# Generated by $as_me.
891
$2
892
SHELL=\${CONFIG_SHELL-$SHELL}
893
export SHELL
894
_ASEOF
895
cat >>$1 <<\_ASEOF || lt_write_fail=1
896
AS_SHELL_SANITIZE
897
_AS_PREPARE
898
exec AS_MESSAGE_FD>&1
899
_ASEOF
900
test $lt_write_fail = 0 && chmod +x $1[]dnl
901
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
0.2.2 by Ari Pollak
Import upstream version 2.6.7
902
903
# LT_OUTPUT
904
# ---------
905
# This macro allows early generation of the libtool script (before
906
# AC_OUTPUT is called), incase it is used in configure for compilation
907
# tests.
908
AC_DEFUN([LT_OUTPUT],
909
[: ${CONFIG_LT=./config.lt}
910
AC_MSG_NOTICE([creating $CONFIG_LT])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
911
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
912
[# Run this file to recreate a libtool stub with the current configuration.])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
913
0.3.5 by Ari Pollak
Import upstream version 2.6.12
914
cat >>"$CONFIG_LT" <<\_LTEOF
0.2.2 by Ari Pollak
Import upstream version 2.6.7
915
lt_cl_silent=false
916
exec AS_MESSAGE_LOG_FD>>config.log
917
{
918
  echo
919
  AS_BOX([Running $as_me.])
920
} >&AS_MESSAGE_LOG_FD
921
922
lt_cl_help="\
923
\`$as_me' creates a local libtool stub from the current configuration,
924
for use in further configure time tests before the real libtool is
925
generated.
926
927
Usage: $[0] [[OPTIONS]]
928
929
  -h, --help      print this help, then exit
930
  -V, --version   print version number, then exit
931
  -q, --quiet     do not print progress messages
932
  -d, --debug     don't remove temporary files
933
934
Report bugs to <bug-libtool@gnu.org>."
935
936
lt_cl_version="\
937
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
938
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
939
configured by $[0], generated by m4_PACKAGE_STRING.
940
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
941
Copyright (C) 2011 Free Software Foundation, Inc.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
942
This config.lt script is free software; the Free Software Foundation
943
gives unlimited permision to copy, distribute and modify it."
944
945
while test $[#] != 0
946
do
947
  case $[1] in
948
    --version | --v* | -V )
949
      echo "$lt_cl_version"; exit 0 ;;
950
    --help | --h* | -h )
951
      echo "$lt_cl_help"; exit 0 ;;
952
    --debug | --d* | -d )
953
      debug=: ;;
954
    --quiet | --q* | --silent | --s* | -q )
955
      lt_cl_silent=: ;;
956
957
    -*) AC_MSG_ERROR([unrecognized option: $[1]
958
Try \`$[0] --help' for more information.]) ;;
959
960
    *) AC_MSG_ERROR([unrecognized argument: $[1]
961
Try \`$[0] --help' for more information.]) ;;
962
  esac
963
  shift
964
done
965
966
if $lt_cl_silent; then
967
  exec AS_MESSAGE_FD>/dev/null
968
fi
969
_LTEOF
970
971
cat >>"$CONFIG_LT" <<_LTEOF
972
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
973
_LTEOF
974
975
cat >>"$CONFIG_LT" <<\_LTEOF
976
AC_MSG_NOTICE([creating $ofile])
977
_LT_OUTPUT_LIBTOOL_COMMANDS
978
AS_EXIT(0)
979
_LTEOF
980
chmod +x "$CONFIG_LT"
981
982
# configure is writing to config.log, but config.lt does its own redirection,
983
# appending to config.log, which fails on DOS, as config.log is still kept
984
# open by configure.  Here we exec the FD to /dev/null, effectively closing
985
# config.log, so it can be properly (re)opened and appended to by config.lt.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
986
lt_cl_success=:
987
test "$silent" = yes &&
988
  lt_config_lt_args="$lt_config_lt_args --quiet"
989
exec AS_MESSAGE_LOG_FD>/dev/null
990
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
991
exec AS_MESSAGE_LOG_FD>>config.log
992
$lt_cl_success || AS_EXIT(1)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
993
])# LT_OUTPUT
994
995
996
# _LT_CONFIG(TAG)
997
# ---------------
998
# If TAG is the built-in tag, create an initial libtool script with a
999
# default configuration from the untagged config vars.  Otherwise add code
1000
# to config.status for appending the configuration named by TAG from the
1001
# matching tagged config vars.
1002
m4_defun([_LT_CONFIG],
1003
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1004
_LT_CONFIG_SAVE_COMMANDS([
1005
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1006
  m4_if(_LT_TAG, [C], [
1007
    # See if we are running on zsh, and set the options which allow our
1008
    # commands through without removal of \ escapes.
1009
    if test -n "${ZSH_VERSION+set}" ; then
1010
      setopt NO_GLOB_SUBST
1011
    fi
1012
1013
    cfgfile="${ofile}T"
1014
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1015
    $RM "$cfgfile"
1016
1017
    cat <<_LT_EOF >> "$cfgfile"
1018
#! $SHELL
1019
1020
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1021
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1022
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1023
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1024
#
1025
_LT_COPYING
1026
_LT_LIBTOOL_TAGS
1027
1028
# ### BEGIN LIBTOOL CONFIG
1029
_LT_LIBTOOL_CONFIG_VARS
1030
_LT_LIBTOOL_TAG_VARS
1031
# ### END LIBTOOL CONFIG
1032
1033
_LT_EOF
1034
1035
  case $host_os in
1036
  aix3*)
1037
    cat <<\_LT_EOF >> "$cfgfile"
1038
# AIX sometimes has problems with the GCC collect2 program.  For some
1039
# reason, if we set the COLLECT_NAMES environment variable, the problems
1040
# vanish in a puff of smoke.
1041
if test "X${COLLECT_NAMES+set}" != Xset; then
1042
  COLLECT_NAMES=
1043
  export COLLECT_NAMES
1044
fi
1045
_LT_EOF
1046
    ;;
1047
  esac
1048
1049
  _LT_PROG_LTMAIN
1050
1051
  # We use sed instead of cat because bash on DJGPP gets confused if
1052
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1053
  # text mode, it properly converts lines to CR/LF.  This bash problem
1054
  # is reportedly fixed, but why not run on old versions too?
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1055
  sed '$q' "$ltmain" >> "$cfgfile" \
1056
     || (rm -f "$cfgfile"; exit 1)
1057
1058
  _LT_PROG_REPLACE_SHELLFNS
1059
1060
   mv -f "$cfgfile" "$ofile" ||
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1061
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1062
  chmod +x "$ofile"
1063
],
1064
[cat <<_LT_EOF >> "$ofile"
1065
1066
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1067
dnl in a comment (ie after a #).
1068
# ### BEGIN LIBTOOL TAG CONFIG: $1
1069
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1070
# ### END LIBTOOL TAG CONFIG: $1
1071
_LT_EOF
1072
])dnl /m4_if
1073
],
1074
[m4_if([$1], [], [
1075
    PACKAGE='$PACKAGE'
1076
    VERSION='$VERSION'
1077
    TIMESTAMP='$TIMESTAMP'
1078
    RM='$RM'
1079
    ofile='$ofile'], [])
1080
])dnl /_LT_CONFIG_SAVE_COMMANDS
1081
])# _LT_CONFIG
1082
1083
1084
# LT_SUPPORTED_TAG(TAG)
1085
# ---------------------
1086
# Trace this macro to discover what tags are supported by the libtool
1087
# --tag option, using:
1088
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1089
AC_DEFUN([LT_SUPPORTED_TAG], [])
1090
1091
1092
# C support is built-in for now
1093
m4_define([_LT_LANG_C_enabled], [])
1094
m4_define([_LT_TAGS], [])
1095
1096
1097
# LT_LANG(LANG)
1098
# -------------
1099
# Enable libtool support for the given language if not already enabled.
1100
AC_DEFUN([LT_LANG],
1101
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1102
m4_case([$1],
1103
  [C],			[_LT_LANG(C)],
1104
  [C++],		[_LT_LANG(CXX)],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1105
  [Go],			[_LT_LANG(GO)],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1106
  [Java],		[_LT_LANG(GCJ)],
1107
  [Fortran 77],		[_LT_LANG(F77)],
1108
  [Fortran],		[_LT_LANG(FC)],
1109
  [Windows Resource],	[_LT_LANG(RC)],
1110
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1111
    [_LT_LANG($1)],
1112
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1113
])# LT_LANG
1114
1115
1116
# _LT_LANG(LANGNAME)
1117
# ------------------
1118
m4_defun([_LT_LANG],
1119
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1120
  [LT_SUPPORTED_TAG([$1])dnl
1121
  m4_append([_LT_TAGS], [$1 ])dnl
1122
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1123
  _LT_LANG_$1_CONFIG($1)])dnl
1124
])# _LT_LANG
1125
1126
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1127
m4_ifndef([AC_PROG_GO], [
1128
# NOTE: This macro has been submitted for inclusion into   #
1129
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
1130
#  a released version of Autoconf we should remove this    #
1131
#  macro and use it instead.                               #
1132
m4_defun([AC_PROG_GO],
1133
[AC_LANG_PUSH(Go)dnl
1134
AC_ARG_VAR([GOC],     [Go compiler command])dnl
1135
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1136
_AC_ARG_VAR_LDFLAGS()dnl
1137
AC_CHECK_TOOL(GOC, gccgo)
1138
if test -z "$GOC"; then
1139
  if test -n "$ac_tool_prefix"; then
1140
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1141
  fi
1142
fi
1143
if test -z "$GOC"; then
1144
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1145
fi
1146
])#m4_defun
1147
])#m4_ifndef
1148
1149
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1150
# _LT_LANG_DEFAULT_CONFIG
1151
# -----------------------
1152
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1153
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1154
  [LT_LANG(CXX)],
1155
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1156
1157
AC_PROVIDE_IFELSE([AC_PROG_F77],
1158
  [LT_LANG(F77)],
1159
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1160
1161
AC_PROVIDE_IFELSE([AC_PROG_FC],
1162
  [LT_LANG(FC)],
1163
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1164
1165
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1166
dnl pulling things in needlessly.
1167
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1168
  [LT_LANG(GCJ)],
1169
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1170
    [LT_LANG(GCJ)],
1171
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1172
      [LT_LANG(GCJ)],
1173
      [m4_ifdef([AC_PROG_GCJ],
1174
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1175
       m4_ifdef([A][M_PROG_GCJ],
1176
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1177
       m4_ifdef([LT_PROG_GCJ],
1178
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1179
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1180
AC_PROVIDE_IFELSE([AC_PROG_GO],
1181
  [LT_LANG(GO)],
1182
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1183
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1184
AC_PROVIDE_IFELSE([LT_PROG_RC],
1185
  [LT_LANG(RC)],
1186
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1187
])# _LT_LANG_DEFAULT_CONFIG
1188
1189
# Obsolete macros:
1190
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1191
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1192
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1193
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1194
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1195
dnl aclocal-1.4 backwards compatibility:
1196
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1197
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1198
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1199
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1200
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1201
1202
1203
# _LT_TAG_COMPILER
1204
# ----------------
1205
m4_defun([_LT_TAG_COMPILER],
1 by Daniel Holbach
Import upstream version 2.2.9
1206
[AC_REQUIRE([AC_PROG_CC])dnl
1207
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1208
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1209
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1210
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1211
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1212
1 by Daniel Holbach
Import upstream version 2.2.9
1213
# If no C compiler was specified, use CC.
1214
LTCC=${LTCC-"$CC"}
1215
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1216
# If no C compiler flags were specified, use CFLAGS.
1217
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1218
1 by Daniel Holbach
Import upstream version 2.2.9
1219
# Allow CC to be a program name with arguments.
1220
compiler=$CC
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1221
])# _LT_TAG_COMPILER
1 by Daniel Holbach
Import upstream version 2.2.9
1222
1223
1224
# _LT_COMPILER_BOILERPLATE
1225
# ------------------------
1226
# Check for compiler boilerplate output or warnings with
1227
# the simple compiler test code.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1228
m4_defun([_LT_COMPILER_BOILERPLATE],
1229
[m4_require([_LT_DECL_SED])dnl
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1230
ac_outfile=conftest.$ac_objext
1231
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1232
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1 by Daniel Holbach
Import upstream version 2.2.9
1233
_lt_compiler_boilerplate=`cat conftest.err`
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1234
$RM conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
1235
])# _LT_COMPILER_BOILERPLATE
1236
1237
1238
# _LT_LINKER_BOILERPLATE
1239
# ----------------------
1240
# Check for linker boilerplate output or warnings with
1241
# the simple link test code.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1242
m4_defun([_LT_LINKER_BOILERPLATE],
1243
[m4_require([_LT_DECL_SED])dnl
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1244
ac_outfile=conftest.$ac_objext
1245
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1246
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1 by Daniel Holbach
Import upstream version 2.2.9
1247
_lt_linker_boilerplate=`cat conftest.err`
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1248
$RM -r conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
1249
])# _LT_LINKER_BOILERPLATE
1250
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1251
# _LT_REQUIRED_DARWIN_CHECKS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1252
# -------------------------
1253
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1254
  case $host_os in
1255
    rhapsody* | darwin*)
1256
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1257
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1258
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1259
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1260
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1261
    _LT_DECL([], [DSYMUTIL], [1],
1262
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1263
    _LT_DECL([], [NMEDIT], [1],
1264
      [Tool to change global to local symbols on Mac OS X])
1265
    _LT_DECL([], [LIPO], [1],
1266
      [Tool to manipulate fat objects and archives on Mac OS X])
1267
    _LT_DECL([], [OTOOL], [1],
1268
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1269
    _LT_DECL([], [OTOOL64], [1],
1270
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1271
1272
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1273
      [lt_cv_apple_cc_single_mod=no
1274
      if test -z "${LT_MULTI_MODULE}"; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1275
	# By default we will add the -single_module flag. You can override
1276
	# by either setting the environment variable LT_MULTI_MODULE
1277
	# non-empty at configure time, or by adding -multi_module to the
1278
	# link flags.
1279
	rm -rf libconftest.dylib*
1280
	echo "int foo(void){return 1;}" > conftest.c
1281
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1282
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1283
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1284
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1285
        _lt_result=$?
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1286
	# If there is a non-empty error log, and "single_module"
1287
	# appears in it, assume the flag caused a linker warning
1288
        if test -s conftest.err && $GREP single_module conftest.err; then
1289
	  cat conftest.err >&AS_MESSAGE_LOG_FD
1290
	# Otherwise, if the output was created with a 0 exit code from
1291
	# the compiler, it worked.
1292
	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1293
	  lt_cv_apple_cc_single_mod=yes
1294
	else
1295
	  cat conftest.err >&AS_MESSAGE_LOG_FD
1296
	fi
1297
	rm -rf libconftest.dylib*
1298
	rm -f conftest.*
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1299
      fi])
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1300
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1301
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1302
      [lt_cv_ld_exported_symbols_list],
1303
      [lt_cv_ld_exported_symbols_list=no
1304
      save_LDFLAGS=$LDFLAGS
1305
      echo "_main" > conftest.sym
1306
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1307
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1308
	[lt_cv_ld_exported_symbols_list=yes],
1309
	[lt_cv_ld_exported_symbols_list=no])
1310
	LDFLAGS="$save_LDFLAGS"
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1311
    ])
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1312
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1313
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1314
      [lt_cv_ld_force_load=no
1315
      cat > conftest.c << _LT_EOF
1316
int forced_loaded() { return 2;}
1317
_LT_EOF
1318
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1319
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1320
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1321
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1322
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1323
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1324
      cat > conftest.c << _LT_EOF
1325
int main() { return 0;}
1326
_LT_EOF
1327
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1328
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1329
      _lt_result=$?
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1330
      if test -s conftest.err && $GREP force_load conftest.err; then
1331
	cat conftest.err >&AS_MESSAGE_LOG_FD
1332
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1333
	lt_cv_ld_force_load=yes
1334
      else
1335
	cat conftest.err >&AS_MESSAGE_LOG_FD
1336
      fi
1337
        rm -f conftest.err libconftest.a conftest conftest.c
1338
        rm -rf conftest.dSYM
1339
    ])
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1340
    case $host_os in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1341
    rhapsody* | darwin1.[[012]])
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1342
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1343
    darwin1.*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1344
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1345
    darwin*) # darwin 5.x on
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1346
      # if running on 10.5 or later, the deployment target defaults
1347
      # to the OS version, if on x86, and 10.4, the deployment
1348
      # target defaults to 10.4. Don't you love it?
1349
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1350
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1351
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1352
	10.[[012]]*)
1353
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1354
	10.*)
1355
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1356
      esac
1357
    ;;
1358
  esac
1359
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1360
      _lt_dar_single_mod='$single_module'
1361
    fi
1362
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1363
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1364
    else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1365
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1366
    fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1367
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1368
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1369
    else
1370
      _lt_dsymutil=
1371
    fi
1372
    ;;
1373
  esac
1374
])
1 by Daniel Holbach
Import upstream version 2.2.9
1375
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1376
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1377
# _LT_DARWIN_LINKER_FEATURES([TAG])
1378
# ---------------------------------
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1379
# Checks for linker and compiler features on darwin
1380
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1381
[
1382
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1383
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1384
  _LT_TAGVAR(hardcode_direct, $1)=no
1385
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1386
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1387
  if test "$lt_cv_ld_force_load" = "yes"; then
1388
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1389
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1390
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1391
  else
1392
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1393
  fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1394
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1395
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1396
  case $cc_basename in
1397
     ifort*) _lt_dar_can_shared=yes ;;
1398
     *) _lt_dar_can_shared=$GCC ;;
1399
  esac
1400
  if test "$_lt_dar_can_shared" = "yes"; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1401
    output_verbose_link_cmd=func_echo_all
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1402
    _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}"
1403
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1404
    _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}"
1405
    _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}"
1406
    m4_if([$1], [CXX],
1407
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1408
      _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}"
1409
      _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}"
1410
    fi
1411
],[])
1412
  else
1413
  _LT_TAGVAR(ld_shlibs, $1)=no
1414
  fi
1415
])
1416
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1417
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1418
# ----------------------------------
1 by Daniel Holbach
Import upstream version 2.2.9
1419
# Links a minimal program and checks the executable
1420
# for the system default hardcoded library path. In most cases,
1421
# this is /usr/lib:/lib, but when the MPI compilers are used
1422
# the location of the communication and MPI libs are included too.
1423
# If we don't find anything, use the default library path according
1424
# to the aix ld manual.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1425
# Store the results from the different compilers for each TAGNAME.
1426
# Allow to override them for all tags through lt_cv_aix_libpath.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1427
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1428
[m4_require([_LT_DECL_SED])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1429
if test "${lt_cv_aix_libpath+set}" = set; then
1430
  aix_libpath=$lt_cv_aix_libpath
1431
else
1432
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1433
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1434
  lt_aix_libpath_sed='[
1435
      /Import File Strings/,/^$/ {
1436
	  /^0/ {
1437
	      s/^0  *\([^ ]*\) *$/\1/
1438
	      p
1439
	  }
1440
      }]'
1441
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1442
  # Check for a 64-bit object if we didn't find anything.
1443
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1444
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1445
  fi],[])
1446
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1447
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1448
  fi
1449
  ])
1450
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1451
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1452
])# _LT_SYS_MODULE_PATH_AIX
1453
1454
1455
# _LT_SHELL_INIT(ARG)
1456
# -------------------
1457
m4_define([_LT_SHELL_INIT],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1458
[m4_divert_text([M4SH-INIT], [$1
1459
])])# _LT_SHELL_INIT
1460
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1461
1462
1463
# _LT_PROG_ECHO_BACKSLASH
1464
# -----------------------
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1465
# Find how we can fake an echo command that does not interpret backslash.
1466
# In particular, with Autoconf 2.60 or later we add some code to the start
1467
# of the generated configure script which will find a shell with a builtin
1468
# printf (which we can use as an echo command).
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1469
m4_defun([_LT_PROG_ECHO_BACKSLASH],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1470
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1471
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1472
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1473
1474
AC_MSG_CHECKING([how to print strings])
1475
# Test print first, because it will be a builtin if present.
1476
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1477
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1478
  ECHO='print -r --'
1479
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1480
  ECHO='printf %s\n'
1481
else
1482
  # Use this function as a fallback that always works.
1483
  func_fallback_echo ()
1484
  {
1485
    eval 'cat <<_LTECHO_EOF
1486
$[]1
1487
_LTECHO_EOF'
1488
  }
1489
  ECHO='func_fallback_echo'
1490
fi
1491
1492
# func_echo_all arg...
1493
# Invoke $ECHO with all args, space-separated.
1494
func_echo_all ()
1495
{
1496
    $ECHO "$*" 
1497
}
1498
1499
case "$ECHO" in
1500
  printf*) AC_MSG_RESULT([printf]) ;;
1501
  print*) AC_MSG_RESULT([print -r]) ;;
1502
  *) AC_MSG_RESULT([cat]) ;;
1 by Daniel Holbach
Import upstream version 2.2.9
1503
esac
1504
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1505
m4_ifdef([_AS_DETECT_SUGGESTED],
1506
[_AS_DETECT_SUGGESTED([
1507
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1508
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1509
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1510
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1511
    PATH=/empty FPATH=/empty; export PATH FPATH
1512
    test "X`printf %s $ECHO`" = "X$ECHO" \
1513
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1514
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1515
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1516
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1517
])# _LT_PROG_ECHO_BACKSLASH
1518
1519
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1520
# _LT_WITH_SYSROOT
1521
# ----------------
1522
AC_DEFUN([_LT_WITH_SYSROOT],
1523
[AC_MSG_CHECKING([for sysroot])
1524
AC_ARG_WITH([sysroot],
1525
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
1526
                        (or the compiler's sysroot if not specified).],
1527
[], [with_sysroot=no])
1528
1529
dnl lt_sysroot will always be passed unquoted.  We quote it here
1530
dnl in case the user passed a directory name.
1531
lt_sysroot=
1532
case ${with_sysroot} in #(
1533
 yes)
1534
   if test "$GCC" = yes; then
1535
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1536
   fi
1537
   ;; #(
1538
 /*)
1539
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1540
   ;; #(
1541
 no|'')
1542
   ;; #(
1543
 *)
1544
   AC_MSG_RESULT([${with_sysroot}])
1545
   AC_MSG_ERROR([The sysroot must be an absolute path.])
1546
   ;;
1547
esac
1548
1549
 AC_MSG_RESULT([${lt_sysroot:-no}])
1550
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1551
[dependent libraries, and in which our libraries should be installed.])])
1552
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1553
# _LT_ENABLE_LOCK
1554
# ---------------
1555
m4_defun([_LT_ENABLE_LOCK],
1 by Daniel Holbach
Import upstream version 2.2.9
1556
[AC_ARG_ENABLE([libtool-lock],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1557
  [AS_HELP_STRING([--disable-libtool-lock],
1558
    [avoid locking (might break parallel builds)])])
1 by Daniel Holbach
Import upstream version 2.2.9
1559
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1560
1561
# Some flags need to be propagated to the compiler or linker for good
1562
# libtool support.
1563
case $host in
1564
ia64-*-hpux*)
1565
  # Find out which ABI we are using.
1566
  echo 'int i;' > conftest.$ac_ext
1567
  if AC_TRY_EVAL(ac_compile); then
1568
    case `/usr/bin/file conftest.$ac_objext` in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1569
      *ELF-32*)
1570
	HPUX_IA64_MODE="32"
1571
	;;
1572
      *ELF-64*)
1573
	HPUX_IA64_MODE="64"
1574
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
1575
    esac
1576
  fi
1577
  rm -rf conftest*
1578
  ;;
1579
*-*-irix6*)
1580
  # Find out which ABI we are using.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1581
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1 by Daniel Holbach
Import upstream version 2.2.9
1582
  if AC_TRY_EVAL(ac_compile); then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1583
    if test "$lt_cv_prog_gnu_ld" = yes; then
1584
      case `/usr/bin/file conftest.$ac_objext` in
1585
	*32-bit*)
1586
	  LD="${LD-ld} -melf32bsmip"
1587
	  ;;
1588
	*N32*)
1589
	  LD="${LD-ld} -melf32bmipn32"
1590
	  ;;
1591
	*64-bit*)
1592
	  LD="${LD-ld} -melf64bmip"
1593
	;;
1594
      esac
1595
    else
1596
      case `/usr/bin/file conftest.$ac_objext` in
1597
	*32-bit*)
1598
	  LD="${LD-ld} -32"
1599
	  ;;
1600
	*N32*)
1601
	  LD="${LD-ld} -n32"
1602
	  ;;
1603
	*64-bit*)
1604
	  LD="${LD-ld} -64"
1605
	  ;;
1606
      esac
1607
    fi
1 by Daniel Holbach
Import upstream version 2.2.9
1608
  fi
1609
  rm -rf conftest*
1610
  ;;
1611
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1612
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1613
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1 by Daniel Holbach
Import upstream version 2.2.9
1614
  # Find out which ABI we are using.
1615
  echo 'int i;' > conftest.$ac_ext
1616
  if AC_TRY_EVAL(ac_compile); then
1617
    case `/usr/bin/file conftest.o` in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1618
      *32-bit*)
1619
	case $host in
1620
	  x86_64-*kfreebsd*-gnu)
1621
	    LD="${LD-ld} -m elf_i386_fbsd"
1622
	    ;;
1623
	  x86_64-*linux*)
1624
	    LD="${LD-ld} -m elf_i386"
1625
	    ;;
1626
	  ppc64-*linux*|powerpc64-*linux*)
1627
	    LD="${LD-ld} -m elf32ppclinux"
1628
	    ;;
1629
	  s390x-*linux*)
1630
	    LD="${LD-ld} -m elf_s390"
1631
	    ;;
1632
	  sparc64-*linux*)
1633
	    LD="${LD-ld} -m elf32_sparc"
1634
	    ;;
1635
	esac
1636
	;;
1637
      *64-bit*)
1638
	case $host in
1639
	  x86_64-*kfreebsd*-gnu)
1640
	    LD="${LD-ld} -m elf_x86_64_fbsd"
1641
	    ;;
1642
	  x86_64-*linux*)
1643
	    LD="${LD-ld} -m elf_x86_64"
1644
	    ;;
1645
	  ppc*-*linux*|powerpc*-*linux*)
1646
	    LD="${LD-ld} -m elf64ppc"
1647
	    ;;
1648
	  s390*-*linux*|s390*-*tpf*)
1649
	    LD="${LD-ld} -m elf64_s390"
1650
	    ;;
1651
	  sparc*-*linux*)
1652
	    LD="${LD-ld} -m elf64_sparc"
1653
	    ;;
1654
	esac
1655
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
1656
    esac
1657
  fi
1658
  rm -rf conftest*
1659
  ;;
1660
1661
*-*-sco3.2v5*)
1662
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1663
  SAVE_CFLAGS="$CFLAGS"
1664
  CFLAGS="$CFLAGS -belf"
1665
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1666
    [AC_LANG_PUSH(C)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1667
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1 by Daniel Holbach
Import upstream version 2.2.9
1668
     AC_LANG_POP])
1669
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1670
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1671
    CFLAGS="$SAVE_CFLAGS"
1672
  fi
1673
  ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1674
*-*solaris*)
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1675
  # Find out which ABI we are using.
1676
  echo 'int i;' > conftest.$ac_ext
1677
  if AC_TRY_EVAL(ac_compile); then
1678
    case `/usr/bin/file conftest.o` in
1679
    *64-bit*)
1680
      case $lt_cv_prog_gnu_ld in
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1681
      yes*)
1682
        case $host in
1683
        i?86-*-solaris*)
1684
          LD="${LD-ld} -m elf_x86_64"
1685
          ;;
1686
        sparc*-*-solaris*)
1687
          LD="${LD-ld} -m elf64_sparc"
1688
          ;;
1689
        esac
1690
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
1691
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1692
          LD="${LD-ld}_sol2"
1693
        fi
1694
        ;;
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1695
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1696
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
1697
	  LD="${LD-ld} -64"
1698
	fi
1699
	;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1700
      esac
1701
      ;;
1702
    esac
1703
  fi
1704
  rm -rf conftest*
1705
  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
1706
esac
1707
1708
need_locks="$enable_libtool_lock"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1709
])# _LT_ENABLE_LOCK
1710
1711
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1712
# _LT_PROG_AR
1713
# -----------
1714
m4_defun([_LT_PROG_AR],
1715
[AC_CHECK_TOOLS(AR, [ar], false)
1716
: ${AR=ar}
1717
: ${AR_FLAGS=cru}
1718
_LT_DECL([], [AR], [1], [The archiver])
1719
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1720
1721
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1722
  [lt_cv_ar_at_file=no
1723
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1724
     [echo conftest.$ac_objext > conftest.lst
1725
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1726
      AC_TRY_EVAL([lt_ar_try])
1727
      if test "$ac_status" -eq 0; then
1728
	# Ensure the archiver fails upon bogus file names.
1729
	rm -f conftest.$ac_objext libconftest.a
1730
	AC_TRY_EVAL([lt_ar_try])
1731
	if test "$ac_status" -ne 0; then
1732
          lt_cv_ar_at_file=@
1733
        fi
1734
      fi
1735
      rm -f conftest.* libconftest.a
1736
     ])
1737
  ])
1738
1739
if test "x$lt_cv_ar_at_file" = xno; then
1740
  archiver_list_spec=
1741
else
1742
  archiver_list_spec=$lt_cv_ar_at_file
1743
fi
1744
_LT_DECL([], [archiver_list_spec], [1],
1745
  [How to feed a file listing to the archiver])
1746
])# _LT_PROG_AR
1747
1748
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1749
# _LT_CMD_OLD_ARCHIVE
1750
# -------------------
1751
m4_defun([_LT_CMD_OLD_ARCHIVE],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1752
[_LT_PROG_AR
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1753
1754
AC_CHECK_TOOL(STRIP, strip, :)
1755
test -z "$STRIP" && STRIP=:
1756
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1757
1758
AC_CHECK_TOOL(RANLIB, ranlib, :)
1759
test -z "$RANLIB" && RANLIB=:
1760
_LT_DECL([], [RANLIB], [1],
1761
    [Commands used to install an old-style archive])
1762
1763
# Determine commands to create old-style static archives.
1764
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1765
old_postinstall_cmds='chmod 644 $oldlib'
1766
old_postuninstall_cmds=
1767
1768
if test -n "$RANLIB"; then
1769
  case $host_os in
1770
  openbsd*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1771
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1772
    ;;
1773
  *)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1774
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1775
    ;;
1776
  esac
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1777
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1778
fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1779
1780
case $host_os in
1781
  darwin*)
1782
    lock_old_archive_extraction=yes ;;
1783
  *)
1784
    lock_old_archive_extraction=no ;;
1785
esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1786
_LT_DECL([], [old_postinstall_cmds], [2])
1787
_LT_DECL([], [old_postuninstall_cmds], [2])
1788
_LT_TAGDECL([], [old_archive_cmds], [2],
1789
    [Commands used to build an old-style archive])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1790
_LT_DECL([], [lock_old_archive_extraction], [0],
1791
    [Whether to use a lock for old archive extraction])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1792
])# _LT_CMD_OLD_ARCHIVE
1793
1794
1795
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1 by Daniel Holbach
Import upstream version 2.2.9
1796
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1797
# ----------------------------------------------------------------
1798
# Check whether the given compiler option works
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1799
AC_DEFUN([_LT_COMPILER_OPTION],
1800
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1801
m4_require([_LT_DECL_SED])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
1802
AC_CACHE_CHECK([$1], [$2],
1803
  [$2=no
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1804
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1805
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Daniel Holbach
Import upstream version 2.2.9
1806
   lt_compiler_flag="$3"
1807
   # Insert the option either (1) after the last *FLAGS variable, or
1808
   # (2) before a word containing "conftest.", or (3) at the end.
1809
   # Note that $ac_compile itself does not contain backslashes and begins
1810
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1811
   # The option is referenced via a variable to avoid confusing sed.
1812
   lt_compile=`echo "$ac_compile" | $SED \
1813
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1814
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1815
   -e 's:$: $lt_compiler_flag:'`
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1816
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1 by Daniel Holbach
Import upstream version 2.2.9
1817
   (eval "$lt_compile" 2>conftest.err)
1818
   ac_status=$?
1819
   cat conftest.err >&AS_MESSAGE_LOG_FD
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1820
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1 by Daniel Holbach
Import upstream version 2.2.9
1821
   if (exit $ac_status) && test -s "$ac_outfile"; then
1822
     # The compiler can only warn and ignore the option if not recognized
1823
     # So say no if there are warnings other than the usual output.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1824
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1825
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1826
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
1827
       $2=yes
1828
     fi
1829
   fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1830
   $RM conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
1831
])
1832
1833
if test x"[$]$2" = xyes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1834
    m4_if([$5], , :, [$5])
1 by Daniel Holbach
Import upstream version 2.2.9
1835
else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1836
    m4_if([$6], , :, [$6])
1 by Daniel Holbach
Import upstream version 2.2.9
1837
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1838
])# _LT_COMPILER_OPTION
1839
1840
# Old name:
1841
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1842
dnl aclocal-1.4 backwards compatibility:
1843
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1844
1845
1846
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1847
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1848
# ----------------------------------------------------
1849
# Check whether the given linker option works
1850
AC_DEFUN([_LT_LINKER_OPTION],
1851
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852
m4_require([_LT_DECL_SED])dnl
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1853
AC_CACHE_CHECK([$1], [$2],
1 by Daniel Holbach
Import upstream version 2.2.9
1854
  [$2=no
1855
   save_LDFLAGS="$LDFLAGS"
1856
   LDFLAGS="$LDFLAGS $3"
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1857
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Daniel Holbach
Import upstream version 2.2.9
1858
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1859
     # The linker can only warn and ignore the option if not recognized
1860
     # So say no if there are warnings
1861
     if test -s conftest.err; then
1862
       # Append any errors to the config.log.
1863
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1864
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1865
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1 by Daniel Holbach
Import upstream version 2.2.9
1866
       if diff conftest.exp conftest.er2 >/dev/null; then
1867
         $2=yes
1868
       fi
1869
     else
1870
       $2=yes
1871
     fi
1872
   fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1873
   $RM -r conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
1874
   LDFLAGS="$save_LDFLAGS"
1875
])
1876
1877
if test x"[$]$2" = xyes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1878
    m4_if([$4], , :, [$4])
1 by Daniel Holbach
Import upstream version 2.2.9
1879
else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1880
    m4_if([$5], , :, [$5])
1 by Daniel Holbach
Import upstream version 2.2.9
1881
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1882
])# _LT_LINKER_OPTION
1883
1884
# Old name:
1885
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1886
dnl aclocal-1.4 backwards compatibility:
1887
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1888
1889
1890
# LT_CMD_MAX_LEN
1891
#---------------
1892
AC_DEFUN([LT_CMD_MAX_LEN],
1893
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1894
# find the maximum length of command line arguments
1 by Daniel Holbach
Import upstream version 2.2.9
1895
AC_MSG_CHECKING([the maximum length of command line arguments])
1896
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1897
  i=0
1898
  teststring="ABCD"
1899
1900
  case $build_os in
1901
  msdosdjgpp*)
1902
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1903
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1904
    # during glob expansion).  Even if it were fixed, the result of this
1905
    # check would be larger than it should be.
1906
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1907
    ;;
1908
1909
  gnu*)
1910
    # Under GNU Hurd, this test is not required because there is
1911
    # no limit to the length of command line arguments.
1912
    # Libtool will interpret -1 as no limit whatsoever
1913
    lt_cv_sys_max_cmd_len=-1;
1914
    ;;
1915
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1916
  cygwin* | mingw* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
1917
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1918
    # about 5 minutes as the teststring grows exponentially.
1919
    # Worse, since 9x/ME are not pre-emptively multitasking,
1920
    # you end up with a "frozen" computer, even though with patience
1921
    # the test eventually succeeds (with a max line length of 256k).
1922
    # Instead, let's just punt: use the minimum linelength reported by
1923
    # all of the supported platforms: 8192 (on NT/2K/XP).
1924
    lt_cv_sys_max_cmd_len=8192;
1925
    ;;
1926
0.3.5 by Ari Pollak
Import upstream version 2.6.12
1927
  mint*)
1928
    # On MiNT this can take a long time and run out of memory.
1929
    lt_cv_sys_max_cmd_len=8192;
1930
    ;;
1931
1 by Daniel Holbach
Import upstream version 2.2.9
1932
  amigaos*)
1933
    # On AmigaOS with pdksh, this test takes hours, literally.
1934
    # So we just punt and use a minimum line length of 8192.
1935
    lt_cv_sys_max_cmd_len=8192;
1936
    ;;
1937
1938
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1939
    # This has been around since 386BSD, at least.  Likely further.
1940
    if test -x /sbin/sysctl; then
1941
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1942
    elif test -x /usr/sbin/sysctl; then
1943
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1944
    else
1945
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
1946
    fi
1947
    # And add a safety zone
1948
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1949
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1950
    ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1951
1952
  interix*)
1953
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1954
    lt_cv_sys_max_cmd_len=196608
1955
    ;;
1956
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
1957
  os2*)
1958
    # The test takes a long time on OS/2.
1959
    lt_cv_sys_max_cmd_len=8192
1960
    ;;
1961
1 by Daniel Holbach
Import upstream version 2.2.9
1962
  osf*)
1963
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1964
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1965
    # nice to cause kernel panics so lets avoid the loop below.
1966
    # First set a reasonable default.
1967
    lt_cv_sys_max_cmd_len=16384
1968
    #
1969
    if test -x /sbin/sysconfig; then
1970
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1971
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1972
      esac
1973
    fi
1974
    ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1975
  sco3.2v5*)
1976
    lt_cv_sys_max_cmd_len=102400
1977
    ;;
1978
  sysv5* | sco5v6* | sysv4.2uw2*)
1979
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1980
    if test -n "$kargmax"; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1981
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
1982
    else
1983
      lt_cv_sys_max_cmd_len=32768
1984
    fi
1985
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
1986
  *)
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1987
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1988
    if test -n "$lt_cv_sys_max_cmd_len"; then
1989
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1990
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1991
    else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1992
      # Make teststring a little bigger before we do anything with it.
1993
      # a 1K string should be a reasonable start.
1994
      for i in 1 2 3 4 5 6 7 8 ; do
1995
        teststring=$teststring$teststring
1996
      done
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
1997
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
0.2.2 by Ari Pollak
Import upstream version 2.6.7
1998
      # If test is not a shell built-in, we'll probably end up computing a
1999
      # maximum length that is only half of the actual maximum length, but
2000
      # we can't tell.
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2001
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2002
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2003
	      test $i != 17 # 1/2 MB should be enough
2004
      do
2005
        i=`expr $i + 1`
2006
        teststring=$teststring$teststring
2007
      done
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2008
      # Only check the string length outside the loop.
2009
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2010
      teststring=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2011
      # Add a significant safety factor because C++ compilers can tack on
2012
      # massive amounts of additional arguments before passing them to the
2013
      # linker.  It appears as though 1/2 is a usable value.
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2014
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2015
    fi
1 by Daniel Holbach
Import upstream version 2.2.9
2016
    ;;
2017
  esac
2018
])
2019
if test -n $lt_cv_sys_max_cmd_len ; then
2020
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2021
else
2022
  AC_MSG_RESULT(none)
2023
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2024
max_cmd_len=$lt_cv_sys_max_cmd_len
2025
_LT_DECL([], [max_cmd_len], [0],
2026
    [What is the maximum length of a command?])
2027
])# LT_CMD_MAX_LEN
2028
2029
# Old name:
2030
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2031
dnl aclocal-1.4 backwards compatibility:
2032
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2033
2034
2035
# _LT_HEADER_DLFCN
2036
# ----------------
2037
m4_defun([_LT_HEADER_DLFCN],
2038
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2039
])# _LT_HEADER_DLFCN
2040
2041
2042
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2043
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2044
# ----------------------------------------------------------------
2045
m4_defun([_LT_TRY_DLOPEN_SELF],
2046
[m4_require([_LT_HEADER_DLFCN])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
2047
if test "$cross_compiling" = yes; then :
2048
  [$4]
2049
else
2050
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2051
  lt_status=$lt_dlunknown
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2052
  cat > conftest.$ac_ext <<_LT_EOF
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2053
[#line $LINENO "configure"
1 by Daniel Holbach
Import upstream version 2.2.9
2054
#include "confdefs.h"
2055
2056
#if HAVE_DLFCN_H
2057
#include <dlfcn.h>
2058
#endif
2059
2060
#include <stdio.h>
2061
2062
#ifdef RTLD_GLOBAL
2063
#  define LT_DLGLOBAL		RTLD_GLOBAL
2064
#else
2065
#  ifdef DL_GLOBAL
2066
#    define LT_DLGLOBAL		DL_GLOBAL
2067
#  else
2068
#    define LT_DLGLOBAL		0
2069
#  endif
2070
#endif
2071
2072
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2073
   find out it does not work in some platform. */
2074
#ifndef LT_DLLAZY_OR_NOW
2075
#  ifdef RTLD_LAZY
2076
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
2077
#  else
2078
#    ifdef DL_LAZY
2079
#      define LT_DLLAZY_OR_NOW		DL_LAZY
2080
#    else
2081
#      ifdef RTLD_NOW
2082
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
2083
#      else
2084
#        ifdef DL_NOW
2085
#          define LT_DLLAZY_OR_NOW	DL_NOW
2086
#        else
2087
#          define LT_DLLAZY_OR_NOW	0
2088
#        endif
2089
#      endif
2090
#    endif
2091
#  endif
2092
#endif
2093
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2094
/* When -fvisbility=hidden is used, assume the code has been annotated
2095
   correspondingly for the symbols needed.  */
2096
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2097
int fnord () __attribute__((visibility("default")));
2098
#endif
2099
2100
int fnord () { return 42; }
1 by Daniel Holbach
Import upstream version 2.2.9
2101
int main ()
2102
{
2103
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2104
  int status = $lt_dlunknown;
2105
2106
  if (self)
2107
    {
2108
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2109
      else
2110
        {
2111
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
2112
          else puts (dlerror ());
2113
	}
1 by Daniel Holbach
Import upstream version 2.2.9
2114
      /* dlclose (self); */
2115
    }
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2116
  else
2117
    puts (dlerror ());
1 by Daniel Holbach
Import upstream version 2.2.9
2118
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2119
  return status;
1 by Daniel Holbach
Import upstream version 2.2.9
2120
}]
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2121
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
2122
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2123
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2124
    lt_status=$?
2125
    case x$lt_status in
2126
      x$lt_dlno_uscore) $1 ;;
2127
      x$lt_dlneed_uscore) $2 ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2128
      x$lt_dlunknown|x*) $3 ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2129
    esac
2130
  else :
2131
    # compilation failed
2132
    $3
2133
  fi
2134
fi
2135
rm -fr conftest*
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2136
])# _LT_TRY_DLOPEN_SELF
2137
2138
2139
# LT_SYS_DLOPEN_SELF
2140
# ------------------
2141
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2142
[m4_require([_LT_HEADER_DLFCN])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
2143
if test "x$enable_dlopen" != xyes; then
2144
  enable_dlopen=unknown
2145
  enable_dlopen_self=unknown
2146
  enable_dlopen_self_static=unknown
2147
else
2148
  lt_cv_dlopen=no
2149
  lt_cv_dlopen_libs=
2150
2151
  case $host_os in
2152
  beos*)
2153
    lt_cv_dlopen="load_add_on"
2154
    lt_cv_dlopen_libs=
2155
    lt_cv_dlopen_self=yes
2156
    ;;
2157
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2158
  mingw* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
2159
    lt_cv_dlopen="LoadLibrary"
2160
    lt_cv_dlopen_libs=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2161
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2162
2163
  cygwin*)
2164
    lt_cv_dlopen="dlopen"
2165
    lt_cv_dlopen_libs=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2166
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2167
2168
  darwin*)
2169
  # if libdl is installed we need to link against it
2170
    AC_CHECK_LIB([dl], [dlopen],
2171
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2172
    lt_cv_dlopen="dyld"
2173
    lt_cv_dlopen_libs=
2174
    lt_cv_dlopen_self=yes
2175
    ])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2176
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2177
2178
  *)
2179
    AC_CHECK_FUNC([shl_load],
2180
	  [lt_cv_dlopen="shl_load"],
2181
      [AC_CHECK_LIB([dld], [shl_load],
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
2182
	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1 by Daniel Holbach
Import upstream version 2.2.9
2183
	[AC_CHECK_FUNC([dlopen],
2184
	      [lt_cv_dlopen="dlopen"],
2185
	  [AC_CHECK_LIB([dl], [dlopen],
2186
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2187
	    [AC_CHECK_LIB([svld], [dlopen],
2188
		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2189
	      [AC_CHECK_LIB([dld], [dld_link],
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
2190
		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1 by Daniel Holbach
Import upstream version 2.2.9
2191
	      ])
2192
	    ])
2193
	  ])
2194
	])
2195
      ])
2196
    ;;
2197
  esac
2198
2199
  if test "x$lt_cv_dlopen" != xno; then
2200
    enable_dlopen=yes
2201
  else
2202
    enable_dlopen=no
2203
  fi
2204
2205
  case $lt_cv_dlopen in
2206
  dlopen)
2207
    save_CPPFLAGS="$CPPFLAGS"
2208
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2209
2210
    save_LDFLAGS="$LDFLAGS"
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2211
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1 by Daniel Holbach
Import upstream version 2.2.9
2212
2213
    save_LIBS="$LIBS"
2214
    LIBS="$lt_cv_dlopen_libs $LIBS"
2215
2216
    AC_CACHE_CHECK([whether a program can dlopen itself],
2217
	  lt_cv_dlopen_self, [dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2218
	  _LT_TRY_DLOPEN_SELF(
1 by Daniel Holbach
Import upstream version 2.2.9
2219
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2220
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2221
    ])
2222
2223
    if test "x$lt_cv_dlopen_self" = xyes; then
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2224
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1 by Daniel Holbach
Import upstream version 2.2.9
2225
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2226
	  lt_cv_dlopen_self_static, [dnl
2227
	  _LT_TRY_DLOPEN_SELF(
1 by Daniel Holbach
Import upstream version 2.2.9
2228
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2229
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2230
      ])
2231
    fi
2232
2233
    CPPFLAGS="$save_CPPFLAGS"
2234
    LDFLAGS="$save_LDFLAGS"
2235
    LIBS="$save_LIBS"
2236
    ;;
2237
  esac
2238
2239
  case $lt_cv_dlopen_self in
2240
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2241
  *) enable_dlopen_self=unknown ;;
2242
  esac
2243
2244
  case $lt_cv_dlopen_self_static in
2245
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2246
  *) enable_dlopen_self_static=unknown ;;
2247
  esac
2248
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2249
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2250
	 [Whether dlopen is supported])
2251
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2252
	 [Whether dlopen of programs is supported])
2253
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2254
	 [Whether dlopen of statically linked programs is supported])
2255
])# LT_SYS_DLOPEN_SELF
2256
2257
# Old name:
2258
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2259
dnl aclocal-1.4 backwards compatibility:
2260
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2261
2262
2263
# _LT_COMPILER_C_O([TAGNAME])
2264
# ---------------------------
2265
# Check to see if options -c and -o are simultaneously supported by compiler.
2266
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2267
m4_defun([_LT_COMPILER_C_O],
2268
[m4_require([_LT_DECL_SED])dnl
2269
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2270
m4_require([_LT_TAG_COMPILER])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
2271
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2272
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2273
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2274
   $RM -r conftest 2>/dev/null
1 by Daniel Holbach
Import upstream version 2.2.9
2275
   mkdir conftest
2276
   cd conftest
2277
   mkdir out
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2278
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Daniel Holbach
Import upstream version 2.2.9
2279
2280
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2281
   # Insert the option either (1) after the last *FLAGS variable, or
2282
   # (2) before a word containing "conftest.", or (3) at the end.
2283
   # Note that $ac_compile itself does not contain backslashes and begins
2284
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2285
   lt_compile=`echo "$ac_compile" | $SED \
2286
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2287
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2288
   -e 's:$: $lt_compiler_flag:'`
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2289
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1 by Daniel Holbach
Import upstream version 2.2.9
2290
   (eval "$lt_compile" 2>out/conftest.err)
2291
   ac_status=$?
2292
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2293
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1 by Daniel Holbach
Import upstream version 2.2.9
2294
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2295
   then
2296
     # The compiler can only warn and ignore the option if not recognized
2297
     # So say no if there are warnings
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2298
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2299
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2300
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2301
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
2302
     fi
2303
   fi
2304
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2305
   $RM conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
2306
   # SGI C++ compiler will create directory out/ii_files/ for
2307
   # template instantiation
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2308
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2309
   $RM out/* && rmdir out
1 by Daniel Holbach
Import upstream version 2.2.9
2310
   cd ..
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2311
   $RM -r conftest
2312
   $RM conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
2313
])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2314
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2315
	[Does compiler simultaneously support -c and -o options?])
2316
])# _LT_COMPILER_C_O
2317
2318
2319
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2320
# ----------------------------------
1 by Daniel Holbach
Import upstream version 2.2.9
2321
# Check to see if we can do hard links to lock some files if needed
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2322
m4_defun([_LT_COMPILER_FILE_LOCKS],
2323
[m4_require([_LT_ENABLE_LOCK])dnl
2324
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2325
_LT_COMPILER_C_O([$1])
1 by Daniel Holbach
Import upstream version 2.2.9
2326
2327
hard_links="nottested"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2328
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1 by Daniel Holbach
Import upstream version 2.2.9
2329
  # do not overwrite the value of need_locks provided by the user
2330
  AC_MSG_CHECKING([if we can lock with hard links])
2331
  hard_links=yes
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2332
  $RM conftest*
1 by Daniel Holbach
Import upstream version 2.2.9
2333
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2334
  touch conftest.a
2335
  ln conftest.a conftest.b 2>&5 || hard_links=no
2336
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2337
  AC_MSG_RESULT([$hard_links])
2338
  if test "$hard_links" = no; then
2339
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2340
    need_locks=warn
2341
  fi
2342
else
2343
  need_locks=no
2344
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2345
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2346
])# _LT_COMPILER_FILE_LOCKS
2347
2348
2349
# _LT_CHECK_OBJDIR
2350
# ----------------
2351
m4_defun([_LT_CHECK_OBJDIR],
1 by Daniel Holbach
Import upstream version 2.2.9
2352
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2353
[rm -f .libs 2>/dev/null
2354
mkdir .libs 2>/dev/null
2355
if test -d .libs; then
2356
  lt_cv_objdir=.libs
2357
else
2358
  # MS-DOS does not allow filenames that begin with a dot.
2359
  lt_cv_objdir=_libs
2360
fi
2361
rmdir .libs 2>/dev/null])
2362
objdir=$lt_cv_objdir
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2363
_LT_DECL([], [objdir], [0],
2364
         [The name of the directory that contains temporary libtool files])dnl
2365
m4_pattern_allow([LT_OBJDIR])dnl
2366
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2367
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2368
])# _LT_CHECK_OBJDIR
2369
2370
2371
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2372
# --------------------------------------
1 by Daniel Holbach
Import upstream version 2.2.9
2373
# Check hardcoding attributes.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2374
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1 by Daniel Holbach
Import upstream version 2.2.9
2375
[AC_MSG_CHECKING([how to hardcode library paths into programs])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2376
_LT_TAGVAR(hardcode_action, $1)=
2377
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2378
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2379
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1 by Daniel Holbach
Import upstream version 2.2.9
2380
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2381
  # We can hardcode non-existent directories.
2382
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1 by Daniel Holbach
Import upstream version 2.2.9
2383
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2384
     # have to relink, otherwise we might link with an installed library
2385
     # when we should be linking with a yet-to-be-installed one
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2386
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2387
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1 by Daniel Holbach
Import upstream version 2.2.9
2388
    # Linking always hardcodes the temporary library directory.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2389
    _LT_TAGVAR(hardcode_action, $1)=relink
1 by Daniel Holbach
Import upstream version 2.2.9
2390
  else
2391
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2392
    _LT_TAGVAR(hardcode_action, $1)=immediate
1 by Daniel Holbach
Import upstream version 2.2.9
2393
  fi
2394
else
2395
  # We cannot hardcode anything, or else we can only hardcode existing
2396
  # directories.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2397
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1 by Daniel Holbach
Import upstream version 2.2.9
2398
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2399
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1 by Daniel Holbach
Import upstream version 2.2.9
2400
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2401
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2402
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1 by Daniel Holbach
Import upstream version 2.2.9
2403
  # Fast installation is not supported
2404
  enable_fast_install=no
2405
elif test "$shlibpath_overrides_runpath" = yes ||
2406
     test "$enable_shared" = no; then
2407
  # Fast installation is not necessary
2408
  enable_fast_install=needless
2409
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2410
_LT_TAGDECL([], [hardcode_action], [0],
2411
    [How to hardcode a shared library path into an executable])
2412
])# _LT_LINKER_HARDCODE_LIBPATH
2413
2414
2415
# _LT_CMD_STRIPLIB
2416
# ----------------
2417
m4_defun([_LT_CMD_STRIPLIB],
2418
[m4_require([_LT_DECL_EGREP])
2419
striplib=
1 by Daniel Holbach
Import upstream version 2.2.9
2420
old_striplib=
2421
AC_MSG_CHECKING([whether stripping libraries is possible])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2422
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
2423
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2424
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2425
  AC_MSG_RESULT([yes])
2426
else
2427
# FIXME - insert some real tests, host_os isn't really good enough
2428
  case $host_os in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2429
  darwin*)
2430
    if test -n "$STRIP" ; then
2431
      striplib="$STRIP -x"
2432
      old_striplib="$STRIP -S"
2433
      AC_MSG_RESULT([yes])
2434
    else
2435
      AC_MSG_RESULT([no])
2436
    fi
2437
    ;;
2438
  *)
2439
    AC_MSG_RESULT([no])
1 by Daniel Holbach
Import upstream version 2.2.9
2440
    ;;
2441
  esac
2442
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2443
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2444
_LT_DECL([], [striplib], [1])
2445
])# _LT_CMD_STRIPLIB
2446
2447
2448
# _LT_SYS_DYNAMIC_LINKER([TAG])
1 by Daniel Holbach
Import upstream version 2.2.9
2449
# -----------------------------
2450
# PORTME Fill in your ld.so characteristics
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2451
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2452
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2453
m4_require([_LT_DECL_EGREP])dnl
2454
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2455
m4_require([_LT_DECL_OBJDUMP])dnl
2456
m4_require([_LT_DECL_SED])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2457
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2458
AC_MSG_CHECKING([dynamic linker characteristics])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2459
m4_if([$1],
2460
	[], [
1 by Daniel Holbach
Import upstream version 2.2.9
2461
if test "$GCC" = yes; then
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2462
  case $host_os in
2463
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2464
    *) lt_awk_arg="/^libraries:/" ;;
2465
  esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2466
  case $host_os in
2467
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2468
    *) lt_sed_strip_eq="s,=/,/,g" ;;
2469
  esac
2470
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2471
  case $lt_search_path_spec in
2472
  *\;*)
1 by Daniel Holbach
Import upstream version 2.2.9
2473
    # if the path contains ";" then we assume it to be the separator
2474
    # otherwise default to the standard path separator (i.e. ":") - it is
2475
    # assumed that no part of a normal pathname contains ";" but that should
2476
    # okay in the real world where ";" in dirpaths is itself problematic.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2477
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2478
    ;;
2479
  *)
2480
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2481
    ;;
2482
  esac
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2483
  # Ok, now we have the path, separated by spaces, we can step through it
2484
  # and add multilib dir if necessary.
2485
  lt_tmp_lt_search_path_spec=
2486
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2487
  for lt_sys_path in $lt_search_path_spec; do
2488
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2489
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2490
    else
2491
      test -d "$lt_sys_path" && \
2492
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2493
    fi
2494
  done
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2495
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2496
BEGIN {RS=" "; FS="/|\n";} {
2497
  lt_foo="";
2498
  lt_count=0;
2499
  for (lt_i = NF; lt_i > 0; lt_i--) {
2500
    if ($lt_i != "" && $lt_i != ".") {
2501
      if ($lt_i == "..") {
2502
        lt_count++;
2503
      } else {
2504
        if (lt_count == 0) {
2505
          lt_foo="/" $lt_i lt_foo;
2506
        } else {
2507
          lt_count--;
2508
        }
2509
      }
2510
    }
2511
  }
2512
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2513
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2514
}'`
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2515
  # AWK program above erroneously prepends '/' to C:/dos/paths
2516
  # for these hosts.
2517
  case $host_os in
2518
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2519
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2520
  esac
2521
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1 by Daniel Holbach
Import upstream version 2.2.9
2522
else
2523
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2524
fi])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2525
library_names_spec=
2526
libname_spec='lib$name'
2527
soname_spec=
2528
shrext_cmds=".so"
2529
postinstall_cmds=
2530
postuninstall_cmds=
2531
finish_cmds=
2532
finish_eval=
2533
shlibpath_var=
2534
shlibpath_overrides_runpath=unknown
2535
version_type=none
2536
dynamic_linker="$host_os ld.so"
2537
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1 by Daniel Holbach
Import upstream version 2.2.9
2538
need_lib_prefix=unknown
2539
hardcode_into_libs=no
2540
2541
# when you set need_version to no, make sure it does not cause -set_version
2542
# flags to be left without arguments
2543
need_version=unknown
2544
2545
case $host_os in
2546
aix3*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2547
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2548
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2549
  shlibpath_var=LIBPATH
2550
2551
  # AIX 3 has no versioning support, so we append a major version to the name.
2552
  soname_spec='${libname}${release}${shared_ext}$major'
2553
  ;;
2554
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
2555
aix[[4-9]]*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2556
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2557
  need_lib_prefix=no
2558
  need_version=no
2559
  hardcode_into_libs=yes
2560
  if test "$host_cpu" = ia64; then
2561
    # AIX 5 supports IA64
2562
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2563
    shlibpath_var=LD_LIBRARY_PATH
2564
  else
2565
    # With GCC up to 2.95.x, collect2 would create an import file
2566
    # for dependence libraries.  The import file would start with
2567
    # the line `#! .'.  This would cause the generated library to
2568
    # depend on `.', always an invalid library.  This was fixed in
2569
    # development snapshots of GCC prior to 3.0.
2570
    case $host_os in
2571
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2572
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2573
	   echo ' yes '
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2574
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
2575
	:
2576
      else
2577
	can_build_shared=no
2578
      fi
2579
      ;;
2580
    esac
2581
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2582
    # soname into executable. Probably we can add versioning support to
2583
    # collect2, so additional links can be useful in future.
2584
    if test "$aix_use_runtimelinking" = yes; then
2585
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2586
      # instead of lib<name>.a to let people know that these are not
2587
      # typical AIX shared libraries.
2588
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2589
    else
2590
      # We preserve .a as extension for shared libraries through AIX4.2
2591
      # and later when we are not doing run time linking.
2592
      library_names_spec='${libname}${release}.a $libname.a'
2593
      soname_spec='${libname}${release}${shared_ext}$major'
2594
    fi
2595
    shlibpath_var=LIBPATH
2596
  fi
2597
  ;;
2598
2599
amigaos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2600
  case $host_cpu in
2601
  powerpc)
2602
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2603
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2604
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2605
    ;;
2606
  m68k)
2607
    library_names_spec='$libname.ixlibrary $libname.a'
2608
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2609
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2610
    ;;
2611
  esac
1 by Daniel Holbach
Import upstream version 2.2.9
2612
  ;;
2613
2614
beos*)
2615
  library_names_spec='${libname}${shared_ext}'
2616
  dynamic_linker="$host_os ld.so"
2617
  shlibpath_var=LIBRARY_PATH
2618
  ;;
2619
2620
bsdi[[45]]*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2621
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2622
  need_version=no
2623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2624
  soname_spec='${libname}${release}${shared_ext}$major'
2625
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2626
  shlibpath_var=LD_LIBRARY_PATH
2627
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2628
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2629
  # the default ld.so.conf also contains /usr/contrib/lib and
2630
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2631
  # libtool to hard-code these into programs
2632
  ;;
2633
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2634
cygwin* | mingw* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
2635
  version_type=windows
2636
  shrext_cmds=".dll"
2637
  need_version=no
2638
  need_lib_prefix=no
2639
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2640
  case $GCC,$cc_basename in
2641
  yes,*)
2642
    # gcc
1 by Daniel Holbach
Import upstream version 2.2.9
2643
    library_names_spec='$libname.dll.a'
2644
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2645
    postinstall_cmds='base_file=`basename \${file}`~
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2646
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1 by Daniel Holbach
Import upstream version 2.2.9
2647
      dldir=$destdir/`dirname \$dlpath`~
2648
      test -d \$dldir || mkdir -p \$dldir~
2649
      $install_prog $dir/$dlname \$dldir/$dlname~
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2650
      chmod a+x \$dldir/$dlname~
2651
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2652
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2653
      fi'
1 by Daniel Holbach
Import upstream version 2.2.9
2654
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2655
      dlpath=$dir/\$dldll~
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2656
       $RM \$dlpath'
1 by Daniel Holbach
Import upstream version 2.2.9
2657
    shlibpath_overrides_runpath=yes
2658
2659
    case $host_os in
2660
    cygwin*)
2661
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2662
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2663
m4_if([$1], [],[
2664
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
1 by Daniel Holbach
Import upstream version 2.2.9
2665
      ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2666
    mingw* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
2667
      # MinGW DLLs use traditional 'lib' prefix
2668
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2669
      ;;
2670
    pw32*)
2671
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2672
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2673
      ;;
2674
    esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2675
    dynamic_linker='Win32 ld.exe'
2676
    ;;
2677
2678
  *,cl*)
2679
    # Native MSVC
2680
    libname_spec='$name'
2681
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2682
    library_names_spec='${libname}.dll.lib'
2683
2684
    case $build_os in
2685
    mingw*)
2686
      sys_lib_search_path_spec=
2687
      lt_save_ifs=$IFS
2688
      IFS=';'
2689
      for lt_path in $LIB
2690
      do
2691
        IFS=$lt_save_ifs
2692
        # Let DOS variable expansion print the short 8.3 style file name.
2693
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2694
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2695
      done
2696
      IFS=$lt_save_ifs
2697
      # Convert to MSYS style.
2698
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2699
      ;;
2700
    cygwin*)
2701
      # Convert to unix form, then to dos form, then back to unix form
2702
      # but this time dos style (no spaces!) so that the unix form looks
2703
      # like /cygdrive/c/PROGRA~1:/cygdr...
2704
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2705
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2706
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2707
      ;;
2708
    *)
2709
      sys_lib_search_path_spec="$LIB"
2710
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2711
        # It is most probably a Windows format PATH.
2712
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2713
      else
2714
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2715
      fi
2716
      # FIXME: find the short name or the path components, as spaces are
2717
      # common. (e.g. "Program Files" -> "PROGRA~1")
2718
      ;;
2719
    esac
2720
2721
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2722
    postinstall_cmds='base_file=`basename \${file}`~
2723
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2724
      dldir=$destdir/`dirname \$dlpath`~
2725
      test -d \$dldir || mkdir -p \$dldir~
2726
      $install_prog $dir/$dlname \$dldir/$dlname'
2727
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2728
      dlpath=$dir/\$dldll~
2729
       $RM \$dlpath'
2730
    shlibpath_overrides_runpath=yes
2731
    dynamic_linker='Win32 link.exe'
1 by Daniel Holbach
Import upstream version 2.2.9
2732
    ;;
2733
2734
  *)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2735
    # Assume MSVC wrapper
1 by Daniel Holbach
Import upstream version 2.2.9
2736
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2737
    dynamic_linker='Win32 ld.exe'
1 by Daniel Holbach
Import upstream version 2.2.9
2738
    ;;
2739
  esac
2740
  # FIXME: first we should search . and the directory the executable is in
2741
  shlibpath_var=PATH
2742
  ;;
2743
2744
darwin* | rhapsody*)
2745
  dynamic_linker="$host_os dyld"
2746
  version_type=darwin
2747
  need_lib_prefix=no
2748
  need_version=no
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2749
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1 by Daniel Holbach
Import upstream version 2.2.9
2750
  soname_spec='${libname}${release}${major}$shared_ext'
2751
  shlibpath_overrides_runpath=yes
2752
  shlibpath_var=DYLD_LIBRARY_PATH
2753
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2754
m4_if([$1], [],[
2755
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1 by Daniel Holbach
Import upstream version 2.2.9
2756
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2757
  ;;
2758
2759
dgux*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2760
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2761
  need_lib_prefix=no
2762
  need_version=no
2763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2764
  soname_spec='${libname}${release}${shared_ext}$major'
2765
  shlibpath_var=LD_LIBRARY_PATH
2766
  ;;
2767
2768
freebsd* | dragonfly*)
2769
  # DragonFly does not have aout.  When/if they implement a new
2770
  # versioning mechanism, adjust this.
2771
  if test -x /usr/bin/objformat; then
2772
    objformat=`/usr/bin/objformat`
2773
  else
2774
    case $host_os in
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2775
    freebsd[[23]].*) objformat=aout ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2776
    *) objformat=elf ;;
2777
    esac
2778
  fi
2779
  version_type=freebsd-$objformat
2780
  case $version_type in
2781
    freebsd-elf*)
2782
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2783
      need_version=no
2784
      need_lib_prefix=no
2785
      ;;
2786
    freebsd-*)
2787
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2788
      need_version=yes
2789
      ;;
2790
  esac
2791
  shlibpath_var=LD_LIBRARY_PATH
2792
  case $host_os in
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2793
  freebsd2.*)
1 by Daniel Holbach
Import upstream version 2.2.9
2794
    shlibpath_overrides_runpath=yes
2795
    ;;
2796
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2797
    shlibpath_overrides_runpath=yes
2798
    hardcode_into_libs=yes
2799
    ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2800
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2801
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1 by Daniel Holbach
Import upstream version 2.2.9
2802
    shlibpath_overrides_runpath=no
2803
    hardcode_into_libs=yes
2804
    ;;
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2805
  *) # from 4.6 on, and DragonFly
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2806
    shlibpath_overrides_runpath=yes
2807
    hardcode_into_libs=yes
2808
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
2809
  esac
2810
  ;;
2811
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2812
haiku*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2813
  version_type=linux # correct to gnu/linux during the next big refactor
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2814
  need_lib_prefix=no
2815
  need_version=no
2816
  dynamic_linker="$host_os runtime_loader"
2817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2818
  soname_spec='${libname}${release}${shared_ext}$major'
2819
  shlibpath_var=LIBRARY_PATH
2820
  shlibpath_overrides_runpath=yes
2821
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2822
  hardcode_into_libs=yes
2823
  ;;
2824
1 by Daniel Holbach
Import upstream version 2.2.9
2825
hpux9* | hpux10* | hpux11*)
2826
  # Give a soname corresponding to the major version so that dld.sl refuses to
2827
  # link against other versions.
2828
  version_type=sunos
2829
  need_lib_prefix=no
2830
  need_version=no
2831
  case $host_cpu in
2832
  ia64*)
2833
    shrext_cmds='.so'
2834
    hardcode_into_libs=yes
2835
    dynamic_linker="$host_os dld.so"
2836
    shlibpath_var=LD_LIBRARY_PATH
2837
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2838
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2839
    soname_spec='${libname}${release}${shared_ext}$major'
2840
    if test "X$HPUX_IA64_MODE" = X32; then
2841
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2842
    else
2843
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2844
    fi
2845
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2846
    ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2847
  hppa*64*)
2848
    shrext_cmds='.sl'
2849
    hardcode_into_libs=yes
2850
    dynamic_linker="$host_os dld.sl"
2851
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2852
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2853
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2854
    soname_spec='${libname}${release}${shared_ext}$major'
2855
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2856
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2857
    ;;
2858
  *)
1 by Daniel Holbach
Import upstream version 2.2.9
2859
    shrext_cmds='.sl'
2860
    dynamic_linker="$host_os dld.sl"
2861
    shlibpath_var=SHLIB_PATH
2862
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2863
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2864
    soname_spec='${libname}${release}${shared_ext}$major'
2865
    ;;
2866
  esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2867
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1 by Daniel Holbach
Import upstream version 2.2.9
2868
  postinstall_cmds='chmod 555 $lib'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2869
  # or fails outright, so override atomically:
2870
  install_override_mode=555
1 by Daniel Holbach
Import upstream version 2.2.9
2871
  ;;
2872
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
2873
interix[[3-9]]*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2874
  version_type=linux # correct to gnu/linux during the next big refactor
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
2875
  need_lib_prefix=no
2876
  need_version=no
2877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2878
  soname_spec='${libname}${release}${shared_ext}$major'
2879
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2880
  shlibpath_var=LD_LIBRARY_PATH
2881
  shlibpath_overrides_runpath=no
2882
  hardcode_into_libs=yes
2883
  ;;
2884
1 by Daniel Holbach
Import upstream version 2.2.9
2885
irix5* | irix6* | nonstopux*)
2886
  case $host_os in
2887
    nonstopux*) version_type=nonstopux ;;
2888
    *)
2889
	if test "$lt_cv_prog_gnu_ld" = yes; then
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2890
		version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2891
	else
2892
		version_type=irix
2893
	fi ;;
2894
  esac
2895
  need_lib_prefix=no
2896
  need_version=no
2897
  soname_spec='${libname}${release}${shared_ext}$major'
2898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2899
  case $host_os in
2900
  irix5* | nonstopux*)
2901
    libsuff= shlibsuff=
2902
    ;;
2903
  *)
2904
    case $LD in # libtool.m4 will add one of these switches to LD
2905
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2906
      libsuff= shlibsuff= libmagic=32-bit;;
2907
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2908
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2909
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2910
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2911
    *) libsuff= shlibsuff= libmagic=never-match;;
2912
    esac
2913
    ;;
2914
  esac
2915
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2916
  shlibpath_overrides_runpath=no
2917
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2918
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2919
  hardcode_into_libs=yes
2920
  ;;
2921
2922
# No shared lib support for Linux oldld, aout, or coff.
2923
linux*oldld* | linux*aout* | linux*coff*)
2924
  dynamic_linker=no
2925
  ;;
2926
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2927
# This must be glibc/ELF.
0.3.7 by Ari Pollak
Import upstream version 2.8.2
2928
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2929
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
2930
  need_lib_prefix=no
2931
  need_version=no
2932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2933
  soname_spec='${libname}${release}${shared_ext}$major'
2934
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2935
  shlibpath_var=LD_LIBRARY_PATH
2936
  shlibpath_overrides_runpath=no
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2937
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2938
  # Some binutils ld are patched to set DT_RUNPATH
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2939
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2940
    [lt_cv_shlibpath_overrides_runpath=no
2941
    save_LDFLAGS=$LDFLAGS
2942
    save_libdir=$libdir
2943
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2944
	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2945
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2946
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2947
	 [lt_cv_shlibpath_overrides_runpath=yes])])
2948
    LDFLAGS=$save_LDFLAGS
2949
    libdir=$save_libdir
2950
    ])
2951
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2952
1 by Daniel Holbach
Import upstream version 2.2.9
2953
  # This implies no fast_install, which is unacceptable.
2954
  # Some rework will be needed to allow for fast_install
2955
  # before this can be enabled.
2956
  hardcode_into_libs=yes
2957
2958
  # Append ld.so.conf contents to the search path
2959
  if test -f /etc/ld.so.conf; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
2960
    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;s/"//g;/^$/d' | tr '\n' ' '`
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2961
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1 by Daniel Holbach
Import upstream version 2.2.9
2962
  fi
2963
2964
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2965
  # powerpc, because MkLinux only supported shared libraries with the
2966
  # GNU dynamic linker.  Since this was broken with cross compilers,
2967
  # most powerpc-linux boxes support dynamic linking these days and
2968
  # people can always --disable-shared, the test was removed, and we
2969
  # assume the GNU/Linux dynamic linker is in use.
2970
  dynamic_linker='GNU/Linux ld.so'
2971
  ;;
2972
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
2973
netbsdelf*-gnu)
2974
  version_type=linux
2975
  need_lib_prefix=no
2976
  need_version=no
2977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2978
  soname_spec='${libname}${release}${shared_ext}$major'
2979
  shlibpath_var=LD_LIBRARY_PATH
2980
  shlibpath_overrides_runpath=no
2981
  hardcode_into_libs=yes
2982
  dynamic_linker='NetBSD ld.elf_so'
2983
  ;;
2984
1 by Daniel Holbach
Import upstream version 2.2.9
2985
netbsd*)
2986
  version_type=sunos
2987
  need_lib_prefix=no
2988
  need_version=no
0.2.2 by Ari Pollak
Import upstream version 2.6.7
2989
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
2990
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2991
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2992
    dynamic_linker='NetBSD (a.out) ld.so'
2993
  else
2994
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2995
    soname_spec='${libname}${release}${shared_ext}$major'
2996
    dynamic_linker='NetBSD ld.elf_so'
2997
  fi
2998
  shlibpath_var=LD_LIBRARY_PATH
2999
  shlibpath_overrides_runpath=yes
3000
  hardcode_into_libs=yes
3001
  ;;
3002
3003
newsos6)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3004
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
3005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3006
  shlibpath_var=LD_LIBRARY_PATH
3007
  shlibpath_overrides_runpath=yes
3008
  ;;
3009
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3010
*nto* | *qnx*)
3011
  version_type=qnx
1 by Daniel Holbach
Import upstream version 2.2.9
3012
  need_lib_prefix=no
3013
  need_version=no
3014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3015
  soname_spec='${libname}${release}${shared_ext}$major'
3016
  shlibpath_var=LD_LIBRARY_PATH
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3017
  shlibpath_overrides_runpath=no
3018
  hardcode_into_libs=yes
3019
  dynamic_linker='ldqnx.so'
1 by Daniel Holbach
Import upstream version 2.2.9
3020
  ;;
3021
3022
openbsd*)
3023
  version_type=sunos
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3024
  sys_lib_dlsearch_path_spec="/usr/lib"
1 by Daniel Holbach
Import upstream version 2.2.9
3025
  need_lib_prefix=no
3026
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3027
  case $host_os in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3028
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
3029
    *)				need_version=no  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
3030
  esac
3031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3032
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3033
  shlibpath_var=LD_LIBRARY_PATH
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3034
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Daniel Holbach
Import upstream version 2.2.9
3035
    case $host_os in
3036
      openbsd2.[[89]] | openbsd2.[[89]].*)
3037
	shlibpath_overrides_runpath=no
3038
	;;
3039
      *)
3040
	shlibpath_overrides_runpath=yes
3041
	;;
3042
      esac
3043
  else
3044
    shlibpath_overrides_runpath=yes
3045
  fi
3046
  ;;
3047
3048
os2*)
3049
  libname_spec='$name'
3050
  shrext_cmds=".dll"
3051
  need_lib_prefix=no
3052
  library_names_spec='$libname${shared_ext} $libname.a'
3053
  dynamic_linker='OS/2 ld.exe'
3054
  shlibpath_var=LIBPATH
3055
  ;;
3056
3057
osf3* | osf4* | osf5*)
3058
  version_type=osf
3059
  need_lib_prefix=no
3060
  need_version=no
3061
  soname_spec='${libname}${release}${shared_ext}$major'
3062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3063
  shlibpath_var=LD_LIBRARY_PATH
3064
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3065
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3066
  ;;
3067
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3068
rdos*)
3069
  dynamic_linker=no
3070
  ;;
3071
1 by Daniel Holbach
Import upstream version 2.2.9
3072
solaris*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3073
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
3074
  need_lib_prefix=no
3075
  need_version=no
3076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3077
  soname_spec='${libname}${release}${shared_ext}$major'
3078
  shlibpath_var=LD_LIBRARY_PATH
3079
  shlibpath_overrides_runpath=yes
3080
  hardcode_into_libs=yes
3081
  # ldd complains unless libraries are executable
3082
  postinstall_cmds='chmod +x $lib'
3083
  ;;
3084
3085
sunos4*)
3086
  version_type=sunos
3087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3088
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3089
  shlibpath_var=LD_LIBRARY_PATH
3090
  shlibpath_overrides_runpath=yes
3091
  if test "$with_gnu_ld" = yes; then
3092
    need_lib_prefix=no
3093
  fi
3094
  need_version=yes
3095
  ;;
3096
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3097
sysv4 | sysv4.3*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3098
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
3099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3100
  soname_spec='${libname}${release}${shared_ext}$major'
3101
  shlibpath_var=LD_LIBRARY_PATH
3102
  case $host_vendor in
3103
    sni)
3104
      shlibpath_overrides_runpath=no
3105
      need_lib_prefix=no
3106
      runpath_var=LD_RUN_PATH
3107
      ;;
3108
    siemens)
3109
      need_lib_prefix=no
3110
      ;;
3111
    motorola)
3112
      need_lib_prefix=no
3113
      need_version=no
3114
      shlibpath_overrides_runpath=no
3115
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3116
      ;;
3117
  esac
3118
  ;;
3119
3120
sysv4*MP*)
3121
  if test -d /usr/nec ;then
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3122
    version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
3123
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3124
    soname_spec='$libname${shared_ext}.$major'
3125
    shlibpath_var=LD_LIBRARY_PATH
3126
  fi
3127
  ;;
3128
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3129
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3130
  version_type=freebsd-elf
3131
  need_lib_prefix=no
3132
  need_version=no
3133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3134
  soname_spec='${libname}${release}${shared_ext}$major'
3135
  shlibpath_var=LD_LIBRARY_PATH
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3136
  shlibpath_overrides_runpath=yes
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3137
  hardcode_into_libs=yes
3138
  if test "$with_gnu_ld" = yes; then
3139
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3140
  else
3141
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3142
    case $host_os in
3143
      sco3.2v5*)
3144
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3145
	;;
3146
    esac
3147
  fi
3148
  sys_lib_dlsearch_path_spec='/usr/lib'
3149
  ;;
3150
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3151
tpf*)
3152
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3153
  version_type=linux # correct to gnu/linux during the next big refactor
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3154
  need_lib_prefix=no
3155
  need_version=no
3156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3157
  shlibpath_var=LD_LIBRARY_PATH
3158
  shlibpath_overrides_runpath=no
3159
  hardcode_into_libs=yes
3160
  ;;
3161
1 by Daniel Holbach
Import upstream version 2.2.9
3162
uts4*)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3163
  version_type=linux # correct to gnu/linux during the next big refactor
1 by Daniel Holbach
Import upstream version 2.2.9
3164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3165
  soname_spec='${libname}${release}${shared_ext}$major'
3166
  shlibpath_var=LD_LIBRARY_PATH
3167
  ;;
3168
3169
*)
3170
  dynamic_linker=no
3171
  ;;
3172
esac
3173
AC_MSG_RESULT([$dynamic_linker])
3174
test "$dynamic_linker" = no && can_build_shared=no
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3175
3176
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3177
if test "$GCC" = yes; then
3178
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3179
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3180
3181
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3182
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3183
fi
3184
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3185
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3186
fi
3187
3188
_LT_DECL([], [variables_saved_for_relink], [1],
3189
    [Variables whose values should be saved in libtool wrapper scripts and
3190
    restored at link time])
3191
_LT_DECL([], [need_lib_prefix], [0],
3192
    [Do we need the "lib" prefix for modules?])
3193
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3194
_LT_DECL([], [version_type], [0], [Library versioning type])
3195
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3196
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3197
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3198
    [Is shlibpath searched before the hard-coded library search path?])
3199
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3200
_LT_DECL([], [library_names_spec], [1],
3201
    [[List of archive names.  First name is the real one, the rest are links.
3202
    The last name is the one that the linker finds with -lNAME]])
3203
_LT_DECL([], [soname_spec], [1],
3204
    [[The coded name of the library, if different from the real name]])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3205
_LT_DECL([], [install_override_mode], [1],
3206
    [Permission mode override for installation of shared libraries])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3207
_LT_DECL([], [postinstall_cmds], [2],
3208
    [Command to use after installation of a shared archive])
3209
_LT_DECL([], [postuninstall_cmds], [2],
3210
    [Command to use after uninstallation of a shared archive])
3211
_LT_DECL([], [finish_cmds], [2],
3212
    [Commands used to finish a libtool library installation in a directory])
3213
_LT_DECL([], [finish_eval], [1],
3214
    [[As "finish_cmds", except a single script fragment to be evaled but
3215
    not shown]])
3216
_LT_DECL([], [hardcode_into_libs], [0],
3217
    [Whether we should hardcode library paths into libraries])
3218
_LT_DECL([], [sys_lib_search_path_spec], [2],
3219
    [Compile-time system search path for libraries])
3220
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3221
    [Run-time system search path for libraries])
3222
])# _LT_SYS_DYNAMIC_LINKER
3223
3224
3225
# _LT_PATH_TOOL_PREFIX(TOOL)
1 by Daniel Holbach
Import upstream version 2.2.9
3226
# --------------------------
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3227
# find a file program which can recognize shared library
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3228
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3229
[m4_require([_LT_DECL_EGREP])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
3230
AC_MSG_CHECKING([for $1])
3231
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3232
[case $MAGIC_CMD in
3233
[[\\/*] |  ?:[\\/]*])
3234
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3235
  ;;
3236
*)
3237
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3238
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3239
dnl $ac_dummy forces splitting on constant user-supplied paths.
3240
dnl POSIX.2 word splitting is done only on the output of word expansions,
3241
dnl not every word.  This closes a longstanding sh security hole.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3242
  ac_dummy="m4_if([$2], , $PATH, [$2])"
1 by Daniel Holbach
Import upstream version 2.2.9
3243
  for ac_dir in $ac_dummy; do
3244
    IFS="$lt_save_ifs"
3245
    test -z "$ac_dir" && ac_dir=.
3246
    if test -f $ac_dir/$1; then
3247
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3248
      if test -n "$file_magic_test_file"; then
3249
	case $deplibs_check_method in
3250
	"file_magic "*)
3251
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3252
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3253
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3254
	    $EGREP "$file_magic_regex" > /dev/null; then
3255
	    :
3256
	  else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3257
	    cat <<_LT_EOF 1>&2
1 by Daniel Holbach
Import upstream version 2.2.9
3258
3259
*** Warning: the command libtool uses to detect shared libraries,
3260
*** $file_magic_cmd, produces output that libtool cannot recognize.
3261
*** The result is that libtool may fail to recognize shared libraries
3262
*** as such.  This will affect the creation of libtool libraries that
3263
*** depend on shared libraries, but programs linked with such libtool
3264
*** libraries will work regardless of this problem.  Nevertheless, you
3265
*** may want to report the problem to your system manager and/or to
3266
*** bug-libtool@gnu.org
3267
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3268
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
3269
	  fi ;;
3270
	esac
3271
      fi
3272
      break
3273
    fi
3274
  done
3275
  IFS="$lt_save_ifs"
3276
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3277
  ;;
3278
esac])
3279
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3280
if test -n "$MAGIC_CMD"; then
3281
  AC_MSG_RESULT($MAGIC_CMD)
3282
else
3283
  AC_MSG_RESULT(no)
3284
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3285
_LT_DECL([], [MAGIC_CMD], [0],
3286
	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3287
])# _LT_PATH_TOOL_PREFIX
3288
3289
# Old name:
3290
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3291
dnl aclocal-1.4 backwards compatibility:
3292
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3293
3294
3295
# _LT_PATH_MAGIC
3296
# --------------
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3297
# find a file program which can recognize a shared library
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3298
m4_defun([_LT_PATH_MAGIC],
3299
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1 by Daniel Holbach
Import upstream version 2.2.9
3300
if test -z "$lt_cv_path_MAGIC_CMD"; then
3301
  if test -n "$ac_tool_prefix"; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3302
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1 by Daniel Holbach
Import upstream version 2.2.9
3303
  else
3304
    MAGIC_CMD=:
3305
  fi
3306
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3307
])# _LT_PATH_MAGIC
3308
3309
3310
# LT_PATH_LD
1 by Daniel Holbach
Import upstream version 2.2.9
3311
# ----------
3312
# find the pathname to the GNU or non-GNU linker
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3313
AC_DEFUN([LT_PATH_LD],
3314
[AC_REQUIRE([AC_PROG_CC])dnl
3315
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3316
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3317
m4_require([_LT_DECL_SED])dnl
3318
m4_require([_LT_DECL_EGREP])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3319
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3320
3321
AC_ARG_WITH([gnu-ld],
3322
    [AS_HELP_STRING([--with-gnu-ld],
1 by Daniel Holbach
Import upstream version 2.2.9
3323
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3324
    [test "$withval" = no || with_gnu_ld=yes],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3325
    [with_gnu_ld=no])dnl
3326
1 by Daniel Holbach
Import upstream version 2.2.9
3327
ac_prog=ld
3328
if test "$GCC" = yes; then
3329
  # Check if gcc -print-prog-name=ld gives a path.
3330
  AC_MSG_CHECKING([for ld used by $CC])
3331
  case $host in
3332
  *-*-mingw*)
3333
    # gcc leaves a trailing carriage return which upsets mingw
3334
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3335
  *)
3336
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3337
  esac
3338
  case $ac_prog in
3339
    # Accept absolute paths.
3340
    [[\\/]]* | ?:[[\\/]]*)
3341
      re_direlt='/[[^/]][[^/]]*/\.\./'
3342
      # Canonicalize the pathname of ld
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3343
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3344
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3345
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Daniel Holbach
Import upstream version 2.2.9
3346
      done
3347
      test -z "$LD" && LD="$ac_prog"
3348
      ;;
3349
  "")
3350
    # If it fails, then pretend we aren't using GCC.
3351
    ac_prog=ld
3352
    ;;
3353
  *)
3354
    # If it is relative, then search for the first ld in PATH.
3355
    with_gnu_ld=unknown
3356
    ;;
3357
  esac
3358
elif test "$with_gnu_ld" = yes; then
3359
  AC_MSG_CHECKING([for GNU ld])
3360
else
3361
  AC_MSG_CHECKING([for non-GNU ld])
3362
fi
3363
AC_CACHE_VAL(lt_cv_path_LD,
3364
[if test -z "$LD"; then
3365
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3366
  for ac_dir in $PATH; do
3367
    IFS="$lt_save_ifs"
3368
    test -z "$ac_dir" && ac_dir=.
3369
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3370
      lt_cv_path_LD="$ac_dir/$ac_prog"
3371
      # Check to see if the program is GNU ld.  I'd rather use --version,
3372
      # but apparently some variants of GNU ld only accept -v.
3373
      # Break only if it was the GNU/non-GNU ld that we prefer.
3374
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3375
      *GNU* | *'with BFD'*)
3376
	test "$with_gnu_ld" != no && break
3377
	;;
3378
      *)
3379
	test "$with_gnu_ld" != yes && break
3380
	;;
3381
      esac
3382
    fi
3383
  done
3384
  IFS="$lt_save_ifs"
3385
else
3386
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3387
fi])
3388
LD="$lt_cv_path_LD"
3389
if test -n "$LD"; then
3390
  AC_MSG_RESULT($LD)
3391
else
3392
  AC_MSG_RESULT(no)
3393
fi
3394
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3395
_LT_PATH_LD_GNU
3396
AC_SUBST([LD])
3397
3398
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3399
])# LT_PATH_LD
3400
3401
# Old names:
3402
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3403
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3404
dnl aclocal-1.4 backwards compatibility:
3405
dnl AC_DEFUN([AM_PROG_LD], [])
3406
dnl AC_DEFUN([AC_PROG_LD], [])
3407
3408
3409
# _LT_PATH_LD_GNU
3410
#- --------------
3411
m4_defun([_LT_PATH_LD_GNU],
3412
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1 by Daniel Holbach
Import upstream version 2.2.9
3413
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3414
case `$LD -v 2>&1 </dev/null` in
3415
*GNU* | *'with BFD'*)
3416
  lt_cv_prog_gnu_ld=yes
3417
  ;;
3418
*)
3419
  lt_cv_prog_gnu_ld=no
3420
  ;;
3421
esac])
3422
with_gnu_ld=$lt_cv_prog_gnu_ld
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3423
])# _LT_PATH_LD_GNU
3424
3425
3426
# _LT_CMD_RELOAD
3427
# --------------
1 by Daniel Holbach
Import upstream version 2.2.9
3428
# find reload flag for linker
3429
#   -- PORTME Some linkers may need a different reload flag.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3430
m4_defun([_LT_CMD_RELOAD],
1 by Daniel Holbach
Import upstream version 2.2.9
3431
[AC_CACHE_CHECK([for $LD option to reload object files],
3432
  lt_cv_ld_reload_flag,
3433
  [lt_cv_ld_reload_flag='-r'])
3434
reload_flag=$lt_cv_ld_reload_flag
3435
case $reload_flag in
3436
"" | " "*) ;;
3437
*) reload_flag=" $reload_flag" ;;
3438
esac
3439
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3440
case $host_os in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3441
  cygwin* | mingw* | pw32* | cegcc*)
3442
    if test "$GCC" != yes; then
3443
      reload_cmds=false
3444
    fi
3445
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
3446
  darwin*)
3447
    if test "$GCC" = yes; then
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3448
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1 by Daniel Holbach
Import upstream version 2.2.9
3449
    else
3450
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3451
    fi
3452
    ;;
3453
esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3454
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3455
_LT_TAGDECL([], [reload_cmds], [2])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3456
])# _LT_CMD_RELOAD
3457
3458
3459
# _LT_CHECK_MAGIC_METHOD
3460
# ----------------------
1 by Daniel Holbach
Import upstream version 2.2.9
3461
# how to check for library dependencies
3462
#  -- PORTME fill in with the dynamic library characteristics
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3463
m4_defun([_LT_CHECK_MAGIC_METHOD],
3464
[m4_require([_LT_DECL_EGREP])
3465
m4_require([_LT_DECL_OBJDUMP])
3466
AC_CACHE_CHECK([how to recognize dependent libraries],
1 by Daniel Holbach
Import upstream version 2.2.9
3467
lt_cv_deplibs_check_method,
3468
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3469
lt_cv_file_magic_test_file=
3470
lt_cv_deplibs_check_method='unknown'
3471
# Need to set the preceding variable on all platforms that support
3472
# interlibrary dependencies.
3473
# 'none' -- dependencies not supported.
3474
# `unknown' -- same as none, but documents that we really don't know.
3475
# 'pass_all' -- all dependencies passed with no checks.
3476
# 'test_compile' -- check by making test program.
3477
# 'file_magic [[regex]]' -- check by looking for files in library path
3478
# which responds to the $file_magic_cmd with a given extended regex.
3479
# If you have `file' or equivalent on your system and you're not sure
3480
# whether `pass_all' will *always* work, you probably want this one.
3481
3482
case $host_os in
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
3483
aix[[4-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
3484
  lt_cv_deplibs_check_method=pass_all
3485
  ;;
3486
3487
beos*)
3488
  lt_cv_deplibs_check_method=pass_all
3489
  ;;
3490
3491
bsdi[[45]]*)
3492
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3493
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3494
  lt_cv_file_magic_test_file=/shlib/libc.so
3495
  ;;
3496
3497
cygwin*)
3498
  # func_win32_libid is a shell function defined in ltmain.sh
3499
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3500
  lt_cv_file_magic_cmd='func_win32_libid'
3501
  ;;
3502
3503
mingw* | pw32*)
3504
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3505
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3506
  # unless we find 'file', for example because we are cross-compiling.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3507
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3508
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3509
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3510
    lt_cv_file_magic_cmd='func_win32_libid'
3511
  else
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3512
    # Keep this pattern in sync with the one in func_win32_libid.
3513
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3514
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3515
  fi
1 by Daniel Holbach
Import upstream version 2.2.9
3516
  ;;
3517
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3518
cegcc*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3519
  # use the weaker test based on 'objdump'. See mingw*.
3520
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3521
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3522
  ;;
3523
1 by Daniel Holbach
Import upstream version 2.2.9
3524
darwin* | rhapsody*)
3525
  lt_cv_deplibs_check_method=pass_all
3526
  ;;
3527
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3528
freebsd* | dragonfly*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3529
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
3530
    case $host_cpu in
3531
    i*86 )
3532
      # Not sure whether the presence of OpenBSD here was a mistake.
3533
      # Let's accept both of them until this is cleared up.
3534
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3535
      lt_cv_file_magic_cmd=/usr/bin/file
3536
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3537
      ;;
3538
    esac
3539
  else
3540
    lt_cv_deplibs_check_method=pass_all
3541
  fi
3542
  ;;
3543
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3544
haiku*)
3545
  lt_cv_deplibs_check_method=pass_all
3546
  ;;
3547
1 by Daniel Holbach
Import upstream version 2.2.9
3548
hpux10.20* | hpux11*)
3549
  lt_cv_file_magic_cmd=/usr/bin/file
3550
  case $host_cpu in
3551
  ia64*)
3552
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3553
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554
    ;;
3555
  hppa*64*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3556
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
1 by Daniel Holbach
Import upstream version 2.2.9
3557
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3558
    ;;
3559
  *)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3560
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
1 by Daniel Holbach
Import upstream version 2.2.9
3561
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3562
    ;;
3563
  esac
3564
  ;;
3565
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3566
interix[[3-9]]*)
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3567
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3568
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3569
  ;;
3570
1 by Daniel Holbach
Import upstream version 2.2.9
3571
irix5* | irix6* | nonstopux*)
3572
  case $LD in
3573
  *-32|*"-32 ") libmagic=32-bit;;
3574
  *-n32|*"-n32 ") libmagic=N32;;
3575
  *-64|*"-64 ") libmagic=64-bit;;
3576
  *) libmagic=never-match;;
3577
  esac
3578
  lt_cv_deplibs_check_method=pass_all
3579
  ;;
3580
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3581
# This must be glibc/ELF.
0.3.7 by Ari Pollak
Import upstream version 2.8.2
3582
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1 by Daniel Holbach
Import upstream version 2.2.9
3583
  lt_cv_deplibs_check_method=pass_all
3584
  ;;
3585
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
3586
netbsd* | netbsdelf*-gnu)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3587
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Daniel Holbach
Import upstream version 2.2.9
3588
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3589
  else
3590
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3591
  fi
3592
  ;;
3593
3594
newos6*)
3595
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3596
  lt_cv_file_magic_cmd=/usr/bin/file
3597
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598
  ;;
3599
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3600
*nto* | *qnx*)
3601
  lt_cv_deplibs_check_method=pass_all
1 by Daniel Holbach
Import upstream version 2.2.9
3602
  ;;
3603
3604
openbsd*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3605
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Daniel Holbach
Import upstream version 2.2.9
3606
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3607
  else
3608
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3609
  fi
3610
  ;;
3611
3612
osf3* | osf4* | osf5*)
3613
  lt_cv_deplibs_check_method=pass_all
3614
  ;;
3615
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3616
rdos*)
3617
  lt_cv_deplibs_check_method=pass_all
3618
  ;;
3619
1 by Daniel Holbach
Import upstream version 2.2.9
3620
solaris*)
3621
  lt_cv_deplibs_check_method=pass_all
3622
  ;;
3623
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3624
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3625
  lt_cv_deplibs_check_method=pass_all
3626
  ;;
3627
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3628
sysv4 | sysv4.3*)
1 by Daniel Holbach
Import upstream version 2.2.9
3629
  case $host_vendor in
3630
  motorola)
3631
    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]]'
3632
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3633
    ;;
3634
  ncr)
3635
    lt_cv_deplibs_check_method=pass_all
3636
    ;;
3637
  sequent)
3638
    lt_cv_file_magic_cmd='/bin/file'
3639
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3640
    ;;
3641
  sni)
3642
    lt_cv_file_magic_cmd='/bin/file'
3643
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3644
    lt_cv_file_magic_test_file=/lib/libc.so
3645
    ;;
3646
  siemens)
3647
    lt_cv_deplibs_check_method=pass_all
3648
    ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3649
  pc)
3650
    lt_cv_deplibs_check_method=pass_all
3651
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
3652
  esac
3653
  ;;
3654
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3655
tpf*)
1 by Daniel Holbach
Import upstream version 2.2.9
3656
  lt_cv_deplibs_check_method=pass_all
3657
  ;;
3658
esac
3659
])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3660
3661
file_magic_glob=
3662
want_nocaseglob=no
3663
if test "$build" = "$host"; then
3664
  case $host_os in
3665
  mingw* | pw32*)
3666
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3667
      want_nocaseglob=yes
3668
    else
3669
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3670
    fi
3671
    ;;
3672
  esac
3673
fi
3674
1 by Daniel Holbach
Import upstream version 2.2.9
3675
file_magic_cmd=$lt_cv_file_magic_cmd
3676
deplibs_check_method=$lt_cv_deplibs_check_method
3677
test -z "$deplibs_check_method" && deplibs_check_method=unknown
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3678
3679
_LT_DECL([], [deplibs_check_method], [1],
3680
    [Method to check whether dependent libraries are shared objects])
3681
_LT_DECL([], [file_magic_cmd], [1],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3682
    [Command to use when deplibs_check_method = "file_magic"])
3683
_LT_DECL([], [file_magic_glob], [1],
3684
    [How to find potential files when deplibs_check_method = "file_magic"])
3685
_LT_DECL([], [want_nocaseglob], [1],
3686
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3687
])# _LT_CHECK_MAGIC_METHOD
3688
3689
3690
# LT_PATH_NM
1 by Daniel Holbach
Import upstream version 2.2.9
3691
# ----------
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3692
# find the pathname to a BSD- or MS-compatible name lister
3693
AC_DEFUN([LT_PATH_NM],
3694
[AC_REQUIRE([AC_PROG_CC])dnl
3695
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
1 by Daniel Holbach
Import upstream version 2.2.9
3696
[if test -n "$NM"; then
3697
  # Let the user override the test.
3698
  lt_cv_path_NM="$NM"
3699
else
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3700
  lt_nm_to_check="${ac_tool_prefix}nm"
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
3701
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3702
    lt_nm_to_check="$lt_nm_to_check nm"
3703
  fi
3704
  for lt_tmp_nm in $lt_nm_to_check; do
3705
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3707
      IFS="$lt_save_ifs"
3708
      test -z "$ac_dir" && ac_dir=.
3709
      tmp_nm="$ac_dir/$lt_tmp_nm"
3710
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3711
	# Check to see if the nm accepts a BSD-compat flag.
3712
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713
	#   nm: unknown option "B" ignored
3714
	# Tru64's nm complains that /dev/null is an invalid object file
3715
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716
	*/dev/null* | *'Invalid file or object type'*)
3717
	  lt_cv_path_NM="$tmp_nm -B"
1 by Daniel Holbach
Import upstream version 2.2.9
3718
	  break
3719
	  ;;
3720
	*)
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3721
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722
	  */dev/null*)
3723
	    lt_cv_path_NM="$tmp_nm -p"
3724
	    break
3725
	    ;;
3726
	  *)
3727
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728
	    continue # so that we can try to find one that supports BSD flags
3729
	    ;;
3730
	  esac
1 by Daniel Holbach
Import upstream version 2.2.9
3731
	  ;;
3732
	esac
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3733
      fi
3734
    done
3735
    IFS="$lt_save_ifs"
1 by Daniel Holbach
Import upstream version 2.2.9
3736
  done
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3737
  : ${lt_cv_path_NM=no}
1 by Daniel Holbach
Import upstream version 2.2.9
3738
fi])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3739
if test "$lt_cv_path_NM" != "no"; then
3740
  NM="$lt_cv_path_NM"
3741
else
3742
  # Didn't find any BSD compatible name lister, look for dumpbin.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3743
  if test -n "$DUMPBIN"; then :
3744
    # Let the user override the test.
3745
  else
3746
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3747
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3748
    *COFF*)
3749
      DUMPBIN="$DUMPBIN -symbols"
3750
      ;;
3751
    *)
3752
      DUMPBIN=:
3753
      ;;
3754
    esac
3755
  fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3756
  AC_SUBST([DUMPBIN])
3757
  if test "$DUMPBIN" != ":"; then
3758
    NM="$DUMPBIN"
3759
  fi
3760
fi
3761
test -z "$NM" && NM=nm
3762
AC_SUBST([NM])
3763
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3764
3765
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3766
  [lt_cv_nm_interface="BSD nm"
3767
  echo "int some_variable = 0;" > conftest.$ac_ext
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3768
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3769
  (eval "$ac_compile" 2>conftest.err)
3770
  cat conftest.err >&AS_MESSAGE_LOG_FD
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3771
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3772
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3773
  cat conftest.err >&AS_MESSAGE_LOG_FD
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3774
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3775
  cat conftest.out >&AS_MESSAGE_LOG_FD
3776
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3777
    lt_cv_nm_interface="MS dumpbin"
3778
  fi
3779
  rm -f conftest*])
3780
])# LT_PATH_NM
3781
3782
# Old names:
3783
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3784
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3785
dnl aclocal-1.4 backwards compatibility:
3786
dnl AC_DEFUN([AM_PROG_NM], [])
3787
dnl AC_DEFUN([AC_PROG_NM], [])
3788
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3789
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3790
# --------------------------------
3791
# how to determine the name of the shared library
3792
# associated with a specific link library.
3793
#  -- PORTME fill in with the dynamic library characteristics
3794
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3795
[m4_require([_LT_DECL_EGREP])
3796
m4_require([_LT_DECL_OBJDUMP])
3797
m4_require([_LT_DECL_DLLTOOL])
3798
AC_CACHE_CHECK([how to associate runtime and link libraries],
3799
lt_cv_sharedlib_from_linklib_cmd,
3800
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3801
3802
case $host_os in
3803
cygwin* | mingw* | pw32* | cegcc*)
3804
  # two different shell functions defined in ltmain.sh
3805
  # decide which to use based on capabilities of $DLLTOOL
3806
  case `$DLLTOOL --help 2>&1` in
3807
  *--identify-strict*)
3808
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3809
    ;;
3810
  *)
3811
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3812
    ;;
3813
  esac
3814
  ;;
3815
*)
3816
  # fallback: assume linklib IS sharedlib
3817
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3818
  ;;
3819
esac
3820
])
3821
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3822
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3823
3824
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3825
    [Command to associate shared and link libraries])
3826
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3827
3828
3829
# _LT_PATH_MANIFEST_TOOL
3830
# ----------------------
3831
# locate the manifest tool
3832
m4_defun([_LT_PATH_MANIFEST_TOOL],
3833
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3834
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3835
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3836
  [lt_cv_path_mainfest_tool=no
3837
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3838
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3839
  cat conftest.err >&AS_MESSAGE_LOG_FD
3840
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3841
    lt_cv_path_mainfest_tool=yes
3842
  fi
3843
  rm -f conftest*])
3844
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3845
  MANIFEST_TOOL=:
3846
fi
3847
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3848
])# _LT_PATH_MANIFEST_TOOL
3849
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3850
3851
# LT_LIB_M
3852
# --------
1 by Daniel Holbach
Import upstream version 2.2.9
3853
# check for math library
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3854
AC_DEFUN([LT_LIB_M],
1 by Daniel Holbach
Import upstream version 2.2.9
3855
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3856
LIBM=
3857
case $host in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3858
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
1 by Daniel Holbach
Import upstream version 2.2.9
3859
  # These system don't have libm, or don't need it
3860
  ;;
3861
*-ncr-sysv4.3*)
3862
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3863
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3864
  ;;
3865
*)
3866
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3867
  ;;
3868
esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3869
AC_SUBST([LIBM])
3870
])# LT_LIB_M
3871
3872
# Old name:
3873
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3874
dnl aclocal-1.4 backwards compatibility:
3875
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3876
3877
3878
# _LT_COMPILER_NO_RTTI([TAGNAME])
3879
# -------------------------------
3880
m4_defun([_LT_COMPILER_NO_RTTI],
3881
[m4_require([_LT_TAG_COMPILER])dnl
3882
3883
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
3884
3885
if test "$GCC" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3886
  case $cc_basename in
3887
  nvcc*)
3888
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3889
  *)
3890
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3891
  esac
1 by Daniel Holbach
Import upstream version 2.2.9
3892
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3893
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
1 by Daniel Holbach
Import upstream version 2.2.9
3894
    lt_cv_prog_compiler_rtti_exceptions,
3895
    [-fno-rtti -fno-exceptions], [],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3896
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
1 by Daniel Holbach
Import upstream version 2.2.9
3897
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3898
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3899
	[Compiler flag to turn off builtin functions])
3900
])# _LT_COMPILER_NO_RTTI
3901
3902
3903
# _LT_CMD_GLOBAL_SYMBOLS
3904
# ----------------------
3905
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3906
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3907
AC_REQUIRE([AC_PROG_CC])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3908
AC_REQUIRE([AC_PROG_AWK])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3909
AC_REQUIRE([LT_PATH_NM])dnl
3910
AC_REQUIRE([LT_PATH_LD])dnl
3911
m4_require([_LT_DECL_SED])dnl
3912
m4_require([_LT_DECL_EGREP])dnl
3913
m4_require([_LT_TAG_COMPILER])dnl
3914
1 by Daniel Holbach
Import upstream version 2.2.9
3915
# Check for command to grab the raw symbol name followed by C symbol from nm.
3916
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3917
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3918
[
3919
# These are sane defaults that work on at least a few old systems.
3920
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3921
3922
# Character class describing NM global symbol codes.
3923
symcode='[[BCDEGRST]]'
3924
3925
# Regexp to match symbols that can be accessed directly from C.
3926
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3927
3928
# Define system-specific variables.
3929
case $host_os in
3930
aix*)
3931
  symcode='[[BCDT]]'
3932
  ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3933
cygwin* | mingw* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
3934
  symcode='[[ABCDGISTW]]'
3935
  ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3936
hpux*)
1 by Daniel Holbach
Import upstream version 2.2.9
3937
  if test "$host_cpu" = ia64; then
3938
    symcode='[[ABCDEGRST]]'
3939
  fi
3940
  ;;
3941
irix* | nonstopux*)
3942
  symcode='[[BCDEGRST]]'
3943
  ;;
3944
osf*)
3945
  symcode='[[BCDEGQRST]]'
3946
  ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3947
solaris*)
1 by Daniel Holbach
Import upstream version 2.2.9
3948
  symcode='[[BDRT]]'
3949
  ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
3950
sco3.2v5*)
3951
  symcode='[[DT]]'
3952
  ;;
3953
sysv4.2uw2*)
3954
  symcode='[[DT]]'
3955
  ;;
3956
sysv5* | sco5v6* | unixware* | OpenUNIX*)
3957
  symcode='[[ABDT]]'
3958
  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
3959
sysv4)
3960
  symcode='[[DFNSTU]]'
3961
  ;;
3962
esac
3963
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3964
# If we're using GNU nm, then use its standard symbol codes.
3965
case `$NM -V 2>&1` in
3966
*GNU* | *'with BFD'*)
3967
  symcode='[[ABCDGIRSTW]]' ;;
3968
esac
3969
3970
# Transform an extracted symbol line into a proper C declaration.
3971
# Some systems (esp. on ia64) link data and code symbols differently,
3972
# so use this general approach.
3973
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3974
3975
# Transform an extracted symbol line into symbol name and symbol address
0.3.5 by Ari Pollak
Import upstream version 2.6.12
3976
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3977
lt_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'"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3978
1 by Daniel Holbach
Import upstream version 2.2.9
3979
# Handle CRLF in mingw tool chain
3980
opt_cr=
3981
case $build_os in
3982
mingw*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3983
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1 by Daniel Holbach
Import upstream version 2.2.9
3984
  ;;
3985
esac
3986
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3987
# Try without a prefix underscore, then with it.
1 by Daniel Holbach
Import upstream version 2.2.9
3988
for ac_symprfx in "" "_"; do
3989
3990
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3991
  symxfrm="\\1 $ac_symprfx\\2 \\2"
3992
3993
  # Write the raw and C identifiers.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
3994
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3995
    # Fake it for dumpbin and say T for any non-static function
3996
    # and D for any global variable.
3997
    # Also find C++ and __fastcall symbols from MSVC++,
3998
    # which start with @ or ?.
3999
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4000
"     {last_section=section; section=\$ 3};"\
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4001
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4002
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4003
"     \$ 0!~/External *\|/{next};"\
4004
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4005
"     {if(hide[section]) next};"\
4006
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4007
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4008
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4009
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4010
"     ' prfx=^$ac_symprfx]"
4011
  else
4012
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4013
  fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4014
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1 by Daniel Holbach
Import upstream version 2.2.9
4015
4016
  # Check to see that the pipe works correctly.
4017
  pipe_works=no
4018
4019
  rm -f conftest*
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4020
  cat > conftest.$ac_ext <<_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
4021
#ifdef __cplusplus
4022
extern "C" {
4023
#endif
4024
char nm_test_var;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4025
void nm_test_func(void);
4026
void nm_test_func(void){}
1 by Daniel Holbach
Import upstream version 2.2.9
4027
#ifdef __cplusplus
4028
}
4029
#endif
4030
int main(){nm_test_var='a';nm_test_func();return(0);}
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4031
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
4032
4033
  if AC_TRY_EVAL(ac_compile); then
4034
    # Now try to grab the symbols.
4035
    nlist=conftest.nm
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4036
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
1 by Daniel Holbach
Import upstream version 2.2.9
4037
      # Try sorting and uniquifying the output.
4038
      if sort "$nlist" | uniq > "$nlist"T; then
4039
	mv -f "$nlist"T "$nlist"
4040
      else
4041
	rm -f "$nlist"T
4042
      fi
4043
4044
      # Make sure that we snagged all the symbols we need.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4045
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4046
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4047
	  cat <<_LT_EOF > conftest.$ac_ext
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4048
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
4049
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4050
/* DATA imports from DLLs on WIN32 con't be const, because runtime
4051
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
4052
# define LT@&t@_DLSYM_CONST
4053
#elif defined(__osf__)
4054
/* This system does not cope well with relocations in const data.  */
4055
# define LT@&t@_DLSYM_CONST
4056
#else
4057
# define LT@&t@_DLSYM_CONST const
4058
#endif
4059
1 by Daniel Holbach
Import upstream version 2.2.9
4060
#ifdef __cplusplus
4061
extern "C" {
4062
#endif
4063
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4064
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
4065
	  # Now generate the symbol file.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4066
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4067
4068
	  cat <<_LT_EOF >> conftest.$ac_ext
4069
4070
/* The mapping between symbol names and symbols.  */
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4071
LT@&t@_DLSYM_CONST struct {
1 by Daniel Holbach
Import upstream version 2.2.9
4072
  const char *name;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4073
  void       *address;
1 by Daniel Holbach
Import upstream version 2.2.9
4074
}
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4075
lt__PROGRAM__LTX_preloaded_symbols[[]] =
1 by Daniel Holbach
Import upstream version 2.2.9
4076
{
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4077
  { "@PROGRAM@", (void *) 0 },
4078
_LT_EOF
4079
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4080
	  cat <<\_LT_EOF >> conftest.$ac_ext
4081
  {0, (void *) 0}
1 by Daniel Holbach
Import upstream version 2.2.9
4082
};
4083
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4084
/* This works around a problem in FreeBSD linker */
4085
#ifdef FREEBSD_WORKAROUND
4086
static const void *lt_preloaded_setup() {
4087
  return lt__PROGRAM__LTX_preloaded_symbols;
4088
}
4089
#endif
4090
1 by Daniel Holbach
Import upstream version 2.2.9
4091
#ifdef __cplusplus
4092
}
4093
#endif
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4094
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
4095
	  # Now try linking the two files.
4096
	  mv conftest.$ac_objext conftstm.$ac_objext
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4097
	  lt_globsym_save_LIBS=$LIBS
4098
	  lt_globsym_save_CFLAGS=$CFLAGS
1 by Daniel Holbach
Import upstream version 2.2.9
4099
	  LIBS="conftstm.$ac_objext"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4100
	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
1 by Daniel Holbach
Import upstream version 2.2.9
4101
	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4102
	    pipe_works=yes
4103
	  fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4104
	  LIBS=$lt_globsym_save_LIBS
4105
	  CFLAGS=$lt_globsym_save_CFLAGS
1 by Daniel Holbach
Import upstream version 2.2.9
4106
	else
4107
	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4108
	fi
4109
      else
4110
	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4111
      fi
4112
    else
4113
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4114
    fi
4115
  else
4116
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4117
    cat conftest.$ac_ext >&5
4118
  fi
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4119
  rm -rf conftest* conftst*
1 by Daniel Holbach
Import upstream version 2.2.9
4120
4121
  # Do not use the global_symbol_pipe unless it works.
4122
  if test "$pipe_works" = yes; then
4123
    break
4124
  else
4125
    lt_cv_sys_global_symbol_pipe=
4126
  fi
4127
done
4128
])
4129
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4130
  lt_cv_sys_global_symbol_to_cdecl=
4131
fi
4132
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4133
  AC_MSG_RESULT(failed)
4134
else
4135
  AC_MSG_RESULT(ok)
4136
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4137
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4138
# Response file support.
4139
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4140
  nm_file_list_spec='@'
4141
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4142
  nm_file_list_spec='@'
4143
fi
4144
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4145
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4146
    [Take the output of nm and produce a listing of raw symbols and C names])
4147
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4148
    [Transform the output of nm in a proper C declaration])
4149
_LT_DECL([global_symbol_to_c_name_address],
4150
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4151
    [Transform the output of nm in a C name address pair])
4152
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4153
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4154
    [Transform the output of nm in a C name address pair when lib prefix is needed])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4155
_LT_DECL([], [nm_file_list_spec], [1],
4156
    [Specify filename containing input files for $NM])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4157
]) # _LT_CMD_GLOBAL_SYMBOLS
4158
4159
4160
# _LT_COMPILER_PIC([TAGNAME])
4161
# ---------------------------
4162
m4_defun([_LT_COMPILER_PIC],
4163
[m4_require([_LT_TAG_COMPILER])dnl
4164
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4165
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4166
_LT_TAGVAR(lt_prog_compiler_static, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
4167
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4168
m4_if([$1], [CXX], [
1 by Daniel Holbach
Import upstream version 2.2.9
4169
  # C++ specific cases for pic, static, wl, etc.
4170
  if test "$GXX" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4171
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4172
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Daniel Holbach
Import upstream version 2.2.9
4173
4174
    case $host_os in
4175
    aix*)
4176
      # All AIX code is PIC.
4177
      if test "$host_cpu" = ia64; then
4178
	# AIX 5 now supports IA64 processor
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4179
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4180
      fi
4181
      ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4182
1 by Daniel Holbach
Import upstream version 2.2.9
4183
    amigaos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4184
      case $host_cpu in
4185
      powerpc)
4186
            # see comment about AmigaOS4 .so support
4187
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4188
        ;;
4189
      m68k)
4190
            # FIXME: we need at least 68020 code to build shared libraries, but
4191
            # adding the `-m68020' flag to GCC prevents building anything better,
4192
            # like `-m68040'.
4193
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4194
        ;;
4195
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
4196
      ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4197
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4198
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Daniel Holbach
Import upstream version 2.2.9
4199
      # PIC is the default for these OSes.
4200
      ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4201
    mingw* | cygwin* | os2* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
4202
      # This hack is so that the source file can tell whether it is being
4203
      # built for inclusion in a dll (and should export symbols for example).
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4204
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4205
      # (--disable-auto-import) libraries
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4206
      m4_if([$1], [GCJ], [],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4207
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Daniel Holbach
Import upstream version 2.2.9
4208
      ;;
4209
    darwin* | rhapsody*)
4210
      # PIC is the default on this platform
4211
      # Common symbols not allowed in MH_DYLIB files
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4212
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1 by Daniel Holbach
Import upstream version 2.2.9
4213
      ;;
4214
    *djgpp*)
4215
      # DJGPP does not support shared libraries at all
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4216
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
4217
      ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4218
    haiku*)
4219
      # PIC is the default for Haiku.
4220
      # The "-static" flag exists, but is broken.
4221
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4222
      ;;
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4223
    interix[[3-9]]*)
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4224
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4225
      # Instead, we relocate shared libraries at runtime.
4226
      ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4227
    sysv4*MP*)
4228
      if test -d /usr/nec; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4229
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1 by Daniel Holbach
Import upstream version 2.2.9
4230
      fi
4231
      ;;
4232
    hpux*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4233
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4234
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4235
      # sets the default TLS model and affects inlining.
1 by Daniel Holbach
Import upstream version 2.2.9
4236
      case $host_cpu in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4237
      hppa*64*)
1 by Daniel Holbach
Import upstream version 2.2.9
4238
	;;
4239
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4240
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4241
	;;
4242
      esac
4243
      ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4244
    *qnx* | *nto*)
4245
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4246
      # it will coredump.
4247
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4248
      ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4249
    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4250
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4251
      ;;
4252
    esac
4253
  else
4254
    case $host_os in
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4255
      aix[[4-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
4256
	# All AIX code is PIC.
4257
	if test "$host_cpu" = ia64; then
4258
	  # AIX 5 now supports IA64 processor
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4259
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4260
	else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4261
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1 by Daniel Holbach
Import upstream version 2.2.9
4262
	fi
4263
	;;
4264
      chorus*)
4265
	case $cc_basename in
4266
	cxch68*)
4267
	  # Green Hills C++ Compiler
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4268
	  # _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"
1 by Daniel Holbach
Import upstream version 2.2.9
4269
	  ;;
4270
	esac
4271
	;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4272
      mingw* | cygwin* | os2* | pw32* | cegcc*)
4273
	# This hack is so that the source file can tell whether it is being
4274
	# built for inclusion in a dll (and should export symbols for example).
4275
	m4_if([$1], [GCJ], [],
4276
	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4277
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
4278
      dgux*)
4279
	case $cc_basename in
4280
	  ec++*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4281
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4282
	    ;;
4283
	  ghcx*)
4284
	    # Green Hills C++ Compiler
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4285
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Daniel Holbach
Import upstream version 2.2.9
4286
	    ;;
4287
	  *)
4288
	    ;;
4289
	esac
4290
	;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4291
      freebsd* | dragonfly*)
1 by Daniel Holbach
Import upstream version 2.2.9
4292
	# FreeBSD uses GNU C++
4293
	;;
4294
      hpux9* | hpux10* | hpux11*)
4295
	case $cc_basename in
4296
	  CC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4297
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4298
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1 by Daniel Holbach
Import upstream version 2.2.9
4299
	    if test "$host_cpu" != ia64; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4300
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Daniel Holbach
Import upstream version 2.2.9
4301
	    fi
4302
	    ;;
4303
	  aCC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4304
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4305
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1 by Daniel Holbach
Import upstream version 2.2.9
4306
	    case $host_cpu in
4307
	    hppa*64*|ia64*)
4308
	      # +Z the default
4309
	      ;;
4310
	    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4311
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Daniel Holbach
Import upstream version 2.2.9
4312
	      ;;
4313
	    esac
4314
	    ;;
4315
	  *)
4316
	    ;;
4317
	esac
4318
	;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4319
      interix*)
4320
	# This is c89, which is MS Visual C++ (no shared libs)
4321
	# Anyone wants to do a port?
4322
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
4323
      irix5* | irix6* | nonstopux*)
4324
	case $cc_basename in
4325
	  CC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4326
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4327
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Daniel Holbach
Import upstream version 2.2.9
4328
	    # CC pic flag -KPIC is the default.
4329
	    ;;
4330
	  *)
4331
	    ;;
4332
	esac
4333
	;;
0.3.7 by Ari Pollak
Import upstream version 2.8.2
4334
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1 by Daniel Holbach
Import upstream version 2.2.9
4335
	case $cc_basename in
4336
	  KCC*)
4337
	    # KAI C++ Compiler
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4338
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4339
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4340
	    ;;
4341
	  ecpc* )
4342
	    # old Intel C++ for x86_64 which still supported -KPIC.
4343
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4345
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4346
	    ;;
4347
	  icpc* )
4348
	    # Intel C++, used to be incompatible with GCC.
4349
	    # ICC 10 doesn't accept -KPIC any more.
4350
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4351
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4352
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Daniel Holbach
Import upstream version 2.2.9
4353
	    ;;
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4354
	  pgCC* | pgcpp*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4355
	    # Portland Group C++ compiler
4356
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4357
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4358
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4359
	    ;;
4360
	  cxx*)
4361
	    # Compaq C++
4362
	    # Make sure the PIC flag is empty.  It appears that all Alpha
4363
	    # Linux and Compaq Tru64 Unix objects are PIC.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4364
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4365
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4366
	    ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4367
	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4368
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4369
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4370
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4371
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
1 by Daniel Holbach
Import upstream version 2.2.9
4372
	    ;;
4373
	  *)
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4374
	    case `$CC -V 2>&1 | sed 5q` in
4375
	    *Sun\ C*)
4376
	      # Sun C++ 5.9
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4377
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4378
	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4379
	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4380
	      ;;
4381
	    esac
1 by Daniel Holbach
Import upstream version 2.2.9
4382
	    ;;
4383
	esac
4384
	;;
4385
      lynxos*)
4386
	;;
4387
      m88k*)
4388
	;;
4389
      mvs*)
4390
	case $cc_basename in
4391
	  cxx*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4392
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
1 by Daniel Holbach
Import upstream version 2.2.9
4393
	    ;;
4394
	  *)
4395
	    ;;
4396
	esac
4397
	;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4398
      netbsd* | netbsdelf*-gnu)
1 by Daniel Holbach
Import upstream version 2.2.9
4399
	;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4400
      *qnx* | *nto*)
4401
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4402
        # it will coredump.
4403
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4404
        ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4405
      osf3* | osf4* | osf5*)
4406
	case $cc_basename in
4407
	  KCC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4408
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4409
	    ;;
4410
	  RCC*)
4411
	    # Rational C++ 2.4.1
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4412
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Daniel Holbach
Import upstream version 2.2.9
4413
	    ;;
4414
	  cxx*)
4415
	    # Digital/Compaq C++
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4416
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4417
	    # Make sure the PIC flag is empty.  It appears that all Alpha
4418
	    # Linux and Compaq Tru64 Unix objects are PIC.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4419
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4420
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Daniel Holbach
Import upstream version 2.2.9
4421
	    ;;
4422
	  *)
4423
	    ;;
4424
	esac
4425
	;;
4426
      psos*)
4427
	;;
4428
      solaris*)
4429
	case $cc_basename in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4430
	  CC* | sunCC*)
1 by Daniel Holbach
Import upstream version 2.2.9
4431
	    # Sun C++ 4.2, 5.x and Centerline C++
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4432
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4433
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4434
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1 by Daniel Holbach
Import upstream version 2.2.9
4435
	    ;;
4436
	  gcx*)
4437
	    # Green Hills C++ Compiler
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4438
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4439
	    ;;
4440
	  *)
4441
	    ;;
4442
	esac
4443
	;;
4444
      sunos4*)
4445
	case $cc_basename in
4446
	  CC*)
4447
	    # Sun C++ 4.x
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4448
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4449
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4450
	    ;;
4451
	  lcc*)
4452
	    # Lucid
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4453
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Daniel Holbach
Import upstream version 2.2.9
4454
	    ;;
4455
	  *)
4456
	    ;;
4457
	esac
4458
	;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4459
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4460
	case $cc_basename in
4461
	  CC*)
4462
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4463
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4464
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4465
	    ;;
4466
	esac
4467
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
4468
      tandem*)
4469
	case $cc_basename in
4470
	  NCC*)
4471
	    # NonStop-UX NCC 3.20
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4472
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4473
	    ;;
4474
	  *)
4475
	    ;;
4476
	esac
4477
	;;
4478
      vxworks*)
4479
	;;
4480
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4481
	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
4482
	;;
4483
    esac
4484
  fi
4485
],
4486
[
4487
  if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4488
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4489
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Daniel Holbach
Import upstream version 2.2.9
4490
4491
    case $host_os in
4492
      aix*)
4493
      # All AIX code is PIC.
4494
      if test "$host_cpu" = ia64; then
4495
	# AIX 5 now supports IA64 processor
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4496
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4497
      fi
4498
      ;;
4499
4500
    amigaos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4501
      case $host_cpu in
4502
      powerpc)
4503
            # see comment about AmigaOS4 .so support
4504
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4505
        ;;
4506
      m68k)
4507
            # FIXME: we need at least 68020 code to build shared libraries, but
4508
            # adding the `-m68020' flag to GCC prevents building anything better,
4509
            # like `-m68040'.
4510
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4511
        ;;
4512
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
4513
      ;;
4514
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4515
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Daniel Holbach
Import upstream version 2.2.9
4516
      # PIC is the default for these OSes.
4517
      ;;
4518
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4519
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
4520
      # This hack is so that the source file can tell whether it is being
4521
      # built for inclusion in a dll (and should export symbols for example).
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4522
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4523
      # (--disable-auto-import) libraries
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4524
      m4_if([$1], [GCJ], [],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4525
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Daniel Holbach
Import upstream version 2.2.9
4526
      ;;
4527
4528
    darwin* | rhapsody*)
4529
      # PIC is the default on this platform
4530
      # Common symbols not allowed in MH_DYLIB files
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4531
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4532
      ;;
4533
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4534
    haiku*)
4535
      # PIC is the default for Haiku.
4536
      # The "-static" flag exists, but is broken.
4537
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4538
      ;;
4539
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4540
    hpux*)
4541
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4542
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4543
      # sets the default TLS model and affects inlining.
4544
      case $host_cpu in
4545
      hppa*64*)
4546
	# +Z the default
4547
	;;
4548
      *)
4549
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4550
	;;
4551
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
4552
      ;;
4553
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4554
    interix[[3-9]]*)
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4555
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4556
      # Instead, we relocate shared libraries at runtime.
4557
      ;;
4558
1 by Daniel Holbach
Import upstream version 2.2.9
4559
    msdosdjgpp*)
4560
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4561
      # on systems that don't support them.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4562
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
4563
      enable_shared=no
4564
      ;;
4565
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4566
    *nto* | *qnx*)
4567
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4568
      # it will coredump.
4569
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4570
      ;;
4571
1 by Daniel Holbach
Import upstream version 2.2.9
4572
    sysv4*MP*)
4573
      if test -d /usr/nec; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4574
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1 by Daniel Holbach
Import upstream version 2.2.9
4575
      fi
4576
      ;;
4577
4578
    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4579
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Daniel Holbach
Import upstream version 2.2.9
4580
      ;;
4581
    esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4582
4583
    case $cc_basename in
4584
    nvcc*) # Cuda Compiler Driver 2.2
4585
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4586
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4587
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4588
      fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4589
      ;;
4590
    esac
1 by Daniel Holbach
Import upstream version 2.2.9
4591
  else
4592
    # PORTME Check for flag to pass linker flags through the system compiler.
4593
    case $host_os in
4594
    aix*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4595
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4596
      if test "$host_cpu" = ia64; then
4597
	# AIX 5 now supports IA64 processor
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4598
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4599
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4600
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1 by Daniel Holbach
Import upstream version 2.2.9
4601
      fi
4602
      ;;
4603
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4604
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
4605
      # This hack is so that the source file can tell whether it is being
4606
      # built for inclusion in a dll (and should export symbols for example).
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4607
      m4_if([$1], [GCJ], [],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4608
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Daniel Holbach
Import upstream version 2.2.9
4609
      ;;
4610
4611
    hpux9* | hpux10* | hpux11*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4612
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4613
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4614
      # not for PA HP-UX.
4615
      case $host_cpu in
4616
      hppa*64*|ia64*)
4617
	# +Z the default
4618
	;;
4619
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4620
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Daniel Holbach
Import upstream version 2.2.9
4621
	;;
4622
      esac
4623
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4624
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1 by Daniel Holbach
Import upstream version 2.2.9
4625
      ;;
4626
4627
    irix5* | irix6* | nonstopux*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4628
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4629
      # PIC (with -KPIC) is the default.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4630
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Daniel Holbach
Import upstream version 2.2.9
4631
      ;;
4632
0.3.7 by Ari Pollak
Import upstream version 2.8.2
4633
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1 by Daniel Holbach
Import upstream version 2.2.9
4634
      case $cc_basename in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4635
      # old Intel for x86_64 which still supported -KPIC.
4636
      ecc*)
4637
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4638
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4639
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4640
        ;;
4641
      # icc used to be incompatible with GCC.
4642
      # ICC 10 doesn't accept -KPIC any more.
4643
      icc* | ifort*)
4644
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4645
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4647
        ;;
4648
      # Lahey Fortran 8.1.
4649
      lf95*)
4650
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4651
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4652
	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4653
	;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4654
      nagfor*)
4655
	# NAG Fortran compiler
4656
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4657
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4658
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4659
	;;
4660
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1 by Daniel Holbach
Import upstream version 2.2.9
4661
        # Portland Group compilers (*not* the Pentium gcc compiler,
4662
	# which looks to be a dead project)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4663
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4664
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4665
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4666
        ;;
4667
      ccc*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4668
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4669
        # All Alpha code is PIC.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4670
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Daniel Holbach
Import upstream version 2.2.9
4671
        ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4672
      xl* | bgxl* | bgf* | mpixl*)
4673
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4674
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4675
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4676
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4677
	;;
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4678
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4679
	case `$CC -V 2>&1 | sed 5q` in
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4680
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4681
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4682
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4683
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4684
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4685
	  ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4686
	*Sun\ F* | *Sun*Fortran*)
4687
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4688
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4689
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4690
	  ;;
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4691
	*Sun\ C*)
4692
	  # Sun C 5.9
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4693
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4694
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4695
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4696
	  ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4697
        *Intel*\ [[CF]]*Compiler*)
4698
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4699
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4700
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4701
	  ;;
4702
	*Portland\ Group*)
4703
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4704
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4705
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4706
	  ;;
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4707
	esac
4708
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
4709
      esac
4710
      ;;
4711
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4712
    newsos6)
4713
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4714
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4715
      ;;
4716
4717
    *nto* | *qnx*)
4718
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4719
      # it will coredump.
4720
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4721
      ;;
4722
1 by Daniel Holbach
Import upstream version 2.2.9
4723
    osf3* | osf4* | osf5*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4724
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Daniel Holbach
Import upstream version 2.2.9
4725
      # All OSF/1 code is PIC.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4726
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Daniel Holbach
Import upstream version 2.2.9
4727
      ;;
4728
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4729
    rdos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4730
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4731
      ;;
4732
1 by Daniel Holbach
Import upstream version 2.2.9
4733
    solaris*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4734
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4735
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4736
      case $cc_basename in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4737
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4738
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
1 by Daniel Holbach
Import upstream version 2.2.9
4739
      *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4740
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
1 by Daniel Holbach
Import upstream version 2.2.9
4741
      esac
4742
      ;;
4743
4744
    sunos4*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4745
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4746
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4747
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4748
      ;;
4749
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4750
    sysv4 | sysv4.2uw2* | sysv4.3*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4751
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4752
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4753
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4754
      ;;
4755
4756
    sysv4*MP*)
4757
      if test -d /usr/nec ;then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4758
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4759
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4760
      fi
4761
      ;;
4762
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4763
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4764
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4765
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4766
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4767
      ;;
4768
1 by Daniel Holbach
Import upstream version 2.2.9
4769
    unicos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4770
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4771
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
4772
      ;;
4773
4774
    uts4*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4775
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4776
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Daniel Holbach
Import upstream version 2.2.9
4777
      ;;
4778
4779
    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4780
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
4781
      ;;
4782
    esac
4783
  fi
4784
])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4785
case $host_os in
4786
  # For platforms which do not support PIC, -DPIC is meaningless:
4787
  *djgpp*)
4788
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4789
    ;;
4790
  *)
4791
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4792
    ;;
4793
esac
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4794
4795
AC_CACHE_CHECK([for $compiler option to produce PIC],
4796
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4797
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4798
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
1 by Daniel Holbach
Import upstream version 2.2.9
4799
4800
#
4801
# Check to make sure the PIC flag actually works.
4802
#
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4803
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4804
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4805
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4806
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4807
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
1 by Daniel Holbach
Import upstream version 2.2.9
4808
     "" | " "*) ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4809
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4810
     esac],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4811
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4812
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1 by Daniel Holbach
Import upstream version 2.2.9
4813
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4814
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4815
	[Additional compiler flags for building library objects])
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4816
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4817
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4818
	[How to pass a linker flag through the compiler])
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4819
#
4820
# Check to make sure the static flag actually works.
4821
#
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4822
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4823
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4824
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4825
  $lt_tmp_static_flag,
4826
  [],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4827
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4828
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4829
	[Compiler flag to prevent dynamic linking])
4830
])# _LT_COMPILER_PIC
4831
4832
4833
# _LT_LINKER_SHLIBS([TAGNAME])
4834
# ----------------------------
1 by Daniel Holbach
Import upstream version 2.2.9
4835
# See if the linker supports building shared libraries.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4836
m4_defun([_LT_LINKER_SHLIBS],
4837
[AC_REQUIRE([LT_PATH_LD])dnl
4838
AC_REQUIRE([LT_PATH_NM])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4839
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4840
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4841
m4_require([_LT_DECL_EGREP])dnl
4842
m4_require([_LT_DECL_SED])dnl
4843
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4844
m4_require([_LT_TAG_COMPILER])dnl
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
4845
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4846
m4_if([$1], [CXX], [
4847
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4848
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
1 by Daniel Holbach
Import upstream version 2.2.9
4849
  case $host_os in
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4850
  aix[[4-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
4851
    # If we're using GNU nm, then we don't want the "-C" option.
4852
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4853
    # Also, AIX nm treats weak defined symbols like other global defined
4854
    # symbols, whereas GNU nm marks them as "W".
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4855
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4856
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Daniel Holbach
Import upstream version 2.2.9
4857
    else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4858
      _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'
1 by Daniel Holbach
Import upstream version 2.2.9
4859
    fi
4860
    ;;
4861
  pw32*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4862
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4863
    ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4864
  cygwin* | mingw* | cegcc*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4865
    case $cc_basename in
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4866
    cl*)
4867
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4868
      ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4869
    *)
4870
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4871
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4872
      ;;
4873
    esac
4874
    ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4875
  linux* | k*bsd*-gnu | gnu*)
4876
    _LT_TAGVAR(link_all_deplibs, $1)=no
4877
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4878
  *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4879
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4880
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4881
  esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4882
], [
1 by Daniel Holbach
Import upstream version 2.2.9
4883
  runpath_var=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4884
  _LT_TAGVAR(allow_undefined_flag, $1)=
4885
  _LT_TAGVAR(always_export_symbols, $1)=no
4886
  _LT_TAGVAR(archive_cmds, $1)=
4887
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4888
  _LT_TAGVAR(compiler_needs_object, $1)=no
4889
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4890
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4891
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4892
  _LT_TAGVAR(hardcode_automatic, $1)=no
4893
  _LT_TAGVAR(hardcode_direct, $1)=no
4894
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4895
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4896
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4897
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4898
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4899
  _LT_TAGVAR(inherit_rpath, $1)=no
4900
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4901
  _LT_TAGVAR(module_cmds, $1)=
4902
  _LT_TAGVAR(module_expsym_cmds, $1)=
4903
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4904
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4905
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4906
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
4907
  # include_expsyms should be a list of space-separated symbols to be *always*
4908
  # included in the symbol list
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4909
  _LT_TAGVAR(include_expsyms, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
4910
  # exclude_expsyms can be an extended regexp of symbols to exclude
4911
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4912
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4913
  # as well as any symbol that contains `d'.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4914
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
1 by Daniel Holbach
Import upstream version 2.2.9
4915
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4916
  # platforms (ab)use it in PIC code, but their linkers get confused if
4917
  # the symbol is explicitly referenced.  Since portable code cannot
4918
  # rely on this symbol name, it's probably fine to never include it in
4919
  # preloaded symbol tables.
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
4920
  # Exclude shared library initialization/finalization symbols.
4921
dnl Note also adjust exclude_expsyms for C++ above.
1 by Daniel Holbach
Import upstream version 2.2.9
4922
  extract_expsyms_cmds=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4923
1 by Daniel Holbach
Import upstream version 2.2.9
4924
  case $host_os in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4925
  cygwin* | mingw* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
4926
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4927
    # When not using gcc, we currently assume that we are using
4928
    # Microsoft Visual C++.
4929
    if test "$GCC" != yes; then
4930
      with_gnu_ld=no
4931
    fi
4932
    ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
4933
  interix*)
4934
    # we just hope/assume this is gcc and not c89 (= MSVC++)
4935
    with_gnu_ld=yes
4936
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4937
  openbsd*)
4938
    with_gnu_ld=no
4939
    ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
4940
  linux* | k*bsd*-gnu | gnu*)
4941
    _LT_TAGVAR(link_all_deplibs, $1)=no
4942
    ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4943
  esac
4944
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4945
  _LT_TAGVAR(ld_shlibs, $1)=yes
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4946
4947
  # On some targets, GNU ld is compatible enough with the native linker
4948
  # that we're better off using the native interface for both.
4949
  lt_use_gnu_ld_interface=no
1 by Daniel Holbach
Import upstream version 2.2.9
4950
  if test "$with_gnu_ld" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
4951
    case $host_os in
4952
      aix*)
4953
	# The AIX port of GNU ld has always aspired to compatibility
4954
	# with the native linker.  However, as the warning in the GNU ld
4955
	# block says, versions before 2.19.5* couldn't really create working
4956
	# shared libraries, regardless of the interface used.
4957
	case `$LD -v 2>&1` in
4958
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4959
	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4960
	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4961
	  *)
4962
	    lt_use_gnu_ld_interface=yes
4963
	    ;;
4964
	esac
4965
	;;
4966
      *)
4967
	lt_use_gnu_ld_interface=yes
4968
	;;
4969
    esac
4970
  fi
4971
4972
  if test "$lt_use_gnu_ld_interface" = yes; then
1 by Daniel Holbach
Import upstream version 2.2.9
4973
    # If archive_cmds runs LD, not CC, wlarc should be empty
4974
    wlarc='${wl}'
4975
4976
    # Set some defaults for GNU ld with shared library support. These
4977
    # are reset later if shared libraries are not supported. Putting them
4978
    # here allows them to be overridden if necessary.
4979
    runpath_var=LD_RUN_PATH
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4980
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4981
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1 by Daniel Holbach
Import upstream version 2.2.9
4982
    # ancient GNU ld didn't support --whole-archive et. al.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4983
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4984
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4985
    else
4986
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
4987
    fi
4988
    supports_anon_versioning=no
0.2.2 by Ari Pollak
Import upstream version 2.6.7
4989
    case `$LD -v 2>&1` in
0.3.3 by Ari Pollak
Import upstream version 2.6.10
4990
      *GNU\ gold*) supports_anon_versioning=yes ;;
1 by Daniel Holbach
Import upstream version 2.2.9
4991
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4992
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4993
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4994
      *\ 2.11.*) ;; # other 2.11 versions
4995
      *) supports_anon_versioning=yes ;;
4996
    esac
4997
4998
    # See if GNU ld supports shared libraries.
4999
    case $host_os in
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
5000
    aix[[3-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
5001
      # On AIX/PPC, the GNU linker is very broken
5002
      if test "$host_cpu" != ia64; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5003
	_LT_TAGVAR(ld_shlibs, $1)=no
5004
	cat <<_LT_EOF 1>&2
1 by Daniel Holbach
Import upstream version 2.2.9
5005
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5006
*** Warning: the GNU linker, at least up to release 2.19, is reported
1 by Daniel Holbach
Import upstream version 2.2.9
5007
*** to be unable to reliably create shared libraries on AIX.
5008
*** Therefore, libtool is disabling shared libraries support.  If you
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5009
*** really care for shared libraries, you may want to install binutils
5010
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5011
*** You will then need to restart the configuration process.
1 by Daniel Holbach
Import upstream version 2.2.9
5012
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5013
_LT_EOF
1 by Daniel Holbach
Import upstream version 2.2.9
5014
      fi
5015
      ;;
5016
5017
    amigaos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5018
      case $host_cpu in
5019
      powerpc)
5020
            # see comment about AmigaOS4 .so support
5021
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5022
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5023
        ;;
5024
      m68k)
5025
            _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)'
5026
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5027
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5028
        ;;
5029
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
5030
      ;;
5031
5032
    beos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5033
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5034
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
1 by Daniel Holbach
Import upstream version 2.2.9
5035
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5036
	# support --undefined.  This deserves some investigation.  FIXME
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5037
	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5038
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5039
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5040
      fi
5041
      ;;
5042
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5043
    cygwin* | mingw* | pw32* | cegcc*)
5044
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1 by Daniel Holbach
Import upstream version 2.2.9
5045
      # as there is no search path for DLLs.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5046
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5047
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5048
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5049
      _LT_TAGVAR(always_export_symbols, $1)=no
5050
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5051
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5052
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
1 by Daniel Holbach
Import upstream version 2.2.9
5053
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5054
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5055
        _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'
1 by Daniel Holbach
Import upstream version 2.2.9
5056
	# If the export-symbols file already is a .def file (1st line
5057
	# is EXPORTS), use it as is; otherwise, prepend...
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5058
	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1 by Daniel Holbach
Import upstream version 2.2.9
5059
	  cp $export_symbols $output_objdir/$soname.def;
5060
	else
5061
	  echo EXPORTS > $output_objdir/$soname.def;
5062
	  cat $export_symbols >> $output_objdir/$soname.def;
5063
	fi~
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5064
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5065
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5066
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5067
      fi
5068
      ;;
5069
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5070
    haiku*)
5071
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5072
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5073
      ;;
5074
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5075
    interix[[3-9]]*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5076
      _LT_TAGVAR(hardcode_direct, $1)=no
5077
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5078
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5079
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5080
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5081
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5082
      # default) and relocated if they conflict, which is a slow very memory
5083
      # consuming and fragmenting process.  To avoid this, we pick a random,
5084
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5085
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5086
      _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'
5087
      _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'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5088
      ;;
5089
0.3.3 by Ari Pollak
Import upstream version 2.6.10
5090
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5091
      tmp_diet=no
5092
      if test "$host_os" = linux-dietlibc; then
5093
	case $cc_basename in
5094
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
5095
	esac
5096
      fi
5097
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5098
	 && test "$tmp_diet" = no
5099
      then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5100
	tmp_addflag=' $pic_flag'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5101
	tmp_sharedflag='-shared'
1 by Daniel Holbach
Import upstream version 2.2.9
5102
	case $cc_basename,$host_cpu in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5103
        pgcc*)				# Portland Group C compiler
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5104
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1 by Daniel Holbach
Import upstream version 2.2.9
5105
	  tmp_addflag=' $pic_flag'
5106
	  ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5107
	pgf77* | pgf90* | pgf95* | pgfortran*)
5108
					# Portland Group f77 and f90 compilers
5109
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1 by Daniel Holbach
Import upstream version 2.2.9
5110
	  tmp_addflag=' $pic_flag -Mnomain' ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5111
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
1 by Daniel Holbach
Import upstream version 2.2.9
5112
	  tmp_addflag=' -i_dynamic' ;;
5113
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
5114
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
5115
	ifc* | ifort*)			# Intel Fortran compiler
5116
	  tmp_addflag=' -nofor_main' ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5117
	lf95*)				# Lahey Fortran 8.1
5118
	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5119
	  tmp_sharedflag='--shared' ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5120
	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5121
	  tmp_sharedflag='-qmkshrobj'
5122
	  tmp_addflag= ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5123
	nvcc*)	# Cuda Compiler Driver 2.2
5124
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5125
	  _LT_TAGVAR(compiler_needs_object, $1)=yes
5126
	  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
5127
	esac
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5128
	case `$CC -V 2>&1 | sed 5q` in
5129
	*Sun\ C*)			# Sun C 5.9
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5130
	  _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5131
	  _LT_TAGVAR(compiler_needs_object, $1)=yes
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5132
	  tmp_sharedflag='-G' ;;
5133
	*Sun\ F*)			# Sun Fortran 8.3
5134
	  tmp_sharedflag='-G' ;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5135
	esac
5136
	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5137
5138
        if test "x$supports_anon_versioning" = xyes; then
5139
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5140
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5141
	    echo "local: *; };" >> $output_objdir/$libname.ver~
5142
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5143
        fi
5144
5145
	case $cc_basename in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5146
	xlf* | bgf* | bgxlf* | mpixlf*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5147
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5148
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5149
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5150
	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5151
	  if test "x$supports_anon_versioning" = xyes; then
5152
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5153
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5154
	      echo "local: *; };" >> $output_objdir/$libname.ver~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5155
	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5156
	  fi
5157
	  ;;
5158
	esac
1 by Daniel Holbach
Import upstream version 2.2.9
5159
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5160
        _LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5161
      fi
5162
      ;;
5163
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5164
    netbsd* | netbsdelf*-gnu)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5165
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5166
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5167
	wlarc=
5168
      else
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5169
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5170
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5171
      fi
5172
      ;;
5173
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5174
    solaris*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5175
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5176
	_LT_TAGVAR(ld_shlibs, $1)=no
5177
	cat <<_LT_EOF 1>&2
1 by Daniel Holbach
Import upstream version 2.2.9
5178
5179
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5180
*** create shared libraries on Solaris systems.  Therefore, libtool
5181
*** is disabling shared libraries support.  We urge you to upgrade GNU
5182
*** binutils to release 2.9.1 or newer.  Another option is to modify
5183
*** your PATH or compiler configuration so that the native linker is
5184
*** used, and then restart.
5185
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5186
_LT_EOF
5187
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5188
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5189
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5190
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5191
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5192
      fi
5193
      ;;
5194
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5195
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5196
      case `$LD -v 2>&1` in
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5197
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5198
	_LT_TAGVAR(ld_shlibs, $1)=no
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5199
	cat <<_LT_EOF 1>&2
5200
5201
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5202
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5203
*** is disabling shared libraries support.  We urge you to upgrade GNU
5204
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5205
*** your PATH or compiler configuration so that the native linker is
5206
*** used, and then restart.
5207
5208
_LT_EOF
5209
	;;
5210
	*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5211
	  # For security reasons, it is highly recommended that you always
5212
	  # use absolute paths for naming shared libraries, and exclude the
5213
	  # DT_RUNPATH tag from executables and libraries.  But doing so
5214
	  # requires that you compile everything twice, which is a pain.
5215
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5216
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5217
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5218
	    _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'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5219
	  else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5220
	    _LT_TAGVAR(ld_shlibs, $1)=no
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5221
	  fi
5222
	;;
5223
      esac
5224
      ;;
5225
1 by Daniel Holbach
Import upstream version 2.2.9
5226
    sunos4*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5227
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5228
      wlarc=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5229
      _LT_TAGVAR(hardcode_direct, $1)=yes
5230
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5231
      ;;
5232
5233
    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5234
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5235
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5236
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5237
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5238
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5239
      fi
5240
      ;;
5241
    esac
5242
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5243
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
1 by Daniel Holbach
Import upstream version 2.2.9
5244
      runpath_var=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5245
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5246
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5247
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
5248
    fi
5249
  else
5250
    # PORTME fill in a description of your system's linker (not GNU ld)
5251
    case $host_os in
5252
    aix3*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5253
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5254
      _LT_TAGVAR(always_export_symbols, $1)=yes
5255
      _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'
1 by Daniel Holbach
Import upstream version 2.2.9
5256
      # Note: this linker hardcodes the directories in LIBPATH if there
5257
      # are no directories specified by -L.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5258
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5259
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1 by Daniel Holbach
Import upstream version 2.2.9
5260
	# Neither direct hardcoding nor static linking is supported with a
5261
	# broken collect2.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5262
	_LT_TAGVAR(hardcode_direct, $1)=unsupported
1 by Daniel Holbach
Import upstream version 2.2.9
5263
      fi
5264
      ;;
5265
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
5266
    aix[[4-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
5267
      if test "$host_cpu" = ia64; then
5268
	# On IA64, the linker does run time linking by default, so we don't
5269
	# have to do anything special.
5270
	aix_use_runtimelinking=no
5271
	exp_sym_flag='-Bexport'
5272
	no_entry_flag=""
5273
      else
5274
	# If we're using GNU nm, then we don't want the "-C" option.
5275
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5276
	# Also, AIX nm treats weak defined symbols like other global
5277
	# defined symbols, whereas GNU nm marks them as "W".
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5278
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5279
	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Daniel Holbach
Import upstream version 2.2.9
5280
	else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5281
	  _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'
1 by Daniel Holbach
Import upstream version 2.2.9
5282
	fi
5283
	aix_use_runtimelinking=no
5284
5285
	# Test if we are trying to use run time linking or normal
5286
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5287
	# need to do runtime linking.
1.1.12 by Steve Kowalik
Import upstream version 2.4.5
5288
	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
1 by Daniel Holbach
Import upstream version 2.2.9
5289
	  for ld_flag in $LDFLAGS; do
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5290
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5291
	    aix_use_runtimelinking=yes
5292
	    break
5293
	  fi
1 by Daniel Holbach
Import upstream version 2.2.9
5294
	  done
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5295
	  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
5296
	esac
5297
5298
	exp_sym_flag='-bexport'
5299
	no_entry_flag='-bnoentry'
5300
      fi
5301
5302
      # When large executables or shared objects are built, AIX ld can
5303
      # have problems creating the table of contents.  If linking a library
5304
      # or program results in "error TOC overflow" add -mminimal-toc to
5305
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5306
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5307
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5308
      _LT_TAGVAR(archive_cmds, $1)=''
5309
      _LT_TAGVAR(hardcode_direct, $1)=yes
5310
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5311
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5312
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5313
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
1 by Daniel Holbach
Import upstream version 2.2.9
5314
5315
      if test "$GCC" = yes; then
5316
	case $host_os in aix4.[[012]]|aix4.[[012]].*)
5317
	# We only want to do this on AIX 4.2 and lower, the check
5318
	# below for broken collect2 doesn't work under 4.3+
5319
	  collect2name=`${CC} -print-prog-name=collect2`
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5320
	  if test -f "$collect2name" &&
5321
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1 by Daniel Holbach
Import upstream version 2.2.9
5322
	  then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5323
	  # We have reworked collect2
5324
	  :
1 by Daniel Holbach
Import upstream version 2.2.9
5325
	  else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5326
	  # We have old collect2
5327
	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
5328
	  # It fails to find uninstalled libraries when the uninstalled
5329
	  # path is not listed in the libpath.  Setting hardcode_minus_L
5330
	  # to unsupported forces relinking
5331
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5332
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5333
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
1 by Daniel Holbach
Import upstream version 2.2.9
5334
	  fi
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5335
	  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
5336
	esac
5337
	shared_flag='-shared'
5338
	if test "$aix_use_runtimelinking" = yes; then
5339
	  shared_flag="$shared_flag "'${wl}-G'
5340
	fi
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5341
	_LT_TAGVAR(link_all_deplibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5342
      else
5343
	# not using gcc
5344
	if test "$host_cpu" = ia64; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5345
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5346
	# chokes on -Wl,-G. The following line is correct:
1 by Daniel Holbach
Import upstream version 2.2.9
5347
	  shared_flag='-G'
5348
	else
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5349
	  if test "$aix_use_runtimelinking" = yes; then
1 by Daniel Holbach
Import upstream version 2.2.9
5350
	    shared_flag='${wl}-G'
5351
	  else
5352
	    shared_flag='${wl}-bM:SRE'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5353
	  fi
1 by Daniel Holbach
Import upstream version 2.2.9
5354
	fi
5355
      fi
5356
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5357
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
1 by Daniel Holbach
Import upstream version 2.2.9
5358
      # It seems that -bexpall does not export symbols beginning with
5359
      # underscore (_), so it is better to generate a list of symbols to export.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5360
      _LT_TAGVAR(always_export_symbols, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5361
      if test "$aix_use_runtimelinking" = yes; then
5362
	# Warning - without using the other runtime loading flags (-brtl),
5363
	# -berok will link without error, but may produce a broken library.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5364
	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5365
        # Determine the default libpath from the value encoded in an
5366
        # empty executable.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5367
        _LT_SYS_MODULE_PATH_AIX([$1])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5368
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5369
        _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5370
      else
1 by Daniel Holbach
Import upstream version 2.2.9
5371
	if test "$host_cpu" = ia64; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5372
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5373
	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5374
	  _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"
1 by Daniel Holbach
Import upstream version 2.2.9
5375
	else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5376
	 # Determine the default libpath from the value encoded in an
5377
	 # empty executable.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5378
	 _LT_SYS_MODULE_PATH_AIX([$1])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5379
	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1 by Daniel Holbach
Import upstream version 2.2.9
5380
	  # Warning - without using the other run time loading flags,
5381
	  # -berok will link without error, but may produce a broken library.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5382
	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5383
	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5384
	  if test "$with_gnu_ld" = yes; then
5385
	    # We only use this code for GNU lds that support --whole-archive.
5386
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5387
	  else
5388
	    # Exported symbols can be pulled into shared objects from archives
5389
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5390
	  fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5391
	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5392
	  # This is similar to how AIX traditionally builds its shared libraries.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5393
	  _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'
1 by Daniel Holbach
Import upstream version 2.2.9
5394
	fi
5395
      fi
5396
      ;;
5397
5398
    amigaos*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5399
      case $host_cpu in
5400
      powerpc)
5401
            # see comment about AmigaOS4 .so support
5402
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5403
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5404
        ;;
5405
      m68k)
5406
            _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)'
5407
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5408
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5409
        ;;
5410
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
5411
      ;;
5412
5413
    bsdi[[45]]*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5414
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
1 by Daniel Holbach
Import upstream version 2.2.9
5415
      ;;
5416
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5417
    cygwin* | mingw* | pw32* | cegcc*)
1 by Daniel Holbach
Import upstream version 2.2.9
5418
      # When not using gcc, we currently assume that we are using
5419
      # Microsoft Visual C++.
5420
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5421
      # no search path for DLLs.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5422
      case $cc_basename in
5423
      cl*)
5424
	# Native MSVC
5425
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5426
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5427
	_LT_TAGVAR(always_export_symbols, $1)=yes
5428
	_LT_TAGVAR(file_list_spec, $1)='@'
5429
	# Tell ltmain to make .lib files, not .a files.
5430
	libext=lib
5431
	# Tell ltmain to make .dll files, not .so files.
5432
	shrext_cmds=".dll"
5433
	# FIXME: Setting linknames here is a bad hack.
5434
	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5435
	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5436
	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5437
	  else
5438
	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5439
	  fi~
5440
	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5441
	  linknames='
5442
	# The linker will not automatically build a static lib if we build a DLL.
5443
	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5444
	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5445
	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5446
	_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'
5447
	# Don't use ranlib
5448
	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5449
	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5450
	  lt_tool_outputfile="@TOOL_OUTPUT@"~
5451
	  case $lt_outputfile in
5452
	    *.exe|*.EXE) ;;
5453
	    *)
5454
	      lt_outputfile="$lt_outputfile.exe"
5455
	      lt_tool_outputfile="$lt_tool_outputfile.exe"
5456
	      ;;
5457
	  esac~
5458
	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5459
	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5460
	    $RM "$lt_outputfile.manifest";
5461
	  fi'
5462
	;;
5463
      *)
5464
	# Assume MSVC wrapper
5465
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5466
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5467
	# Tell ltmain to make .lib files, not .a files.
5468
	libext=lib
5469
	# Tell ltmain to make .dll files, not .so files.
5470
	shrext_cmds=".dll"
5471
	# FIXME: Setting linknames here is a bad hack.
5472
	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5473
	# The linker will automatically build a .lib file if we build a DLL.
5474
	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5475
	# FIXME: Should let the user specify the lib program.
5476
	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5477
	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5478
	;;
5479
      esac
1 by Daniel Holbach
Import upstream version 2.2.9
5480
      ;;
5481
5482
    darwin* | rhapsody*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5483
      _LT_DARWIN_LINKER_FEATURES($1)
1 by Daniel Holbach
Import upstream version 2.2.9
5484
      ;;
5485
5486
    dgux*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5487
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5488
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5489
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5490
      ;;
5491
5492
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5493
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5494
    # does not break anything, and helps significantly (at the cost of a little
5495
    # extra space).
5496
    freebsd2.2*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5497
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5498
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5499
      _LT_TAGVAR(hardcode_direct, $1)=yes
5500
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5501
      ;;
5502
5503
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5504
    freebsd2.*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5505
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5506
      _LT_TAGVAR(hardcode_direct, $1)=yes
5507
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5508
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5509
      ;;
5510
5511
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5512
    freebsd* | dragonfly*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5513
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5514
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5515
      _LT_TAGVAR(hardcode_direct, $1)=yes
5516
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5517
      ;;
5518
5519
    hpux9*)
5520
      if test "$GCC" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5521
	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5522
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5523
	_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'
1 by Daniel Holbach
Import upstream version 2.2.9
5524
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5525
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5526
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5527
      _LT_TAGVAR(hardcode_direct, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5528
5529
      # hardcode_minus_L: Not really in the search PATH,
5530
      # but as the default location of the library.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5531
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5532
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1 by Daniel Holbach
Import upstream version 2.2.9
5533
      ;;
5534
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5535
    hpux10*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5536
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5537
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5538
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5539
	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5540
      fi
5541
      if test "$with_gnu_ld" = no; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5542
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5543
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5544
	_LT_TAGVAR(hardcode_direct, $1)=yes
5545
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5546
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5547
	# hardcode_minus_L: Not really in the search PATH,
5548
	# but as the default location of the library.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5549
	_LT_TAGVAR(hardcode_minus_L, $1)=yes
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5550
      fi
5551
      ;;
5552
5553
    hpux11*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5554
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1 by Daniel Holbach
Import upstream version 2.2.9
5555
	case $host_cpu in
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5556
	hppa*64*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5557
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5558
	  ;;
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5559
	ia64*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5560
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5561
	  ;;
1 by Daniel Holbach
Import upstream version 2.2.9
5562
	*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5563
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5564
	  ;;
5565
	esac
5566
      else
5567
	case $host_cpu in
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5568
	hppa*64*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5569
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5570
	  ;;
5571
	ia64*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5572
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5573
	  ;;
5574
	*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5575
	m4_if($1, [], [
5576
	  # Older versions of the 11.00 compiler do not understand -b yet
5577
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5578
	  _LT_LINKER_OPTION([if $CC understands -b],
5579
	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5580
	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5581
	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5582
	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
1 by Daniel Holbach
Import upstream version 2.2.9
5583
	  ;;
5584
	esac
5585
      fi
5586
      if test "$with_gnu_ld" = no; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5587
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5588
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5589
1 by Daniel Holbach
Import upstream version 2.2.9
5590
	case $host_cpu in
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5591
	hppa*64*|ia64*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5592
	  _LT_TAGVAR(hardcode_direct, $1)=no
5593
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5594
	  ;;
5595
	*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5596
	  _LT_TAGVAR(hardcode_direct, $1)=yes
5597
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5598
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1 by Daniel Holbach
Import upstream version 2.2.9
5599
5600
	  # hardcode_minus_L: Not really in the search PATH,
5601
	  # but as the default location of the library.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5602
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5603
	  ;;
5604
	esac
5605
      fi
5606
      ;;
5607
5608
    irix5* | irix6* | nonstopux*)
5609
      if test "$GCC" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5610
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5611
	# Try to use the -exported_symbol ld option, if it does not
5612
	# work, assume that -exports_file does not work either and
5613
	# implicitly export all symbols.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5614
	# This should be the same for all languages, so no per-tag cache variable.
5615
	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5616
	  [lt_cv_irix_exported_symbol],
5617
	  [save_LDFLAGS="$LDFLAGS"
5618
	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5619
	   AC_LINK_IFELSE(
5620
	     [AC_LANG_SOURCE(
5621
	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5622
			      [C++], [[int foo (void) { return 0; }]],
5623
			      [Fortran 77], [[
5624
      subroutine foo
5625
      end]],
5626
			      [Fortran], [[
5627
      subroutine foo
5628
      end]])])],
5629
	      [lt_cv_irix_exported_symbol=yes],
5630
	      [lt_cv_irix_exported_symbol=no])
5631
           LDFLAGS="$save_LDFLAGS"])
5632
	if test "$lt_cv_irix_exported_symbol" = yes; then
5633
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5634
	fi
1 by Daniel Holbach
Import upstream version 2.2.9
5635
      else
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5636
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5637
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5638
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5639
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5640
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5641
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5642
      _LT_TAGVAR(inherit_rpath, $1)=yes
5643
      _LT_TAGVAR(link_all_deplibs, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5644
      ;;
5645
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
5646
    netbsd* | netbsdelf*-gnu)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5647
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5648
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1 by Daniel Holbach
Import upstream version 2.2.9
5649
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5650
	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
1 by Daniel Holbach
Import upstream version 2.2.9
5651
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5652
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5653
      _LT_TAGVAR(hardcode_direct, $1)=yes
5654
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5655
      ;;
5656
5657
    newsos6)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5658
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5659
      _LT_TAGVAR(hardcode_direct, $1)=yes
5660
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5661
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5662
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5663
      ;;
5664
5665
    *nto* | *qnx*)
1 by Daniel Holbach
Import upstream version 2.2.9
5666
      ;;
5667
5668
    openbsd*)
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5669
      if test -f /usr/libexec/ld.so; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5670
	_LT_TAGVAR(hardcode_direct, $1)=yes
5671
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5672
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5673
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5674
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5675
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5676
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5677
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5678
	else
5679
	  case $host_os in
5680
	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5681
	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5682
	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5683
	     ;;
5684
	   *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5685
	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5686
	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5687
	     ;;
5688
	  esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5689
	fi
1 by Daniel Holbach
Import upstream version 2.2.9
5690
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5691
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5692
      fi
5693
      ;;
5694
5695
    os2*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5696
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5697
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5698
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5699
      _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'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5700
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1 by Daniel Holbach
Import upstream version 2.2.9
5701
      ;;
5702
5703
    osf3*)
5704
      if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5705
	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5706
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5707
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5708
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5709
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1 by Daniel Holbach
Import upstream version 2.2.9
5710
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5711
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5712
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5713
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
1 by Daniel Holbach
Import upstream version 2.2.9
5714
      ;;
5715
5716
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5717
      if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5718
	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5719
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5720
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1 by Daniel Holbach
Import upstream version 2.2.9
5721
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5722
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5723
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5724
	_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~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5725
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1 by Daniel Holbach
Import upstream version 2.2.9
5726
5727
	# Both c and cxx compiler support -rpath directly
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5728
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1 by Daniel Holbach
Import upstream version 2.2.9
5729
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5730
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5731
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
1 by Daniel Holbach
Import upstream version 2.2.9
5732
      ;;
5733
5734
    solaris*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5735
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
1 by Daniel Holbach
Import upstream version 2.2.9
5736
      if test "$GCC" = yes; then
5737
	wlarc='${wl}'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5738
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5739
	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5740
	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1 by Daniel Holbach
Import upstream version 2.2.9
5741
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5742
	case `$CC -V 2>&1` in
5743
	*"Compilers 5.0"*)
5744
	  wlarc=''
5745
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5746
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5747
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5748
	  ;;
5749
	*)
5750
	  wlarc='${wl}'
5751
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5752
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5753
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5754
	  ;;
5755
	esac
1 by Daniel Holbach
Import upstream version 2.2.9
5756
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5757
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5758
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5759
      case $host_os in
5760
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5761
      *)
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5762
	# The compiler driver will combine and reorder linker options,
5763
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
5764
	# but is careful enough not to reorder.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5765
	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5766
	if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5767
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5768
	else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5769
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5770
	fi
5771
	;;
1 by Daniel Holbach
Import upstream version 2.2.9
5772
      esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5773
      _LT_TAGVAR(link_all_deplibs, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5774
      ;;
5775
5776
    sunos4*)
5777
      if test "x$host_vendor" = xsequent; then
5778
	# Use $CC to link under sequent, because it throws in some extra .o
5779
	# files that make .init and .fini sections work.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5780
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5781
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5782
	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1 by Daniel Holbach
Import upstream version 2.2.9
5783
      fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5784
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5785
      _LT_TAGVAR(hardcode_direct, $1)=yes
5786
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5787
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5788
      ;;
5789
5790
    sysv4)
5791
      case $host_vendor in
5792
	sni)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5793
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5794
	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
1 by Daniel Holbach
Import upstream version 2.2.9
5795
	;;
5796
	siemens)
5797
	  ## LD is ld it makes a PLAMLIB
5798
	  ## CC just makes a GrossModule.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5799
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5800
	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5801
	  _LT_TAGVAR(hardcode_direct, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5802
        ;;
5803
	motorola)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5804
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5805
	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
1 by Daniel Holbach
Import upstream version 2.2.9
5806
	;;
5807
      esac
5808
      runpath_var='LD_RUN_PATH'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5809
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5810
      ;;
5811
5812
    sysv4.3*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5813
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5814
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5815
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
1 by Daniel Holbach
Import upstream version 2.2.9
5816
      ;;
5817
5818
    sysv4*MP*)
5819
      if test -d /usr/nec; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5820
	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5821
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5822
	runpath_var=LD_RUN_PATH
5823
	hardcode_runpath_var=yes
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5824
	_LT_TAGVAR(ld_shlibs, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5825
      fi
5826
      ;;
5827
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
5828
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5829
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5830
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5831
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5832
      runpath_var='LD_RUN_PATH'
5833
5834
      if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5835
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5836
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5837
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5838
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5839
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5840
      fi
5841
      ;;
5842
5843
    sysv5* | sco3.2v5* | sco5v6*)
5844
      # Note: We can NOT use -z defs as we might desire, because we do not
5845
      # link with -lc, and that would cause any symbols used from libc to
5846
      # always be unresolved, which means just about no library would
5847
      # ever link correctly.  If we're not using GNU ld we use -z text
5848
      # though, which does catch some bad symbols but isn't as heavy-handed
5849
      # as -z defs.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5850
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5851
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5852
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5853
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5854
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5855
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5856
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5857
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5858
      runpath_var='LD_RUN_PATH'
5859
5860
      if test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5861
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5862
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5863
      else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5864
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5865
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.2 by Daniel Holbach
Import upstream version 2.2.11
5866
      fi
1 by Daniel Holbach
Import upstream version 2.2.9
5867
      ;;
5868
5869
    uts4*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5870
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5871
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5872
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5873
      ;;
5874
5875
    *)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5876
      _LT_TAGVAR(ld_shlibs, $1)=no
1 by Daniel Holbach
Import upstream version 2.2.9
5877
      ;;
5878
    esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5879
5880
    if test x$host_vendor = xsni; then
5881
      case $host in
5882
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5883
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5884
	;;
5885
      esac
5886
    fi
1 by Daniel Holbach
Import upstream version 2.2.9
5887
  fi
5888
])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5889
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5890
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5891
5892
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5893
5894
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5895
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5896
_LT_DECL([], [extract_expsyms_cmds], [2],
5897
    [The commands to extract the exported symbol list from a shared archive])
1 by Daniel Holbach
Import upstream version 2.2.9
5898
5899
#
5900
# Do we need to explicitly link libc?
5901
#
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5902
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
1 by Daniel Holbach
Import upstream version 2.2.9
5903
x|xyes)
5904
  # Assume -lc should be added
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5905
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
1 by Daniel Holbach
Import upstream version 2.2.9
5906
5907
  if test "$enable_shared" = yes && test "$GCC" = yes; then
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5908
    case $_LT_TAGVAR(archive_cmds, $1) in
1 by Daniel Holbach
Import upstream version 2.2.9
5909
    *'~'*)
5910
      # FIXME: we may have to deal with multi-command sequences.
5911
      ;;
5912
    '$CC '*)
5913
      # Test whether the compiler implicitly links with -lc since on some
5914
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5915
      # to ld, don't add -lc before -lgcc.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5916
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5917
	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5918
	[$RM conftest*
5919
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Daniel Holbach
Import upstream version 2.2.9
5920
0.3.5 by Ari Pollak
Import upstream version 2.6.12
5921
	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5922
	  soname=conftest
5923
	  lib=conftest
5924
	  libobjs=conftest.$ac_objext
5925
	  deplibs=
5926
	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5927
	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5928
	  compiler_flags=-v
5929
	  linker_flags=-v
5930
	  verstring=
5931
	  output_objdir=.
5932
	  libname=conftest
5933
	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5934
	  _LT_TAGVAR(allow_undefined_flag, $1)=
5935
	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5936
	  then
5937
	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5938
	  else
5939
	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5940
	  fi
5941
	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5942
	else
5943
	  cat conftest.err 1>&5
5944
	fi
5945
	$RM conftest*
5946
	])
5947
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
1 by Daniel Holbach
Import upstream version 2.2.9
5948
      ;;
5949
    esac
5950
  fi
5951
  ;;
5952
esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
5953
5954
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5955
    [Whether or not to add -lc for building shared libraries])
5956
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5957
    [enable_shared_with_static_runtimes], [0],
5958
    [Whether or not to disallow shared libs when runtime libs are static])
5959
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5960
    [Compiler flag to allow reflexive dlopens])
5961
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5962
    [Compiler flag to generate shared objects directly from archives])
5963
_LT_TAGDECL([], [compiler_needs_object], [1],
5964
    [Whether the compiler copes with passing no objects directly])
5965
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5966
    [Create an old-style archive from a shared archive])
5967
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5968
    [Create a temporary old-style archive to link instead of a shared archive])
5969
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5970
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5971
_LT_TAGDECL([], [module_cmds], [2],
5972
    [Commands used to build a loadable module if different from building
5973
    a shared archive.])
5974
_LT_TAGDECL([], [module_expsym_cmds], [2])
5975
_LT_TAGDECL([], [with_gnu_ld], [1],
5976
    [Whether we are building with GNU ld or not])
5977
_LT_TAGDECL([], [allow_undefined_flag], [1],
5978
    [Flag that allows shared libraries with undefined symbols to be built])
5979
_LT_TAGDECL([], [no_undefined_flag], [1],
5980
    [Flag that enforces no undefined symbols])
5981
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5982
    [Flag to hardcode $libdir into a binary during linking.
5983
    This must work even if $libdir does not exist])
5984
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5985
    [Whether we need a single "-rpath" flag with a separated argument])
5986
_LT_TAGDECL([], [hardcode_direct], [0],
5987
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5988
    DIR into the resulting binary])
5989
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5990
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5991
    DIR into the resulting binary and the resulting library dependency is
5992
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5993
    library is relocated])
5994
_LT_TAGDECL([], [hardcode_minus_L], [0],
5995
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5996
    into the resulting binary])
5997
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5998
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5999
    into the resulting binary])
6000
_LT_TAGDECL([], [hardcode_automatic], [0],
6001
    [Set to "yes" if building a shared library automatically hardcodes DIR
6002
    into the library and all subsequent libraries and executables linked
6003
    against it])
6004
_LT_TAGDECL([], [inherit_rpath], [0],
6005
    [Set to yes if linker adds runtime paths of dependent libraries
6006
    to runtime path list])
6007
_LT_TAGDECL([], [link_all_deplibs], [0],
6008
    [Whether libtool must link a program against all its dependency libraries])
6009
_LT_TAGDECL([], [always_export_symbols], [0],
6010
    [Set to "yes" if exported symbols are required])
6011
_LT_TAGDECL([], [export_symbols_cmds], [2],
6012
    [The commands to list exported symbols])
6013
_LT_TAGDECL([], [exclude_expsyms], [1],
6014
    [Symbols that should not be listed in the preloaded symbols])
6015
_LT_TAGDECL([], [include_expsyms], [1],
6016
    [Symbols that must always be exported])
6017
_LT_TAGDECL([], [prelink_cmds], [2],
6018
    [Commands necessary for linking programs (against libraries) with templates])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6019
_LT_TAGDECL([], [postlink_cmds], [2],
6020
    [Commands necessary for finishing linking programs])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6021
_LT_TAGDECL([], [file_list_spec], [1],
6022
    [Specify filename containing input files])
6023
dnl FIXME: Not yet implemented
6024
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6025
dnl    [Compiler flag to generate thread safe objects])
6026
])# _LT_LINKER_SHLIBS
6027
6028
6029
# _LT_LANG_C_CONFIG([TAG])
6030
# ------------------------
6031
# Ensure that the configuration variables for a C compiler are suitably
6032
# defined.  These variables are subsequently used by _LT_CONFIG to write
6033
# the compiler configuration to `libtool'.
6034
m4_defun([_LT_LANG_C_CONFIG],
6035
[m4_require([_LT_DECL_EGREP])dnl
6036
lt_save_CC="$CC"
6037
AC_LANG_PUSH(C)
6038
6039
# Source file extension for C test sources.
6040
ac_ext=c
6041
6042
# Object file extension for compiled C test sources.
6043
objext=o
6044
_LT_TAGVAR(objext, $1)=$objext
6045
6046
# Code to be used in simple compile tests
6047
lt_simple_compile_test_code="int some_variable = 0;"
6048
6049
# Code to be used in simple link tests
6050
lt_simple_link_test_code='int main(){return(0);}'
6051
6052
_LT_TAG_COMPILER
6053
# Save the default compiler, since it gets overwritten when the other
6054
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6055
compiler_DEFAULT=$CC
6056
6057
# save warnings/boilerplate of simple test code
6058
_LT_COMPILER_BOILERPLATE
6059
_LT_LINKER_BOILERPLATE
6060
6061
if test -n "$compiler"; then
6062
  _LT_COMPILER_NO_RTTI($1)
6063
  _LT_COMPILER_PIC($1)
6064
  _LT_COMPILER_C_O($1)
6065
  _LT_COMPILER_FILE_LOCKS($1)
6066
  _LT_LINKER_SHLIBS($1)
6067
  _LT_SYS_DYNAMIC_LINKER($1)
6068
  _LT_LINKER_HARDCODE_LIBPATH($1)
6069
  LT_SYS_DLOPEN_SELF
6070
  _LT_CMD_STRIPLIB
6071
6072
  # Report which library types will actually be built
6073
  AC_MSG_CHECKING([if libtool supports shared libraries])
6074
  AC_MSG_RESULT([$can_build_shared])
6075
6076
  AC_MSG_CHECKING([whether to build shared libraries])
6077
  test "$can_build_shared" = "no" && enable_shared=no
6078
6079
  # On AIX, shared libraries and static libraries use the same namespace, and
6080
  # are all built from PIC.
6081
  case $host_os in
6082
  aix3*)
6083
    test "$enable_shared" = yes && enable_static=no
6084
    if test -n "$RANLIB"; then
6085
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6086
      postinstall_cmds='$RANLIB $lib'
6087
    fi
6088
    ;;
6089
6090
  aix[[4-9]]*)
6091
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6092
      test "$enable_shared" = yes && enable_static=no
6093
    fi
6094
    ;;
6095
  esac
6096
  AC_MSG_RESULT([$enable_shared])
6097
6098
  AC_MSG_CHECKING([whether to build static libraries])
6099
  # Make sure either enable_shared or enable_static is yes.
6100
  test "$enable_shared" = yes || enable_static=yes
6101
  AC_MSG_RESULT([$enable_static])
6102
6103
  _LT_CONFIG($1)
6104
fi
6105
AC_LANG_POP
6106
CC="$lt_save_CC"
6107
])# _LT_LANG_C_CONFIG
6108
6109
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6110
# _LT_LANG_CXX_CONFIG([TAG])
6111
# --------------------------
6112
# Ensure that the configuration variables for a C++ compiler are suitably
6113
# defined.  These variables are subsequently used by _LT_CONFIG to write
6114
# the compiler configuration to `libtool'.
6115
m4_defun([_LT_LANG_CXX_CONFIG],
6116
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6117
m4_require([_LT_DECL_EGREP])dnl
6118
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6119
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6120
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6121
    (test "X$CXX" != "Xg++"))) ; then
6122
  AC_PROG_CXXCPP
6123
else
6124
  _lt_caught_CXX_error=yes
6125
fi
6126
6127
AC_LANG_PUSH(C++)
6128
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6129
_LT_TAGVAR(allow_undefined_flag, $1)=
6130
_LT_TAGVAR(always_export_symbols, $1)=no
6131
_LT_TAGVAR(archive_expsym_cmds, $1)=
6132
_LT_TAGVAR(compiler_needs_object, $1)=no
6133
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6134
_LT_TAGVAR(hardcode_direct, $1)=no
6135
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6136
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6137
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6138
_LT_TAGVAR(hardcode_minus_L, $1)=no
6139
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6140
_LT_TAGVAR(hardcode_automatic, $1)=no
6141
_LT_TAGVAR(inherit_rpath, $1)=no
6142
_LT_TAGVAR(module_cmds, $1)=
6143
_LT_TAGVAR(module_expsym_cmds, $1)=
6144
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6145
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6146
_LT_TAGVAR(reload_flag, $1)=$reload_flag
6147
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6148
_LT_TAGVAR(no_undefined_flag, $1)=
6149
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6150
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6151
6152
# Source file extension for C++ test sources.
6153
ac_ext=cpp
6154
6155
# Object file extension for compiled C++ test sources.
6156
objext=o
6157
_LT_TAGVAR(objext, $1)=$objext
6158
6159
# No sense in running all these tests if we already determined that
6160
# the CXX compiler isn't working.  Some variables (like enable_shared)
6161
# are currently assumed to apply to all compilers on this platform,
6162
# and will be corrupted by setting them based on a non-working compiler.
6163
if test "$_lt_caught_CXX_error" != yes; then
6164
  # Code to be used in simple compile tests
6165
  lt_simple_compile_test_code="int some_variable = 0;"
6166
6167
  # Code to be used in simple link tests
6168
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6169
6170
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6171
  _LT_TAG_COMPILER
6172
6173
  # save warnings/boilerplate of simple test code
6174
  _LT_COMPILER_BOILERPLATE
6175
  _LT_LINKER_BOILERPLATE
6176
6177
  # Allow CC to be a program name with arguments.
6178
  lt_save_CC=$CC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6179
  lt_save_CFLAGS=$CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6180
  lt_save_LD=$LD
6181
  lt_save_GCC=$GCC
6182
  GCC=$GXX
6183
  lt_save_with_gnu_ld=$with_gnu_ld
6184
  lt_save_path_LD=$lt_cv_path_LD
6185
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6186
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6187
  else
6188
    $as_unset lt_cv_prog_gnu_ld
6189
  fi
6190
  if test -n "${lt_cv_path_LDCXX+set}"; then
6191
    lt_cv_path_LD=$lt_cv_path_LDCXX
6192
  else
6193
    $as_unset lt_cv_path_LD
6194
  fi
6195
  test -z "${LDCXX+set}" || LD=$LDCXX
6196
  CC=${CXX-"c++"}
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6197
  CFLAGS=$CXXFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6198
  compiler=$CC
6199
  _LT_TAGVAR(compiler, $1)=$CC
6200
  _LT_CC_BASENAME([$compiler])
6201
6202
  if test -n "$compiler"; then
6203
    # We don't want -fno-exception when compiling C++ code, so set the
6204
    # no_builtin_flag separately
6205
    if test "$GXX" = yes; then
6206
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6207
    else
6208
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6209
    fi
6210
6211
    if test "$GXX" = yes; then
6212
      # Set up default GNU C++ configuration
6213
6214
      LT_PATH_LD
6215
6216
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6217
      # archiving commands below assume that GNU ld is being used.
6218
      if test "$with_gnu_ld" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6219
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6220
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6221
6222
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6223
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6224
6225
        # If archive_cmds runs LD, not CC, wlarc should be empty
6226
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6227
        #     investigate it a little bit more. (MM)
6228
        wlarc='${wl}'
6229
6230
        # ancient GNU ld didn't support --whole-archive et. al.
6231
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6232
	  $GREP 'no-whole-archive' > /dev/null; then
6233
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6234
        else
6235
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6236
        fi
6237
      else
6238
        with_gnu_ld=no
6239
        wlarc=
6240
6241
        # A generic and very simple default shared library creation
6242
        # command for GNU C++ for the case where it uses the native
6243
        # linker, instead of GNU ld.  If possible, this setting should
6244
        # overridden to take advantage of the native linker features on
6245
        # the platform it is being used on.
6246
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6247
      fi
6248
6249
      # Commands to make compiler produce verbose output that lists
6250
      # what "hidden" libraries, object files and flags are used when
6251
      # linking a shared library.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6252
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6253
6254
    else
6255
      GXX=no
6256
      with_gnu_ld=no
6257
      wlarc=
6258
    fi
6259
6260
    # PORTME: fill in a description of your system's C++ link characteristics
6261
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6262
    _LT_TAGVAR(ld_shlibs, $1)=yes
6263
    case $host_os in
6264
      aix3*)
6265
        # FIXME: insert proper C++ library support
6266
        _LT_TAGVAR(ld_shlibs, $1)=no
6267
        ;;
6268
      aix[[4-9]]*)
6269
        if test "$host_cpu" = ia64; then
6270
          # On IA64, the linker does run time linking by default, so we don't
6271
          # have to do anything special.
6272
          aix_use_runtimelinking=no
6273
          exp_sym_flag='-Bexport'
6274
          no_entry_flag=""
6275
        else
6276
          aix_use_runtimelinking=no
6277
6278
          # Test if we are trying to use run time linking or normal
6279
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6280
          # need to do runtime linking.
6281
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6282
	    for ld_flag in $LDFLAGS; do
6283
	      case $ld_flag in
6284
	      *-brtl*)
6285
	        aix_use_runtimelinking=yes
6286
	        break
6287
	        ;;
6288
	      esac
6289
	    done
6290
	    ;;
6291
          esac
6292
6293
          exp_sym_flag='-bexport'
6294
          no_entry_flag='-bnoentry'
6295
        fi
6296
6297
        # When large executables or shared objects are built, AIX ld can
6298
        # have problems creating the table of contents.  If linking a library
6299
        # or program results in "error TOC overflow" add -mminimal-toc to
6300
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6301
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6302
6303
        _LT_TAGVAR(archive_cmds, $1)=''
6304
        _LT_TAGVAR(hardcode_direct, $1)=yes
6305
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6306
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6307
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6308
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6309
6310
        if test "$GXX" = yes; then
6311
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6312
          # We only want to do this on AIX 4.2 and lower, the check
6313
          # below for broken collect2 doesn't work under 4.3+
6314
	  collect2name=`${CC} -print-prog-name=collect2`
6315
	  if test -f "$collect2name" &&
6316
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6317
	  then
6318
	    # We have reworked collect2
6319
	    :
6320
	  else
6321
	    # We have old collect2
6322
	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
6323
	    # It fails to find uninstalled libraries when the uninstalled
6324
	    # path is not listed in the libpath.  Setting hardcode_minus_L
6325
	    # to unsupported forces relinking
6326
	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
6327
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6328
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
6329
	  fi
6330
          esac
6331
          shared_flag='-shared'
6332
	  if test "$aix_use_runtimelinking" = yes; then
6333
	    shared_flag="$shared_flag "'${wl}-G'
6334
	  fi
6335
        else
6336
          # not using gcc
6337
          if test "$host_cpu" = ia64; then
6338
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6339
	  # chokes on -Wl,-G. The following line is correct:
6340
	  shared_flag='-G'
6341
          else
6342
	    if test "$aix_use_runtimelinking" = yes; then
6343
	      shared_flag='${wl}-G'
6344
	    else
6345
	      shared_flag='${wl}-bM:SRE'
6346
	    fi
6347
          fi
6348
        fi
6349
6350
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6351
        # It seems that -bexpall does not export symbols beginning with
6352
        # underscore (_), so it is better to generate a list of symbols to
6353
	# export.
6354
        _LT_TAGVAR(always_export_symbols, $1)=yes
6355
        if test "$aix_use_runtimelinking" = yes; then
6356
          # Warning - without using the other runtime loading flags (-brtl),
6357
          # -berok will link without error, but may produce a broken library.
6358
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6359
          # Determine the default libpath from the value encoded in an empty
6360
          # executable.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6361
          _LT_SYS_MODULE_PATH_AIX([$1])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6362
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6363
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6364
          _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6365
        else
6366
          if test "$host_cpu" = ia64; then
6367
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6368
	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6369
	    _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"
6370
          else
6371
	    # Determine the default libpath from the value encoded in an
6372
	    # empty executable.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6373
	    _LT_SYS_MODULE_PATH_AIX([$1])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6374
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6375
	    # Warning - without using the other run time loading flags,
6376
	    # -berok will link without error, but may produce a broken library.
6377
	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6378
	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6379
	    if test "$with_gnu_ld" = yes; then
6380
	      # We only use this code for GNU lds that support --whole-archive.
6381
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6382
	    else
6383
	      # Exported symbols can be pulled into shared objects from archives
6384
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6385
	    fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6386
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6387
	    # This is similar to how AIX traditionally builds its shared
6388
	    # libraries.
6389
	    _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'
6390
          fi
6391
        fi
6392
        ;;
6393
6394
      beos*)
6395
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6396
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6397
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6398
	  # support --undefined.  This deserves some investigation.  FIXME
6399
	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6400
	else
6401
	  _LT_TAGVAR(ld_shlibs, $1)=no
6402
	fi
6403
	;;
6404
6405
      chorus*)
6406
        case $cc_basename in
6407
          *)
6408
	  # FIXME: insert proper C++ library support
6409
	  _LT_TAGVAR(ld_shlibs, $1)=no
6410
	  ;;
6411
        esac
6412
        ;;
6413
6414
      cygwin* | mingw* | pw32* | cegcc*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6415
	case $GXX,$cc_basename in
6416
	,cl* | no,cl*)
6417
	  # Native MSVC
6418
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
6419
	  # no search path for DLLs.
6420
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6421
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6422
	  _LT_TAGVAR(always_export_symbols, $1)=yes
6423
	  _LT_TAGVAR(file_list_spec, $1)='@'
6424
	  # Tell ltmain to make .lib files, not .a files.
6425
	  libext=lib
6426
	  # Tell ltmain to make .dll files, not .so files.
6427
	  shrext_cmds=".dll"
6428
	  # FIXME: Setting linknames here is a bad hack.
6429
	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6430
	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6431
	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6432
	    else
6433
	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6434
	    fi~
6435
	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6436
	    linknames='
6437
	  # The linker will not automatically build a static lib if we build a DLL.
6438
	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6439
	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6440
	  # Don't use ranlib
6441
	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6442
	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6443
	    lt_tool_outputfile="@TOOL_OUTPUT@"~
6444
	    case $lt_outputfile in
6445
	      *.exe|*.EXE) ;;
6446
	      *)
6447
		lt_outputfile="$lt_outputfile.exe"
6448
		lt_tool_outputfile="$lt_tool_outputfile.exe"
6449
		;;
6450
	    esac~
6451
	    func_to_tool_file "$lt_outputfile"~
6452
	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6453
	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6454
	      $RM "$lt_outputfile.manifest";
6455
	    fi'
6456
	  ;;
6457
	*)
6458
	  # g++
6459
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6460
	  # as there is no search path for DLLs.
6461
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6462
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6463
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6464
	  _LT_TAGVAR(always_export_symbols, $1)=no
6465
	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6466
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6467
	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6468
	    _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'
6469
	    # If the export-symbols file already is a .def file (1st line
6470
	    # is EXPORTS), use it as is; otherwise, prepend...
6471
	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6472
	      cp $export_symbols $output_objdir/$soname.def;
6473
	    else
6474
	      echo EXPORTS > $output_objdir/$soname.def;
6475
	      cat $export_symbols >> $output_objdir/$soname.def;
6476
	    fi~
6477
	    $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'
6478
	  else
6479
	    _LT_TAGVAR(ld_shlibs, $1)=no
6480
	  fi
6481
	  ;;
6482
	esac
6483
	;;
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6484
      darwin* | rhapsody*)
6485
        _LT_DARWIN_LINKER_FEATURES($1)
6486
	;;
6487
6488
      dgux*)
6489
        case $cc_basename in
6490
          ec++*)
6491
	    # FIXME: insert proper C++ library support
6492
	    _LT_TAGVAR(ld_shlibs, $1)=no
6493
	    ;;
6494
          ghcx*)
6495
	    # Green Hills C++ Compiler
6496
	    # FIXME: insert proper C++ library support
6497
	    _LT_TAGVAR(ld_shlibs, $1)=no
6498
	    ;;
6499
          *)
6500
	    # FIXME: insert proper C++ library support
6501
	    _LT_TAGVAR(ld_shlibs, $1)=no
6502
	    ;;
6503
        esac
6504
        ;;
6505
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
6506
      freebsd2.*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6507
        # C++ shared libraries reported to be fairly broken before
6508
	# switch to ELF
6509
        _LT_TAGVAR(ld_shlibs, $1)=no
6510
        ;;
6511
6512
      freebsd-elf*)
6513
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6514
        ;;
6515
6516
      freebsd* | dragonfly*)
6517
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6518
        # conventions
6519
        _LT_TAGVAR(ld_shlibs, $1)=yes
6520
        ;;
6521
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6522
      haiku*)
6523
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6524
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6525
        ;;
6526
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6527
      hpux9*)
6528
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6529
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6530
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6531
        _LT_TAGVAR(hardcode_direct, $1)=yes
6532
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6533
				             # but as the default
6534
				             # location of the library.
6535
6536
        case $cc_basename in
6537
          CC*)
6538
            # FIXME: insert proper C++ library support
6539
            _LT_TAGVAR(ld_shlibs, $1)=no
6540
            ;;
6541
          aCC*)
6542
            _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'
6543
            # Commands to make compiler produce verbose output that lists
6544
            # what "hidden" libraries, object files and flags are used when
6545
            # linking a shared library.
6546
            #
6547
            # There doesn't appear to be a way to prevent this compiler from
6548
            # explicitly linking system object files so we need to strip them
6549
            # from the output so that they don't get included in the library
6550
            # dependencies.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6551
            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; func_echo_all "$list"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6552
            ;;
6553
          *)
6554
            if test "$GXX" = yes; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6555
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6556
            else
6557
              # FIXME: insert proper C++ library support
6558
              _LT_TAGVAR(ld_shlibs, $1)=no
6559
            fi
6560
            ;;
6561
        esac
6562
        ;;
6563
6564
      hpux10*|hpux11*)
6565
        if test $with_gnu_ld = no; then
6566
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6567
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6568
6569
          case $host_cpu in
6570
            hppa*64*|ia64*)
6571
              ;;
6572
            *)
6573
	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6574
              ;;
6575
          esac
6576
        fi
6577
        case $host_cpu in
6578
          hppa*64*|ia64*)
6579
            _LT_TAGVAR(hardcode_direct, $1)=no
6580
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6581
            ;;
6582
          *)
6583
            _LT_TAGVAR(hardcode_direct, $1)=yes
6584
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6585
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6586
					         # but as the default
6587
					         # location of the library.
6588
            ;;
6589
        esac
6590
6591
        case $cc_basename in
6592
          CC*)
6593
	    # FIXME: insert proper C++ library support
6594
	    _LT_TAGVAR(ld_shlibs, $1)=no
6595
	    ;;
6596
          aCC*)
6597
	    case $host_cpu in
6598
	      hppa*64*)
6599
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6600
	        ;;
6601
	      ia64*)
6602
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6603
	        ;;
6604
	      *)
6605
	        _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'
6606
	        ;;
6607
	    esac
6608
	    # Commands to make compiler produce verbose output that lists
6609
	    # what "hidden" libraries, object files and flags are used when
6610
	    # linking a shared library.
6611
	    #
6612
	    # There doesn't appear to be a way to prevent this compiler from
6613
	    # explicitly linking system object files so we need to strip them
6614
	    # from the output so that they don't get included in the library
6615
	    # dependencies.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6616
	    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; func_echo_all "$list"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6617
	    ;;
6618
          *)
6619
	    if test "$GXX" = yes; then
6620
	      if test $with_gnu_ld = no; then
6621
	        case $host_cpu in
6622
	          hppa*64*)
6623
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6624
	            ;;
6625
	          ia64*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6626
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6627
	            ;;
6628
	          *)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6629
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6630
	            ;;
6631
	        esac
6632
	      fi
6633
	    else
6634
	      # FIXME: insert proper C++ library support
6635
	      _LT_TAGVAR(ld_shlibs, $1)=no
6636
	    fi
6637
	    ;;
6638
        esac
6639
        ;;
6640
6641
      interix[[3-9]]*)
6642
	_LT_TAGVAR(hardcode_direct, $1)=no
6643
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6644
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6645
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6646
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6647
	# Instead, shared libraries are loaded at an image base (0x10000000 by
6648
	# default) and relocated if they conflict, which is a slow very memory
6649
	# consuming and fragmenting process.  To avoid this, we pick a random,
6650
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6651
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6652
	_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'
6653
	_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'
6654
	;;
6655
      irix5* | irix6*)
6656
        case $cc_basename in
6657
          CC*)
6658
	    # SGI C++
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6659
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6660
6661
	    # Archives containing C++ object files must be created using
6662
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6663
	    # necessary to make sure instantiated templates are included
6664
	    # in the archive.
6665
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6666
	    ;;
6667
          *)
6668
	    if test "$GXX" = yes; then
6669
	      if test "$with_gnu_ld" = no; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6670
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6671
	      else
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6672
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6673
	      fi
6674
	    fi
6675
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6676
	    ;;
6677
        esac
6678
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6679
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6680
        _LT_TAGVAR(inherit_rpath, $1)=yes
6681
        ;;
6682
0.3.7 by Ari Pollak
Import upstream version 2.8.2
6683
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6684
        case $cc_basename in
6685
          KCC*)
6686
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6687
6688
	    # KCC will only create a shared library if the output file
6689
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6690
	    # to its proper name (with version) after linking.
6691
	    _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'
6692
	    _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'
6693
	    # Commands to make compiler produce verbose output that lists
6694
	    # what "hidden" libraries, object files and flags are used when
6695
	    # linking a shared library.
6696
	    #
6697
	    # There doesn't appear to be a way to prevent this compiler from
6698
	    # explicitly linking system object files so we need to strip them
6699
	    # from the output so that they don't get included in the library
6700
	    # dependencies.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6701
	    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; func_echo_all "$list"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6702
6703
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6704
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6705
6706
	    # Archives containing C++ object files must be created using
6707
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6708
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6709
	    ;;
6710
	  icpc* | ecpc* )
6711
	    # Intel C++
6712
	    with_gnu_ld=yes
6713
	    # version 8.0 and above of icpc choke on multiply defined symbols
6714
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
6715
	    # earlier do not add the objects themselves.
6716
	    case `$CC -V 2>&1` in
6717
	      *"Version 7."*)
6718
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719
		_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'
6720
		;;
6721
	      *)  # Version 8.0 or newer
6722
	        tmp_idyn=
6723
	        case $host_cpu in
6724
		  ia64*) tmp_idyn=' -i_dynamic';;
6725
		esac
6726
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6727
		_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'
6728
		;;
6729
	    esac
6730
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6731
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6732
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6733
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6734
	    ;;
6735
          pgCC* | pgcpp*)
6736
            # Portland Group C++ compiler
6737
	    case `$CC -V` in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6738
	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6739
	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6740
		rm -rf $tpldir~
6741
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6742
		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6743
	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6744
		rm -rf $tpldir~
6745
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6746
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6747
		$RANLIB $oldlib'
6748
	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6749
		rm -rf $tpldir~
6750
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6751
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6752
	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6753
		rm -rf $tpldir~
6754
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6755
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6756
	      ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6757
	    *) # Version 6 and above use weak symbols
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6758
	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6759
	      _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'
6760
	      ;;
6761
	    esac
6762
6763
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6764
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6765
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6766
            ;;
6767
	  cxx*)
6768
	    # Compaq C++
6769
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770
	    _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'
6771
6772
	    runpath_var=LD_RUN_PATH
6773
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $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
	    #
6780
	    # There doesn't appear to be a way to prevent this compiler from
6781
	    # explicitly linking system object files so we need to strip them
6782
	    # from the output so that they don't get included in the library
6783
	    # dependencies.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6784
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6785
	    ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6786
	  xl* | mpixl* | bgxl*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6787
	    # IBM XL 8.0 on PPC, with GNU ld
6788
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6789
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6790
	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6791
	    if test "x$supports_anon_versioning" = xyes; then
6792
	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6793
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6794
		echo "local: *; };" >> $output_objdir/$libname.ver~
6795
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6796
	    fi
6797
	    ;;
6798
	  *)
6799
	    case `$CC -V 2>&1 | sed 5q` in
6800
	    *Sun\ C*)
6801
	      # Sun C++ 5.9
6802
	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6803
	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6804
	      _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'
6805
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6806
	      _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6807
	      _LT_TAGVAR(compiler_needs_object, $1)=yes
6808
6809
	      # Not sure whether something based on
6810
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6811
	      # would be better.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6812
	      output_verbose_link_cmd='func_echo_all'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6813
6814
	      # Archives containing C++ object files must be created using
6815
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6816
	      # necessary to make sure instantiated templates are included
6817
	      # in the archive.
6818
	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6819
	      ;;
6820
	    esac
6821
	    ;;
6822
	esac
6823
	;;
6824
6825
      lynxos*)
6826
        # FIXME: insert proper C++ library support
6827
	_LT_TAGVAR(ld_shlibs, $1)=no
6828
	;;
6829
6830
      m88k*)
6831
        # FIXME: insert proper C++ library support
6832
        _LT_TAGVAR(ld_shlibs, $1)=no
6833
	;;
6834
6835
      mvs*)
6836
        case $cc_basename in
6837
          cxx*)
6838
	    # FIXME: insert proper C++ library support
6839
	    _LT_TAGVAR(ld_shlibs, $1)=no
6840
	    ;;
6841
	  *)
6842
	    # FIXME: insert proper C++ library support
6843
	    _LT_TAGVAR(ld_shlibs, $1)=no
6844
	    ;;
6845
	esac
6846
	;;
6847
6848
      netbsd*)
6849
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6850
	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6851
	  wlarc=
6852
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6853
	  _LT_TAGVAR(hardcode_direct, $1)=yes
6854
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6855
	fi
6856
	# Workaround some broken pre-1.5 toolchains
6857
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6858
	;;
6859
6860
      *nto* | *qnx*)
6861
        _LT_TAGVAR(ld_shlibs, $1)=yes
6862
	;;
6863
6864
      openbsd2*)
6865
        # C++ shared libraries are fairly broken
6866
	_LT_TAGVAR(ld_shlibs, $1)=no
6867
	;;
6868
6869
      openbsd*)
6870
	if test -f /usr/libexec/ld.so; then
6871
	  _LT_TAGVAR(hardcode_direct, $1)=yes
6872
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6873
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6874
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6875
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6876
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6877
	    _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'
6878
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6879
	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6880
	  fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6881
	  output_verbose_link_cmd=func_echo_all
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6882
	else
6883
	  _LT_TAGVAR(ld_shlibs, $1)=no
6884
	fi
6885
	;;
6886
6887
      osf3* | osf4* | osf5*)
6888
        case $cc_basename in
6889
          KCC*)
6890
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6891
6892
	    # KCC will only create a shared library if the output file
6893
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6894
	    # to its proper name (with version) after linking.
6895
	    _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'
6896
6897
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6898
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6899
6900
	    # Archives containing C++ object files must be created using
6901
	    # the KAI C++ compiler.
6902
	    case $host in
6903
	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6904
	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6905
	    esac
6906
	    ;;
6907
          RCC*)
6908
	    # Rational C++ 2.4.1
6909
	    # FIXME: insert proper C++ library support
6910
	    _LT_TAGVAR(ld_shlibs, $1)=no
6911
	    ;;
6912
          cxx*)
6913
	    case $host in
6914
	      osf3*)
6915
	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6916
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6917
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6918
		;;
6919
	      *)
6920
	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6921
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6922
	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6923
	          echo "-hidden">> $lib.exp~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6924
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6925
	          $RM $lib.exp'
6926
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6927
		;;
6928
	    esac
6929
6930
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6931
6932
	    # Commands to make compiler produce verbose output that lists
6933
	    # what "hidden" libraries, object files and flags are used when
6934
	    # linking a shared library.
6935
	    #
6936
	    # There doesn't appear to be a way to prevent this compiler from
6937
	    # explicitly linking system object files so we need to strip them
6938
	    # from the output so that they don't get included in the library
6939
	    # dependencies.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6940
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6941
	    ;;
6942
	  *)
6943
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6944
	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6945
	      case $host in
6946
	        osf3*)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6947
	          _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6948
		  ;;
6949
	        *)
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6950
	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6951
		  ;;
6952
	      esac
6953
6954
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6955
	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6956
6957
	      # Commands to make compiler produce verbose output that lists
6958
	      # what "hidden" libraries, object files and flags are used when
6959
	      # linking a shared library.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6960
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6961
6962
	    else
6963
	      # FIXME: insert proper C++ library support
6964
	      _LT_TAGVAR(ld_shlibs, $1)=no
6965
	    fi
6966
	    ;;
6967
        esac
6968
        ;;
6969
6970
      psos*)
6971
        # FIXME: insert proper C++ library support
6972
        _LT_TAGVAR(ld_shlibs, $1)=no
6973
        ;;
6974
6975
      sunos4*)
6976
        case $cc_basename in
6977
          CC*)
6978
	    # Sun C++ 4.x
6979
	    # FIXME: insert proper C++ library support
6980
	    _LT_TAGVAR(ld_shlibs, $1)=no
6981
	    ;;
6982
          lcc*)
6983
	    # Lucid
6984
	    # FIXME: insert proper C++ library support
6985
	    _LT_TAGVAR(ld_shlibs, $1)=no
6986
	    ;;
6987
          *)
6988
	    # FIXME: insert proper C++ library support
6989
	    _LT_TAGVAR(ld_shlibs, $1)=no
6990
	    ;;
6991
        esac
6992
        ;;
6993
6994
      solaris*)
6995
        case $cc_basename in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
6996
          CC* | sunCC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
6997
	    # Sun C++ 4.2, 5.x and Centerline C++
6998
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6999
	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7000
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7001
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7002
	      $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'
7003
7004
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7005
	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7006
	    case $host_os in
7007
	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7008
	      *)
7009
		# The compiler driver will combine and reorder linker options,
7010
		# but understands `-z linker_flag'.
7011
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
7012
		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7013
	        ;;
7014
	    esac
7015
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
7016
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7017
	    output_verbose_link_cmd='func_echo_all'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7018
7019
	    # Archives containing C++ object files must be created using
7020
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7021
	    # necessary to make sure instantiated templates are included
7022
	    # in the archive.
7023
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7024
	    ;;
7025
          gcx*)
7026
	    # Green Hills C++ Compiler
7027
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7028
7029
	    # The C++ compiler must be used to create the archive.
7030
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7031
	    ;;
7032
          *)
7033
	    # GNU C++ compiler with Solaris linker
7034
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7035
	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7036
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7037
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7038
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7039
		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7040
7041
	        # Commands to make compiler produce verbose output that lists
7042
	        # what "hidden" libraries, object files and flags are used when
7043
	        # linking a shared library.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7044
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7045
	      else
7046
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
7047
	        # platform.
7048
	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7049
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7050
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7051
7052
	        # Commands to make compiler produce verbose output that lists
7053
	        # what "hidden" libraries, object files and flags are used when
7054
	        # linking a shared library.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7055
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7056
	      fi
7057
7058
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7059
	      case $host_os in
7060
		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7061
		*)
7062
		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7063
		  ;;
7064
	      esac
7065
	    fi
7066
	    ;;
7067
        esac
7068
        ;;
7069
7070
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7071
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7072
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7073
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7074
      runpath_var='LD_RUN_PATH'
7075
7076
      case $cc_basename in
7077
        CC*)
7078
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7079
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7080
	  ;;
7081
	*)
7082
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7083
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7084
	  ;;
7085
      esac
7086
      ;;
7087
7088
      sysv5* | sco3.2v5* | sco5v6*)
7089
	# Note: We can NOT use -z defs as we might desire, because we do not
7090
	# link with -lc, and that would cause any symbols used from libc to
7091
	# always be unresolved, which means just about no library would
7092
	# ever link correctly.  If we're not using GNU ld we use -z text
7093
	# though, which does catch some bad symbols but isn't as heavy-handed
7094
	# as -z defs.
7095
	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7096
	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7097
	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7098
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7099
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7100
	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7101
	_LT_TAGVAR(link_all_deplibs, $1)=yes
7102
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7103
	runpath_var='LD_RUN_PATH'
7104
7105
	case $cc_basename in
7106
          CC*)
7107
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7108
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7109
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7110
	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
7111
	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7112
	      '"$_LT_TAGVAR(reload_cmds, $1)"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7113
	    ;;
7114
	  *)
7115
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7116
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7117
	    ;;
7118
	esac
7119
      ;;
7120
7121
      tandem*)
7122
        case $cc_basename in
7123
          NCC*)
7124
	    # NonStop-UX NCC 3.20
7125
	    # FIXME: insert proper C++ library support
7126
	    _LT_TAGVAR(ld_shlibs, $1)=no
7127
	    ;;
7128
          *)
7129
	    # FIXME: insert proper C++ library support
7130
	    _LT_TAGVAR(ld_shlibs, $1)=no
7131
	    ;;
7132
        esac
7133
        ;;
7134
7135
      vxworks*)
7136
        # FIXME: insert proper C++ library support
7137
        _LT_TAGVAR(ld_shlibs, $1)=no
7138
        ;;
7139
7140
      *)
7141
        # FIXME: insert proper C++ library support
7142
        _LT_TAGVAR(ld_shlibs, $1)=no
7143
        ;;
7144
    esac
7145
7146
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7147
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7148
7149
    _LT_TAGVAR(GCC, $1)="$GXX"
7150
    _LT_TAGVAR(LD, $1)="$LD"
7151
7152
    ## CAVEAT EMPTOR:
7153
    ## There is no encapsulation within the following macros, do not change
7154
    ## the running order or otherwise move them around unless you know exactly
7155
    ## what you are doing...
7156
    _LT_SYS_HIDDEN_LIBDEPS($1)
7157
    _LT_COMPILER_PIC($1)
7158
    _LT_COMPILER_C_O($1)
7159
    _LT_COMPILER_FILE_LOCKS($1)
7160
    _LT_LINKER_SHLIBS($1)
7161
    _LT_SYS_DYNAMIC_LINKER($1)
7162
    _LT_LINKER_HARDCODE_LIBPATH($1)
7163
7164
    _LT_CONFIG($1)
7165
  fi # test -n "$compiler"
7166
7167
  CC=$lt_save_CC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7168
  CFLAGS=$lt_save_CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7169
  LDCXX=$LD
7170
  LD=$lt_save_LD
7171
  GCC=$lt_save_GCC
7172
  with_gnu_ld=$lt_save_with_gnu_ld
7173
  lt_cv_path_LDCXX=$lt_cv_path_LD
7174
  lt_cv_path_LD=$lt_save_path_LD
7175
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7176
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7177
fi # test "$_lt_caught_CXX_error" != yes
7178
7179
AC_LANG_POP
7180
])# _LT_LANG_CXX_CONFIG
7181
7182
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7183
# _LT_FUNC_STRIPNAME_CNF
7184
# ----------------------
7185
# func_stripname_cnf prefix suffix name
7186
# strip PREFIX and SUFFIX off of NAME.
7187
# PREFIX and SUFFIX must not contain globbing or regex special
7188
# characters, hashes, percent signs, but SUFFIX may contain a leading
7189
# dot (in which case that matches only a dot).
7190
#
7191
# This function is identical to the (non-XSI) version of func_stripname,
7192
# except this one can be used by m4 code that may be executed by configure,
7193
# rather than the libtool script.
7194
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7195
AC_REQUIRE([_LT_DECL_SED])
7196
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7197
func_stripname_cnf ()
7198
{
7199
  case ${2} in
7200
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7201
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7202
  esac
7203
} # func_stripname_cnf
7204
])# _LT_FUNC_STRIPNAME_CNF
7205
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7206
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1 by Daniel Holbach
Import upstream version 2.2.9
7207
# ---------------------------------
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7208
# Figure out "hidden" library dependencies from verbose
7209
# compiler output when linking a shared library.
7210
# Parse the compiler output and extract the necessary
7211
# objects, libraries and library flags.
7212
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7213
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7214
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7215
# Dependencies to place before and after the object being linked:
7216
_LT_TAGVAR(predep_objects, $1)=
7217
_LT_TAGVAR(postdep_objects, $1)=
7218
_LT_TAGVAR(predeps, $1)=
7219
_LT_TAGVAR(postdeps, $1)=
7220
_LT_TAGVAR(compiler_lib_search_path, $1)=
7221
7222
dnl we can't use the lt_simple_compile_test_code here,
7223
dnl because it contains code intended for an executable,
7224
dnl not a library.  It's possible we should let each
7225
dnl tag define a new lt_????_link_test_code variable,
7226
dnl but it's only used here...
7227
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7228
int a;
7229
void foo (void) { a = 0; }
7230
_LT_EOF
7231
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7232
class Foo
7233
{
7234
public:
7235
  Foo (void) { a = 0; }
7236
private:
7237
  int a;
7238
};
7239
_LT_EOF
7240
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7241
      subroutine foo
7242
      implicit none
7243
      integer*4 a
7244
      a=0
7245
      return
7246
      end
7247
_LT_EOF
7248
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7249
      subroutine foo
7250
      implicit none
7251
      integer a
7252
      a=0
7253
      return
7254
      end
7255
_LT_EOF
7256
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7257
public class foo {
7258
  private int a;
7259
  public void bar (void) {
7260
    a = 0;
7261
  }
7262
};
7263
_LT_EOF
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
7264
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7265
package foo
7266
func foo() {
7267
}
7268
_LT_EOF
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7269
])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7270
7271
_lt_libdeps_save_CFLAGS=$CFLAGS
7272
case "$CC $CFLAGS " in #(
7273
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7274
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
7275
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7276
esac
7277
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7278
dnl Parse the compiler output and extract the necessary
7279
dnl objects, libraries and library flags.
7280
if AC_TRY_EVAL(ac_compile); then
7281
  # Parse the compiler output and extract the necessary
7282
  # objects, libraries and library flags.
7283
7284
  # Sentinel used to keep track of whether or not we are before
7285
  # the conftest object file.
7286
  pre_test_object_deps_done=no
7287
7288
  for p in `eval "$output_verbose_link_cmd"`; do
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7289
    case ${prev}${p} in
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7290
7291
    -L* | -R* | -l*)
7292
       # Some compilers place space between "-{L,R}" and the path.
7293
       # Remove the space.
7294
       if test $p = "-L" ||
7295
          test $p = "-R"; then
7296
	 prev=$p
7297
	 continue
7298
       fi
7299
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7300
       # Expand the sysroot to ease extracting the directories later.
7301
       if test -z "$prev"; then
7302
         case $p in
7303
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7304
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7305
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7306
         esac
7307
       fi
7308
       case $p in
7309
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7310
       esac
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7311
       if test "$pre_test_object_deps_done" = no; then
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7312
	 case ${prev} in
7313
	 -L | -R)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7314
	   # Internal compiler library paths should come after those
7315
	   # provided the user.  The postdeps already come after the
7316
	   # user supplied libs so there is no need to process them.
7317
	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7318
	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7319
	   else
7320
	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7321
	   fi
7322
	   ;;
7323
	 # The "-l" case would never come before the object being
7324
	 # linked, so don't bother handling this case.
7325
	 esac
7326
       else
7327
	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7328
	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7329
	 else
7330
	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7331
	 fi
7332
       fi
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7333
       prev=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7334
       ;;
7335
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7336
    *.lto.$objext) ;; # Ignore GCC LTO objects
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7337
    *.$objext)
7338
       # This assumes that the test object file only shows up
7339
       # once in the compiler output.
7340
       if test "$p" = "conftest.$objext"; then
7341
	 pre_test_object_deps_done=yes
7342
	 continue
7343
       fi
7344
7345
       if test "$pre_test_object_deps_done" = no; then
7346
	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7347
	   _LT_TAGVAR(predep_objects, $1)="$p"
7348
	 else
7349
	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7350
	 fi
7351
       else
7352
	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7353
	   _LT_TAGVAR(postdep_objects, $1)="$p"
7354
	 else
7355
	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7356
	 fi
7357
       fi
7358
       ;;
7359
7360
    *) ;; # Ignore the rest.
7361
7362
    esac
7363
  done
7364
7365
  # Clean up.
7366
  rm -f a.out a.exe
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
7367
else
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7368
  echo "libtool.m4: error: problem compiling $1 test program"
7369
fi
7370
7371
$RM -f confest.$objext
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7372
CFLAGS=$_lt_libdeps_save_CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7373
7374
# PORTME: override above test on systems where it is broken
7375
m4_if([$1], [CXX],
7376
[case $host_os in
7377
interix[[3-9]]*)
7378
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7379
  # hack all around it, let's just trust "g++" to DTRT.
7380
  _LT_TAGVAR(predep_objects,$1)=
7381
  _LT_TAGVAR(postdep_objects,$1)=
7382
  _LT_TAGVAR(postdeps,$1)=
7383
  ;;
7384
7385
linux*)
7386
  case `$CC -V 2>&1 | sed 5q` in
7387
  *Sun\ C*)
7388
    # Sun C++ 5.9
7389
7390
    # The more standards-conforming stlport4 library is
7391
    # incompatible with the Cstd library. Avoid specifying
7392
    # it if it's in CXXFLAGS. Ignore libCrun as
7393
    # -library=stlport4 depends on it.
7394
    case " $CXX $CXXFLAGS " in
7395
    *" -library=stlport4 "*)
7396
      solaris_use_stlport4=yes
7397
      ;;
7398
    esac
7399
7400
    if test "$solaris_use_stlport4" != yes; then
7401
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7402
    fi
7403
    ;;
7404
  esac
7405
  ;;
7406
7407
solaris*)
7408
  case $cc_basename in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7409
  CC* | sunCC*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7410
    # The more standards-conforming stlport4 library is
7411
    # incompatible with the Cstd library. Avoid specifying
7412
    # it if it's in CXXFLAGS. Ignore libCrun as
7413
    # -library=stlport4 depends on it.
7414
    case " $CXX $CXXFLAGS " in
7415
    *" -library=stlport4 "*)
7416
      solaris_use_stlport4=yes
7417
      ;;
7418
    esac
7419
7420
    # Adding this requires a known-good setup of shared libraries for
7421
    # Sun compiler versions before 5.6, else PIC objects from an old
7422
    # archive will be linked into the output, leading to subtle bugs.
7423
    if test "$solaris_use_stlport4" != yes; then
7424
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7425
    fi
7426
    ;;
7427
  esac
7428
  ;;
7429
esac
7430
])
7431
7432
case " $_LT_TAGVAR(postdeps, $1) " in
7433
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7434
esac
7435
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7436
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7437
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7438
fi
7439
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7440
    [The directories searched by this compiler when creating a shared library])
7441
_LT_TAGDECL([], [predep_objects], [1],
7442
    [Dependencies to place before and after the objects being linked to
7443
    create a shared library])
7444
_LT_TAGDECL([], [postdep_objects], [1])
7445
_LT_TAGDECL([], [predeps], [1])
7446
_LT_TAGDECL([], [postdeps], [1])
7447
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7448
    [The library search path used internally by the compiler when linking
7449
    a shared library])
7450
])# _LT_SYS_HIDDEN_LIBDEPS
7451
7452
7453
# _LT_LANG_F77_CONFIG([TAG])
7454
# --------------------------
7455
# Ensure that the configuration variables for a Fortran 77 compiler are
7456
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7457
# to write the compiler configuration to `libtool'.
7458
m4_defun([_LT_LANG_F77_CONFIG],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7459
[AC_LANG_PUSH(Fortran 77)
7460
if test -z "$F77" || test "X$F77" = "Xno"; then
7461
  _lt_disable_F77=yes
7462
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7463
7464
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7465
_LT_TAGVAR(allow_undefined_flag, $1)=
7466
_LT_TAGVAR(always_export_symbols, $1)=no
7467
_LT_TAGVAR(archive_expsym_cmds, $1)=
7468
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7469
_LT_TAGVAR(hardcode_direct, $1)=no
7470
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7471
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7472
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7473
_LT_TAGVAR(hardcode_minus_L, $1)=no
7474
_LT_TAGVAR(hardcode_automatic, $1)=no
7475
_LT_TAGVAR(inherit_rpath, $1)=no
7476
_LT_TAGVAR(module_cmds, $1)=
7477
_LT_TAGVAR(module_expsym_cmds, $1)=
7478
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7479
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7480
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7481
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7482
_LT_TAGVAR(no_undefined_flag, $1)=
7483
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7484
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7485
7486
# Source file extension for f77 test sources.
7487
ac_ext=f
7488
7489
# Object file extension for compiled f77 test sources.
7490
objext=o
7491
_LT_TAGVAR(objext, $1)=$objext
7492
7493
# No sense in running all these tests if we already determined that
7494
# the F77 compiler isn't working.  Some variables (like enable_shared)
7495
# are currently assumed to apply to all compilers on this platform,
7496
# and will be corrupted by setting them based on a non-working compiler.
7497
if test "$_lt_disable_F77" != yes; then
7498
  # Code to be used in simple compile tests
7499
  lt_simple_compile_test_code="\
7500
      subroutine t
7501
      return
7502
      end
7503
"
7504
7505
  # Code to be used in simple link tests
7506
  lt_simple_link_test_code="\
7507
      program t
7508
      end
7509
"
7510
7511
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7512
  _LT_TAG_COMPILER
7513
7514
  # save warnings/boilerplate of simple test code
7515
  _LT_COMPILER_BOILERPLATE
7516
  _LT_LINKER_BOILERPLATE
7517
7518
  # Allow CC to be a program name with arguments.
7519
  lt_save_CC="$CC"
7520
  lt_save_GCC=$GCC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7521
  lt_save_CFLAGS=$CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7522
  CC=${F77-"f77"}
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7523
  CFLAGS=$FFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7524
  compiler=$CC
7525
  _LT_TAGVAR(compiler, $1)=$CC
7526
  _LT_CC_BASENAME([$compiler])
7527
  GCC=$G77
7528
  if test -n "$compiler"; then
7529
    AC_MSG_CHECKING([if libtool supports shared libraries])
7530
    AC_MSG_RESULT([$can_build_shared])
7531
7532
    AC_MSG_CHECKING([whether to build shared libraries])
7533
    test "$can_build_shared" = "no" && enable_shared=no
7534
7535
    # On AIX, shared libraries and static libraries use the same namespace, and
7536
    # are all built from PIC.
7537
    case $host_os in
7538
      aix3*)
7539
        test "$enable_shared" = yes && enable_static=no
7540
        if test -n "$RANLIB"; then
7541
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7542
          postinstall_cmds='$RANLIB $lib'
7543
        fi
7544
        ;;
7545
      aix[[4-9]]*)
7546
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7547
	  test "$enable_shared" = yes && enable_static=no
7548
	fi
7549
        ;;
7550
    esac
7551
    AC_MSG_RESULT([$enable_shared])
7552
7553
    AC_MSG_CHECKING([whether to build static libraries])
7554
    # Make sure either enable_shared or enable_static is yes.
7555
    test "$enable_shared" = yes || enable_static=yes
7556
    AC_MSG_RESULT([$enable_static])
7557
7558
    _LT_TAGVAR(GCC, $1)="$G77"
7559
    _LT_TAGVAR(LD, $1)="$LD"
7560
7561
    ## CAVEAT EMPTOR:
7562
    ## There is no encapsulation within the following macros, do not change
7563
    ## the running order or otherwise move them around unless you know exactly
7564
    ## what you are doing...
7565
    _LT_COMPILER_PIC($1)
7566
    _LT_COMPILER_C_O($1)
7567
    _LT_COMPILER_FILE_LOCKS($1)
7568
    _LT_LINKER_SHLIBS($1)
7569
    _LT_SYS_DYNAMIC_LINKER($1)
7570
    _LT_LINKER_HARDCODE_LIBPATH($1)
7571
7572
    _LT_CONFIG($1)
7573
  fi # test -n "$compiler"
7574
7575
  GCC=$lt_save_GCC
7576
  CC="$lt_save_CC"
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7577
  CFLAGS="$lt_save_CFLAGS"
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7578
fi # test "$_lt_disable_F77" != yes
7579
7580
AC_LANG_POP
7581
])# _LT_LANG_F77_CONFIG
7582
7583
7584
# _LT_LANG_FC_CONFIG([TAG])
7585
# -------------------------
7586
# Ensure that the configuration variables for a Fortran compiler are
7587
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7588
# to write the compiler configuration to `libtool'.
7589
m4_defun([_LT_LANG_FC_CONFIG],
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7590
[AC_LANG_PUSH(Fortran)
7591
7592
if test -z "$FC" || test "X$FC" = "Xno"; then
7593
  _lt_disable_FC=yes
7594
fi
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7595
7596
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7597
_LT_TAGVAR(allow_undefined_flag, $1)=
7598
_LT_TAGVAR(always_export_symbols, $1)=no
7599
_LT_TAGVAR(archive_expsym_cmds, $1)=
7600
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7601
_LT_TAGVAR(hardcode_direct, $1)=no
7602
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7603
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7604
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7605
_LT_TAGVAR(hardcode_minus_L, $1)=no
7606
_LT_TAGVAR(hardcode_automatic, $1)=no
7607
_LT_TAGVAR(inherit_rpath, $1)=no
7608
_LT_TAGVAR(module_cmds, $1)=
7609
_LT_TAGVAR(module_expsym_cmds, $1)=
7610
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7611
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7612
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7613
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7614
_LT_TAGVAR(no_undefined_flag, $1)=
7615
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7616
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7617
7618
# Source file extension for fc test sources.
7619
ac_ext=${ac_fc_srcext-f}
7620
7621
# Object file extension for compiled fc test sources.
7622
objext=o
7623
_LT_TAGVAR(objext, $1)=$objext
7624
7625
# No sense in running all these tests if we already determined that
7626
# the FC compiler isn't working.  Some variables (like enable_shared)
7627
# are currently assumed to apply to all compilers on this platform,
7628
# and will be corrupted by setting them based on a non-working compiler.
7629
if test "$_lt_disable_FC" != yes; then
7630
  # Code to be used in simple compile tests
7631
  lt_simple_compile_test_code="\
7632
      subroutine t
7633
      return
7634
      end
7635
"
7636
7637
  # Code to be used in simple link tests
7638
  lt_simple_link_test_code="\
7639
      program t
7640
      end
7641
"
7642
7643
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7644
  _LT_TAG_COMPILER
7645
7646
  # save warnings/boilerplate of simple test code
7647
  _LT_COMPILER_BOILERPLATE
7648
  _LT_LINKER_BOILERPLATE
7649
7650
  # Allow CC to be a program name with arguments.
7651
  lt_save_CC="$CC"
7652
  lt_save_GCC=$GCC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7653
  lt_save_CFLAGS=$CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7654
  CC=${FC-"f95"}
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7655
  CFLAGS=$FCFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7656
  compiler=$CC
7657
  GCC=$ac_cv_fc_compiler_gnu
7658
7659
  _LT_TAGVAR(compiler, $1)=$CC
7660
  _LT_CC_BASENAME([$compiler])
7661
7662
  if test -n "$compiler"; then
7663
    AC_MSG_CHECKING([if libtool supports shared libraries])
7664
    AC_MSG_RESULT([$can_build_shared])
7665
7666
    AC_MSG_CHECKING([whether to build shared libraries])
7667
    test "$can_build_shared" = "no" && enable_shared=no
7668
7669
    # On AIX, shared libraries and static libraries use the same namespace, and
7670
    # are all built from PIC.
7671
    case $host_os in
7672
      aix3*)
7673
        test "$enable_shared" = yes && enable_static=no
7674
        if test -n "$RANLIB"; then
7675
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7676
          postinstall_cmds='$RANLIB $lib'
7677
        fi
7678
        ;;
7679
      aix[[4-9]]*)
7680
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7681
	  test "$enable_shared" = yes && enable_static=no
7682
	fi
7683
        ;;
7684
    esac
7685
    AC_MSG_RESULT([$enable_shared])
7686
7687
    AC_MSG_CHECKING([whether to build static libraries])
7688
    # Make sure either enable_shared or enable_static is yes.
7689
    test "$enable_shared" = yes || enable_static=yes
7690
    AC_MSG_RESULT([$enable_static])
7691
7692
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7693
    _LT_TAGVAR(LD, $1)="$LD"
7694
7695
    ## CAVEAT EMPTOR:
7696
    ## There is no encapsulation within the following macros, do not change
7697
    ## the running order or otherwise move them around unless you know exactly
7698
    ## what you are doing...
7699
    _LT_SYS_HIDDEN_LIBDEPS($1)
7700
    _LT_COMPILER_PIC($1)
7701
    _LT_COMPILER_C_O($1)
7702
    _LT_COMPILER_FILE_LOCKS($1)
7703
    _LT_LINKER_SHLIBS($1)
7704
    _LT_SYS_DYNAMIC_LINKER($1)
7705
    _LT_LINKER_HARDCODE_LIBPATH($1)
7706
7707
    _LT_CONFIG($1)
7708
  fi # test -n "$compiler"
7709
7710
  GCC=$lt_save_GCC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7711
  CC=$lt_save_CC
7712
  CFLAGS=$lt_save_CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7713
fi # test "$_lt_disable_FC" != yes
7714
7715
AC_LANG_POP
7716
])# _LT_LANG_FC_CONFIG
7717
7718
7719
# _LT_LANG_GCJ_CONFIG([TAG])
7720
# --------------------------
7721
# Ensure that the configuration variables for the GNU Java Compiler compiler
7722
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7723
# to write the compiler configuration to `libtool'.
7724
m4_defun([_LT_LANG_GCJ_CONFIG],
7725
[AC_REQUIRE([LT_PROG_GCJ])dnl
7726
AC_LANG_SAVE
7727
7728
# Source file extension for Java test sources.
7729
ac_ext=java
7730
7731
# Object file extension for compiled Java test sources.
7732
objext=o
7733
_LT_TAGVAR(objext, $1)=$objext
7734
7735
# Code to be used in simple compile tests
7736
lt_simple_compile_test_code="class foo {}"
7737
7738
# Code to be used in simple link tests
7739
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7740
7741
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7742
_LT_TAG_COMPILER
7743
7744
# save warnings/boilerplate of simple test code
7745
_LT_COMPILER_BOILERPLATE
7746
_LT_LINKER_BOILERPLATE
7747
7748
# Allow CC to be a program name with arguments.
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7749
lt_save_CC=$CC
7750
lt_save_CFLAGS=$CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7751
lt_save_GCC=$GCC
7752
GCC=yes
7753
CC=${GCJ-"gcj"}
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7754
CFLAGS=$GCJFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7755
compiler=$CC
7756
_LT_TAGVAR(compiler, $1)=$CC
7757
_LT_TAGVAR(LD, $1)="$LD"
7758
_LT_CC_BASENAME([$compiler])
7759
7760
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7761
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7762
7763
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7764
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7765
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7766
7767
if test -n "$compiler"; then
7768
  _LT_COMPILER_NO_RTTI($1)
7769
  _LT_COMPILER_PIC($1)
7770
  _LT_COMPILER_C_O($1)
7771
  _LT_COMPILER_FILE_LOCKS($1)
7772
  _LT_LINKER_SHLIBS($1)
7773
  _LT_LINKER_HARDCODE_LIBPATH($1)
7774
7775
  _LT_CONFIG($1)
7776
fi
7777
7778
AC_LANG_RESTORE
7779
7780
GCC=$lt_save_GCC
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7781
CC=$lt_save_CC
7782
CFLAGS=$lt_save_CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7783
])# _LT_LANG_GCJ_CONFIG
7784
7785
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
7786
# _LT_LANG_GO_CONFIG([TAG])
7787
# --------------------------
7788
# Ensure that the configuration variables for the GNU Go compiler
7789
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7790
# to write the compiler configuration to `libtool'.
7791
m4_defun([_LT_LANG_GO_CONFIG],
7792
[AC_REQUIRE([LT_PROG_GO])dnl
7793
AC_LANG_SAVE
7794
7795
# Source file extension for Go test sources.
7796
ac_ext=go
7797
7798
# Object file extension for compiled Go test sources.
7799
objext=o
7800
_LT_TAGVAR(objext, $1)=$objext
7801
7802
# Code to be used in simple compile tests
7803
lt_simple_compile_test_code="package main; func main() { }"
7804
7805
# Code to be used in simple link tests
7806
lt_simple_link_test_code='package main; func main() { }'
7807
7808
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7809
_LT_TAG_COMPILER
7810
7811
# save warnings/boilerplate of simple test code
7812
_LT_COMPILER_BOILERPLATE
7813
_LT_LINKER_BOILERPLATE
7814
7815
# Allow CC to be a program name with arguments.
7816
lt_save_CC=$CC
7817
lt_save_CFLAGS=$CFLAGS
7818
lt_save_GCC=$GCC
7819
GCC=yes
7820
CC=${GOC-"gccgo"}
7821
CFLAGS=$GOFLAGS
7822
compiler=$CC
7823
_LT_TAGVAR(compiler, $1)=$CC
7824
_LT_TAGVAR(LD, $1)="$LD"
7825
_LT_CC_BASENAME([$compiler])
7826
7827
# Go did not exist at the time GCC didn't implicitly link libc in.
7828
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7829
7830
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7831
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7832
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7833
7834
if test -n "$compiler"; then
7835
  _LT_COMPILER_NO_RTTI($1)
7836
  _LT_COMPILER_PIC($1)
7837
  _LT_COMPILER_C_O($1)
7838
  _LT_COMPILER_FILE_LOCKS($1)
7839
  _LT_LINKER_SHLIBS($1)
7840
  _LT_LINKER_HARDCODE_LIBPATH($1)
7841
7842
  _LT_CONFIG($1)
7843
fi
7844
7845
AC_LANG_RESTORE
7846
7847
GCC=$lt_save_GCC
7848
CC=$lt_save_CC
7849
CFLAGS=$lt_save_CFLAGS
7850
])# _LT_LANG_GO_CONFIG
7851
7852
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7853
# _LT_LANG_RC_CONFIG([TAG])
7854
# -------------------------
7855
# Ensure that the configuration variables for the Windows resource compiler
7856
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7857
# to write the compiler configuration to `libtool'.
7858
m4_defun([_LT_LANG_RC_CONFIG],
7859
[AC_REQUIRE([LT_PROG_RC])dnl
7860
AC_LANG_SAVE
7861
7862
# Source file extension for RC test sources.
7863
ac_ext=rc
7864
7865
# Object file extension for compiled RC test sources.
7866
objext=o
7867
_LT_TAGVAR(objext, $1)=$objext
7868
7869
# Code to be used in simple compile tests
7870
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7871
7872
# Code to be used in simple link tests
7873
lt_simple_link_test_code="$lt_simple_compile_test_code"
7874
7875
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7876
_LT_TAG_COMPILER
7877
7878
# save warnings/boilerplate of simple test code
7879
_LT_COMPILER_BOILERPLATE
7880
_LT_LINKER_BOILERPLATE
7881
7882
# Allow CC to be a program name with arguments.
7883
lt_save_CC="$CC"
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7884
lt_save_CFLAGS=$CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7885
lt_save_GCC=$GCC
7886
GCC=
7887
CC=${RC-"windres"}
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7888
CFLAGS=
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7889
compiler=$CC
7890
_LT_TAGVAR(compiler, $1)=$CC
7891
_LT_CC_BASENAME([$compiler])
7892
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7893
7894
if test -n "$compiler"; then
7895
  :
7896
  _LT_CONFIG($1)
7897
fi
7898
7899
GCC=$lt_save_GCC
7900
AC_LANG_RESTORE
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7901
CC=$lt_save_CC
7902
CFLAGS=$lt_save_CFLAGS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7903
])# _LT_LANG_RC_CONFIG
7904
7905
7906
# LT_PROG_GCJ
7907
# -----------
7908
AC_DEFUN([LT_PROG_GCJ],
7909
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7910
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7911
    [AC_CHECK_TOOL(GCJ, gcj,)
7912
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7913
      AC_SUBST(GCJFLAGS)])])[]dnl
7914
])
7915
7916
# Old name:
7917
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7918
dnl aclocal-1.4 backwards compatibility:
7919
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7920
7921
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
7922
# LT_PROG_GO
7923
# ----------
7924
AC_DEFUN([LT_PROG_GO],
7925
[AC_CHECK_TOOL(GOC, gccgo,)
7926
])
7927
7928
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7929
# LT_PROG_RC
7930
# ----------
7931
AC_DEFUN([LT_PROG_RC],
7932
[AC_CHECK_TOOL(RC, windres,)
7933
])
7934
7935
# Old name:
7936
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7937
dnl aclocal-1.4 backwards compatibility:
7938
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7939
7940
7941
# _LT_DECL_EGREP
7942
# --------------
7943
# If we don't have a new enough Autoconf to choose the best grep
7944
# available, choose the one first in the user's PATH.
7945
m4_defun([_LT_DECL_EGREP],
7946
[AC_REQUIRE([AC_PROG_EGREP])dnl
7947
AC_REQUIRE([AC_PROG_FGREP])dnl
7948
test -z "$GREP" && GREP=grep
7949
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7950
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7951
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7952
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7953
AC_SUBST([GREP])
7954
])
7955
7956
7957
# _LT_DECL_OBJDUMP
7958
# --------------
7959
# If we don't have a new enough Autoconf to choose the best objdump
7960
# available, choose the one first in the user's PATH.
7961
m4_defun([_LT_DECL_OBJDUMP],
7962
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7963
test -z "$OBJDUMP" && OBJDUMP=objdump
7964
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7965
AC_SUBST([OBJDUMP])
7966
])
7967
0.3.5 by Ari Pollak
Import upstream version 2.6.12
7968
# _LT_DECL_DLLTOOL
7969
# ----------------
7970
# Ensure DLLTOOL variable is set.
7971
m4_defun([_LT_DECL_DLLTOOL],
7972
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7973
test -z "$DLLTOOL" && DLLTOOL=dlltool
7974
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7975
AC_SUBST([DLLTOOL])
7976
])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7977
7978
# _LT_DECL_SED
7979
# ------------
7980
# Check for a fully-functional sed program, that truncates
7981
# as few characters as possible.  Prefer GNU sed if found.
7982
m4_defun([_LT_DECL_SED],
7983
[AC_PROG_SED
7984
test -z "$SED" && SED=sed
7985
Xsed="$SED -e 1s/^X//"
7986
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7987
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7988
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7989
])# _LT_DECL_SED
7990
7991
m4_ifndef([AC_PROG_SED], [
1 by Daniel Holbach
Import upstream version 2.2.9
7992
# NOTE: This macro has been submitted for inclusion into   #
7993
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7994
#  a released version of Autoconf we should remove this    #
7995
#  macro and use it instead.                               #
0.2.2 by Ari Pollak
Import upstream version 2.6.7
7996
7997
m4_defun([AC_PROG_SED],
1 by Daniel Holbach
Import upstream version 2.2.9
7998
[AC_MSG_CHECKING([for a sed that does not truncate output])
7999
AC_CACHE_VAL(lt_cv_path_SED,
8000
[# Loop through the user's path and test for sed and gsed.
8001
# Then use that list of sed's as ones to test for truncation.
8002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003
for as_dir in $PATH
8004
do
8005
  IFS=$as_save_IFS
8006
  test -z "$as_dir" && as_dir=.
8007
  for lt_ac_prog in sed gsed; do
8008
    for ac_exec_ext in '' $ac_executable_extensions; do
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8009
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
1 by Daniel Holbach
Import upstream version 2.2.9
8010
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8011
      fi
8012
    done
8013
  done
8014
done
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
8015
IFS=$as_save_IFS
1 by Daniel Holbach
Import upstream version 2.2.9
8016
lt_ac_max=0
8017
lt_ac_count=0
8018
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8019
# along with /bin/sed that truncates output.
8020
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8021
  test ! -f $lt_ac_sed && continue
8022
  cat /dev/null > conftest.in
8023
  lt_ac_count=0
8024
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8025
  # Check for GNU sed and select it if it is found.
8026
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8027
    lt_cv_path_SED=$lt_ac_sed
8028
    break
8029
  fi
8030
  while true; do
8031
    cat conftest.in conftest.in >conftest.tmp
8032
    mv conftest.tmp conftest.in
8033
    cp conftest.in conftest.nl
8034
    echo >>conftest.nl
8035
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8036
    cmp -s conftest.out conftest.nl || break
8037
    # 10000 chars as input seems more than enough
8038
    test $lt_ac_count -gt 10 && break
8039
    lt_ac_count=`expr $lt_ac_count + 1`
8040
    if test $lt_ac_count -gt $lt_ac_max; then
8041
      lt_ac_max=$lt_ac_count
8042
      lt_cv_path_SED=$lt_ac_sed
8043
    fi
8044
  done
8045
done
8046
])
8047
SED=$lt_cv_path_SED
1.1.6 by Steve Kowalik
Import upstream version 2.4.0~rc2
8048
AC_SUBST([SED])
1 by Daniel Holbach
Import upstream version 2.2.9
8049
AC_MSG_RESULT([$SED])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8050
])#AC_PROG_SED
8051
])#m4_ifndef
8052
8053
# Old name:
8054
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8055
dnl aclocal-1.4 backwards compatibility:
8056
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8057
8058
8059
# _LT_CHECK_SHELL_FEATURES
8060
# ------------------------
8061
# Find out whether the shell is Bourne or XSI compatible,
8062
# or has some other useful features.
8063
m4_defun([_LT_CHECK_SHELL_FEATURES],
8064
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8065
# Try some XSI features
8066
xsi_shell=no
8067
( _lt_dummy="a/b/c"
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8068
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8069
      = c,a/b,b/c, \
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8070
    && eval 'test $(( 1 + 1 )) -eq 2 \
8071
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8072
  && xsi_shell=yes
8073
AC_MSG_RESULT([$xsi_shell])
8074
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8075
8076
AC_MSG_CHECKING([whether the shell understands "+="])
8077
lt_shell_append=no
8078
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8079
    >/dev/null 2>&1 \
8080
  && lt_shell_append=yes
8081
AC_MSG_RESULT([$lt_shell_append])
8082
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8083
8084
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8085
  lt_unset=unset
8086
else
8087
  lt_unset=false
8088
fi
8089
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8090
8091
# test EBCDIC or ASCII
8092
case `echo X|tr X '\101'` in
8093
 A) # ASCII based system
8094
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8095
  lt_SP2NL='tr \040 \012'
8096
  lt_NL2SP='tr \015\012 \040\040'
8097
  ;;
8098
 *) # EBCDIC based system
8099
  lt_SP2NL='tr \100 \n'
8100
  lt_NL2SP='tr \r\n \100\100'
8101
  ;;
8102
esac
8103
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8104
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8105
])# _LT_CHECK_SHELL_FEATURES
8106
8107
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8108
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8109
# ------------------------------------------------------
8110
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8111
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8112
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8113
[dnl {
8114
sed -e '/^$1 ()$/,/^} # $1 /c\
8115
$1 ()\
8116
{\
8117
m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
8118
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8119
  && mv -f "$cfgfile.tmp" "$cfgfile" \
8120
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8121
test 0 -eq $? || _lt_function_replace_fail=:
8122
])
8123
8124
8125
# _LT_PROG_REPLACE_SHELLFNS
8126
# -------------------------
8127
# Replace existing portable implementations of several shell functions with
8128
# equivalent extended shell implementations where those features are available..
8129
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8130
[if test x"$xsi_shell" = xyes; then
8131
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8132
    case ${1} in
8133
      */*) func_dirname_result="${1%/*}${2}" ;;
8134
      *  ) func_dirname_result="${3}" ;;
8135
    esac])
8136
8137
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8138
    func_basename_result="${1##*/}"])
8139
8140
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8141
    case ${1} in
8142
      */*) func_dirname_result="${1%/*}${2}" ;;
8143
      *  ) func_dirname_result="${3}" ;;
8144
    esac
8145
    func_basename_result="${1##*/}"])
8146
8147
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8148
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8149
    # positional parameters, so assign one to ordinary parameter first.
8150
    func_stripname_result=${3}
8151
    func_stripname_result=${func_stripname_result#"${1}"}
8152
    func_stripname_result=${func_stripname_result%"${2}"}])
8153
8154
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8155
    func_split_long_opt_name=${1%%=*}
8156
    func_split_long_opt_arg=${1#*=}])
8157
8158
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8159
    func_split_short_opt_arg=${1#??}
8160
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8161
8162
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8163
    case ${1} in
8164
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8165
      *)    func_lo2o_result=${1} ;;
8166
    esac])
8167
8168
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
8169
8170
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
8171
8172
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
8173
fi
8174
8175
if test x"$lt_shell_append" = xyes; then
8176
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
8177
8178
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8179
    func_quote_for_eval "${2}"
8180
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8181
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8182
8183
  # Save a `func_append' function call where possible by direct use of '+='
8184
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8185
    && mv -f "$cfgfile.tmp" "$cfgfile" \
8186
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8187
  test 0 -eq $? || _lt_function_replace_fail=:
8188
else
8189
  # Save a `func_append' function call even when '+=' is not available
8190
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8191
    && mv -f "$cfgfile.tmp" "$cfgfile" \
8192
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8193
  test 0 -eq $? || _lt_function_replace_fail=:
8194
fi
8195
8196
if test x"$_lt_function_replace_fail" = x":"; then
8197
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8198
fi
8199
])
8200
8201
# _LT_PATH_CONVERSION_FUNCTIONS
8202
# -----------------------------
8203
# Determine which file name conversion functions should be used by
8204
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
8205
# for certain cross-compile configurations and native mingw.
8206
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8207
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8208
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8209
AC_MSG_CHECKING([how to convert $build file names to $host format])
8210
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8211
[case $host in
8212
  *-*-mingw* )
8213
    case $build in
8214
      *-*-mingw* ) # actually msys
8215
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8216
        ;;
8217
      *-*-cygwin* )
8218
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8219
        ;;
8220
      * ) # otherwise, assume *nix
8221
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8222
        ;;
8223
    esac
8224
    ;;
8225
  *-*-cygwin* )
8226
    case $build in
8227
      *-*-mingw* ) # actually msys
8228
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8229
        ;;
8230
      *-*-cygwin* )
8231
        lt_cv_to_host_file_cmd=func_convert_file_noop
8232
        ;;
8233
      * ) # otherwise, assume *nix
8234
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8235
        ;;
8236
    esac
8237
    ;;
8238
  * ) # unhandled hosts (and "normal" native builds)
8239
    lt_cv_to_host_file_cmd=func_convert_file_noop
8240
    ;;
8241
esac
8242
])
8243
to_host_file_cmd=$lt_cv_to_host_file_cmd
8244
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8245
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8246
         [0], [convert $build file names to $host format])dnl
8247
8248
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8249
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8250
[#assume ordinary cross tools, or native build.
8251
lt_cv_to_tool_file_cmd=func_convert_file_noop
8252
case $host in
8253
  *-*-mingw* )
8254
    case $build in
8255
      *-*-mingw* ) # actually msys
8256
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8257
        ;;
8258
    esac
8259
    ;;
8260
esac
8261
])
8262
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8263
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8264
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8265
         [0], [convert $build files to toolchain format])dnl
8266
])# _LT_PATH_CONVERSION_FUNCTIONS
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8267
8268
# Helper functions for option handling.                    -*- Autoconf -*-
8269
#
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8270
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8271
#   Inc.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8272
#   Written by Gary V. Vaughan, 2004
8273
#
8274
# This file is free software; the Free Software Foundation gives
8275
# unlimited permission to copy and/or distribute it, with or without
8276
# modifications, as long as this notice is preserved.
8277
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8278
# serial 7 ltoptions.m4
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8279
8280
# This is to help aclocal find these macros, as it can't see m4_define.
8281
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8282
8283
8284
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8285
# ------------------------------------------
8286
m4_define([_LT_MANGLE_OPTION],
8287
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8288
8289
8290
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8291
# ---------------------------------------
8292
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8293
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8294
# saved as a flag.
8295
m4_define([_LT_SET_OPTION],
8296
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8297
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8298
        _LT_MANGLE_DEFUN([$1], [$2]),
8299
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8300
])
8301
8302
8303
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8304
# ------------------------------------------------------------
8305
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8306
m4_define([_LT_IF_OPTION],
8307
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8308
8309
8310
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8311
# -------------------------------------------------------
8312
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8313
# are set.
8314
m4_define([_LT_UNLESS_OPTIONS],
8315
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8316
	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8317
		      [m4_define([$0_found])])])[]dnl
8318
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8319
])[]dnl
8320
])
8321
8322
8323
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8324
# ----------------------------------------
8325
# OPTION-LIST is a space-separated list of Libtool options associated
8326
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8327
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8328
# the unknown option and exit.
8329
m4_defun([_LT_SET_OPTIONS],
8330
[# Set options
8331
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8332
    [_LT_SET_OPTION([$1], _LT_Option)])
8333
8334
m4_if([$1],[LT_INIT],[
8335
  dnl
8336
  dnl Simply set some default values (i.e off) if boolean options were not
8337
  dnl specified:
8338
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8339
  ])
8340
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8341
  ])
8342
  dnl
8343
  dnl If no reference was made to various pairs of opposing options, then
8344
  dnl we run the default mode handler for the pair.  For example, if neither
8345
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8346
  dnl archives by default:
8347
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8348
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8349
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8350
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8351
  		   [_LT_ENABLE_FAST_INSTALL])
8352
  ])
8353
])# _LT_SET_OPTIONS
8354
8355
8356
8357
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8358
# -----------------------------------------
8359
m4_define([_LT_MANGLE_DEFUN],
8360
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8361
8362
8363
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8364
# -----------------------------------------------
8365
m4_define([LT_OPTION_DEFINE],
8366
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8367
])# LT_OPTION_DEFINE
8368
8369
8370
# dlopen
8371
# ------
8372
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8373
])
8374
8375
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8376
[_LT_SET_OPTION([LT_INIT], [dlopen])
8377
AC_DIAGNOSE([obsolete],
8378
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8379
put the `dlopen' option into LT_INIT's first parameter.])
8380
])
8381
8382
dnl aclocal-1.4 backwards compatibility:
8383
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8384
8385
8386
# win32-dll
8387
# ---------
8388
# Declare package support for building win32 dll's.
8389
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8390
[enable_win32_dll=yes
8391
8392
case $host in
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8393
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8394
  AC_CHECK_TOOL(AS, as, false)
8395
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8396
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8397
  ;;
8398
esac
8399
8400
test -z "$AS" && AS=as
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8401
_LT_DECL([], [AS],      [1], [Assembler program])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8402
8403
test -z "$DLLTOOL" && DLLTOOL=dlltool
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8404
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8405
8406
test -z "$OBJDUMP" && OBJDUMP=objdump
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8407
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8408
])# win32-dll
8409
8410
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8411
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8412
_LT_SET_OPTION([LT_INIT], [win32-dll])
8413
AC_DIAGNOSE([obsolete],
8414
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8415
put the `win32-dll' option into LT_INIT's first parameter.])
8416
])
8417
8418
dnl aclocal-1.4 backwards compatibility:
8419
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8420
8421
8422
# _LT_ENABLE_SHARED([DEFAULT])
8423
# ----------------------------
8424
# implement the --enable-shared flag, and supports the `shared' and
8425
# `disable-shared' LT_INIT options.
8426
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8427
m4_define([_LT_ENABLE_SHARED],
8428
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8429
AC_ARG_ENABLE([shared],
8430
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8431
	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8432
    [p=${PACKAGE-default}
8433
    case $enableval in
8434
    yes) enable_shared=yes ;;
8435
    no) enable_shared=no ;;
8436
    *)
8437
      enable_shared=no
8438
      # Look at the argument we got.  We use all the common list separators.
8439
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8440
      for pkg in $enableval; do
8441
	IFS="$lt_save_ifs"
8442
	if test "X$pkg" = "X$p"; then
8443
	  enable_shared=yes
8444
	fi
8445
      done
8446
      IFS="$lt_save_ifs"
8447
      ;;
8448
    esac],
8449
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8450
8451
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8452
	[Whether or not to build shared libraries])
8453
])# _LT_ENABLE_SHARED
8454
8455
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8456
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8457
8458
# Old names:
8459
AC_DEFUN([AC_ENABLE_SHARED],
8460
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8461
])
8462
8463
AC_DEFUN([AC_DISABLE_SHARED],
8464
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8465
])
8466
8467
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8468
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8469
8470
dnl aclocal-1.4 backwards compatibility:
8471
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8472
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8473
8474
8475
8476
# _LT_ENABLE_STATIC([DEFAULT])
8477
# ----------------------------
8478
# implement the --enable-static flag, and support the `static' and
8479
# `disable-static' LT_INIT options.
8480
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8481
m4_define([_LT_ENABLE_STATIC],
8482
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8483
AC_ARG_ENABLE([static],
8484
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8485
	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8486
    [p=${PACKAGE-default}
8487
    case $enableval in
8488
    yes) enable_static=yes ;;
8489
    no) enable_static=no ;;
8490
    *)
8491
     enable_static=no
8492
      # Look at the argument we got.  We use all the common list separators.
8493
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8494
      for pkg in $enableval; do
8495
	IFS="$lt_save_ifs"
8496
	if test "X$pkg" = "X$p"; then
8497
	  enable_static=yes
8498
	fi
8499
      done
8500
      IFS="$lt_save_ifs"
8501
      ;;
8502
    esac],
8503
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8504
8505
    _LT_DECL([build_old_libs], [enable_static], [0],
8506
	[Whether or not to build static libraries])
8507
])# _LT_ENABLE_STATIC
8508
8509
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8510
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8511
8512
# Old names:
8513
AC_DEFUN([AC_ENABLE_STATIC],
8514
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8515
])
8516
8517
AC_DEFUN([AC_DISABLE_STATIC],
8518
[_LT_SET_OPTION([LT_INIT], [disable-static])
8519
])
8520
8521
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8522
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8523
8524
dnl aclocal-1.4 backwards compatibility:
8525
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8526
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8527
8528
8529
8530
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8531
# ----------------------------------
8532
# implement the --enable-fast-install flag, and support the `fast-install'
8533
# and `disable-fast-install' LT_INIT options.
8534
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8535
m4_define([_LT_ENABLE_FAST_INSTALL],
8536
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8537
AC_ARG_ENABLE([fast-install],
8538
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8539
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8540
    [p=${PACKAGE-default}
8541
    case $enableval in
8542
    yes) enable_fast_install=yes ;;
8543
    no) enable_fast_install=no ;;
8544
    *)
8545
      enable_fast_install=no
8546
      # Look at the argument we got.  We use all the common list separators.
8547
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8548
      for pkg in $enableval; do
8549
	IFS="$lt_save_ifs"
8550
	if test "X$pkg" = "X$p"; then
8551
	  enable_fast_install=yes
8552
	fi
8553
      done
8554
      IFS="$lt_save_ifs"
8555
      ;;
8556
    esac],
8557
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8558
8559
_LT_DECL([fast_install], [enable_fast_install], [0],
8560
	 [Whether or not to optimize for fast installation])dnl
8561
])# _LT_ENABLE_FAST_INSTALL
8562
8563
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8564
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8565
8566
# Old names:
8567
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8568
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8569
AC_DIAGNOSE([obsolete],
8570
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8571
the `fast-install' option into LT_INIT's first parameter.])
8572
])
8573
8574
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8575
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8576
AC_DIAGNOSE([obsolete],
8577
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8578
the `disable-fast-install' option into LT_INIT's first parameter.])
8579
])
8580
8581
dnl aclocal-1.4 backwards compatibility:
8582
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8583
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8584
8585
8586
# _LT_WITH_PIC([MODE])
8587
# --------------------
8588
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8589
# LT_INIT options.
8590
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8591
m4_define([_LT_WITH_PIC],
8592
[AC_ARG_WITH([pic],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8593
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8594
	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8595
    [lt_p=${PACKAGE-default}
8596
    case $withval in
8597
    yes|no) pic_mode=$withval ;;
8598
    *)
8599
      pic_mode=default
8600
      # Look at the argument we got.  We use all the common list separators.
8601
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8602
      for lt_pkg in $withval; do
8603
	IFS="$lt_save_ifs"
8604
	if test "X$lt_pkg" = "X$lt_p"; then
8605
	  pic_mode=yes
8606
	fi
8607
      done
8608
      IFS="$lt_save_ifs"
8609
      ;;
8610
    esac],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8611
    [pic_mode=default])
8612
8613
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8614
8615
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8616
])# _LT_WITH_PIC
8617
8618
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8619
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8620
8621
# Old name:
8622
AU_DEFUN([AC_LIBTOOL_PICMODE],
8623
[_LT_SET_OPTION([LT_INIT], [pic-only])
8624
AC_DIAGNOSE([obsolete],
8625
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8626
put the `pic-only' option into LT_INIT's first parameter.])
8627
])
8628
8629
dnl aclocal-1.4 backwards compatibility:
8630
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8631
8632
8633
m4_define([_LTDL_MODE], [])
8634
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8635
		 [m4_define([_LTDL_MODE], [nonrecursive])])
8636
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8637
		 [m4_define([_LTDL_MODE], [recursive])])
8638
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8639
		 [m4_define([_LTDL_MODE], [subproject])])
8640
8641
m4_define([_LTDL_TYPE], [])
8642
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8643
		 [m4_define([_LTDL_TYPE], [installable])])
8644
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8645
		 [m4_define([_LTDL_TYPE], [convenience])])
8646
8647
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8648
#
8649
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8650
# Written by Gary V. Vaughan, 2004
8651
#
8652
# This file is free software; the Free Software Foundation gives
8653
# unlimited permission to copy and/or distribute it, with or without
8654
# modifications, as long as this notice is preserved.
8655
8656
# serial 6 ltsugar.m4
8657
8658
# This is to help aclocal find these macros, as it can't see m4_define.
8659
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8660
8661
8662
# lt_join(SEP, ARG1, [ARG2...])
8663
# -----------------------------
8664
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8665
# associated separator.
8666
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8667
# versions in m4sugar had bugs.
8668
m4_define([lt_join],
8669
[m4_if([$#], [1], [],
8670
       [$#], [2], [[$2]],
8671
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8672
m4_define([_lt_join],
8673
[m4_if([$#$2], [2], [],
8674
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8675
8676
8677
# lt_car(LIST)
8678
# lt_cdr(LIST)
8679
# ------------
8680
# Manipulate m4 lists.
8681
# These macros are necessary as long as will still need to support
8682
# Autoconf-2.59 which quotes differently.
8683
m4_define([lt_car], [[$1]])
8684
m4_define([lt_cdr],
8685
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8686
       [$#], 1, [],
8687
       [m4_dquote(m4_shift($@))])])
8688
m4_define([lt_unquote], $1)
8689
8690
8691
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8692
# ------------------------------------------
8693
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8694
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8695
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8696
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8697
# than defined and empty).
8698
#
8699
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8700
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8701
m4_define([lt_append],
8702
[m4_define([$1],
8703
	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8704
8705
8706
8707
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8708
# ----------------------------------------------------------
8709
# Produce a SEP delimited list of all paired combinations of elements of
8710
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8711
# has the form PREFIXmINFIXSUFFIXn.
8712
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8713
m4_define([lt_combine],
8714
[m4_if(m4_eval([$# > 3]), [1],
8715
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8716
[[m4_foreach([_Lt_prefix], [$2],
8717
	     [m4_foreach([_Lt_suffix],
8718
		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8719
	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8720
8721
8722
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8723
# -----------------------------------------------------------------------
8724
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8725
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8726
m4_define([lt_if_append_uniq],
8727
[m4_ifdef([$1],
8728
	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8729
		 [lt_append([$1], [$2], [$3])$4],
8730
		 [$5])],
8731
	  [lt_append([$1], [$2], [$3])$4])])
8732
8733
8734
# lt_dict_add(DICT, KEY, VALUE)
8735
# -----------------------------
8736
m4_define([lt_dict_add],
8737
[m4_define([$1($2)], [$3])])
8738
8739
8740
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8741
# --------------------------------------------
8742
m4_define([lt_dict_add_subkey],
8743
[m4_define([$1($2:$3)], [$4])])
8744
8745
8746
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8747
# ----------------------------------
8748
m4_define([lt_dict_fetch],
8749
[m4_ifval([$3],
8750
	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8751
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8752
8753
8754
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8755
# -----------------------------------------------------------------
8756
m4_define([lt_if_dict_fetch],
8757
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8758
	[$5],
8759
    [$6])])
8760
8761
8762
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8763
# --------------------------------------------------------------
8764
m4_define([lt_dict_filter],
8765
[m4_if([$5], [], [],
8766
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8767
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8768
		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8769
])
8770
8771
# ltversion.m4 -- version numbers			-*- Autoconf -*-
8772
#
8773
#   Copyright (C) 2004 Free Software Foundation, Inc.
8774
#   Written by Scott James Remnant, 2004
8775
#
8776
# This file is free software; the Free Software Foundation gives
8777
# unlimited permission to copy and/or distribute it, with or without
8778
# modifications, as long as this notice is preserved.
8779
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8780
# @configure_input@
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8781
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8782
# serial 3337 ltversion.m4
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8783
# This file is part of GNU Libtool
8784
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8785
m4_define([LT_PACKAGE_VERSION], [2.4.2])
8786
m4_define([LT_PACKAGE_REVISION], [1.3337])
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8787
8788
AC_DEFUN([LTVERSION_VERSION],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8789
[macro_version='2.4.2'
8790
macro_revision='1.3337'
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8791
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8792
_LT_DECL(, macro_revision, 0)
8793
])
8794
8795
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8796
#
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8797
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8798
#   Written by Scott James Remnant, 2004.
8799
#
8800
# This file is free software; the Free Software Foundation gives
8801
# unlimited permission to copy and/or distribute it, with or without
8802
# modifications, as long as this notice is preserved.
8803
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8804
# serial 5 lt~obsolete.m4
0.2.2 by Ari Pollak
Import upstream version 2.6.7
8805
8806
# These exist entirely to fool aclocal when bootstrapping libtool.
8807
#
8808
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8809
# which have later been changed to m4_define as they aren't part of the
8810
# exported API, or moved to Autoconf or Automake where they belong.
8811
#
8812
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8813
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8814
# using a macro with the same name in our local m4/libtool.m4 it'll
8815
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8816
# and doesn't know about Autoconf macros at all.)
8817
#
8818
# So we provide this file, which has a silly filename so it's always
8819
# included after everything else.  This provides aclocal with the
8820
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8821
# because those macros already exist, or will be overwritten later.
8822
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8823
#
8824
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8825
# Yes, that means every name once taken will need to remain here until
8826
# we give up compatibility with versions before 1.7, at which point
8827
# we need to keep only those names which we still refer to.
8828
8829
# This is to help aclocal find these macros, as it can't see m4_define.
8830
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8831
8832
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8833
m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
8834
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8835
m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
8836
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8837
m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
8838
m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
8839
m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8840
m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
8841
m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
8842
m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
8843
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8844
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8845
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8846
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8847
m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8848
m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
8849
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8850
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8851
m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
8852
m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
8853
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8854
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8855
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8856
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8857
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8858
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8859
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8860
m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
8861
m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
8862
m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
8863
m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8864
m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8865
m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
8866
m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
8867
m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8868
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8869
m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
8870
m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8871
m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
8872
m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
8873
m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
8874
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8875
m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8876
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8877
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8878
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8879
m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8880
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8881
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8882
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8883
m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8884
m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
8885
m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
0.3.5 by Ari Pollak
Import upstream version 2.6.12
8886
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8887
m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8888
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8889
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8890
m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
8891
m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
8892
m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
1 by Daniel Holbach
Import upstream version 2.2.9
8893
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8894
# nls.m4 serial 5 (gettext-0.18)
8895
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
8896
dnl Inc.
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
8897
dnl This file is free software; the Free Software Foundation
8898
dnl gives unlimited permission to copy and/or distribute it,
8899
dnl with or without modifications, as long as this notice is preserved.
8900
dnl
8901
dnl This file can can be used in projects which are not available under
8902
dnl the GNU General Public License or the GNU Library General Public
8903
dnl License but which still want to provide support for the GNU gettext
8904
dnl functionality.
8905
dnl Please note that the actual code of the GNU gettext library is covered
8906
dnl by the GNU Library General Public License, and the rest of the GNU
8907
dnl gettext package package is covered by the GNU General Public License.
8908
dnl They are *not* in the public domain.
8909
8910
dnl Authors:
8911
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8912
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8913
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8914
AC_PREREQ([2.50])
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
8915
8916
AC_DEFUN([AM_NLS],
8917
[
8918
  AC_MSG_CHECKING([whether NLS is requested])
8919
  dnl Default is enabled NLS
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8920
  AC_ARG_ENABLE([nls],
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
8921
    [  --disable-nls           do not use Native Language Support],
8922
    USE_NLS=$enableval, USE_NLS=yes)
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8923
  AC_MSG_RESULT([$USE_NLS])
8924
  AC_SUBST([USE_NLS])
1.1.17 by Pedro Fragoso
Import upstream version 2.6.3
8925
])
8926
1 by Daniel Holbach
Import upstream version 2.2.9
8927
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8928
# serial 1 (pkg-config-0.24)
1 by Daniel Holbach
Import upstream version 2.2.9
8929
# 
8930
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8931
#
8932
# This program is free software; you can redistribute it and/or modify
8933
# it under the terms of the GNU General Public License as published by
8934
# the Free Software Foundation; either version 2 of the License, or
8935
# (at your option) any later version.
8936
#
8937
# This program is distributed in the hope that it will be useful, but
8938
# WITHOUT ANY WARRANTY; without even the implied warranty of
8939
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8940
# General Public License for more details.
8941
#
8942
# You should have received a copy of the GNU General Public License
8943
# along with this program; if not, write to the Free Software
8944
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8945
#
8946
# As a special exception to the GNU General Public License, if you
8947
# distribute this file as part of a program that contains a
8948
# configuration script generated by Autoconf, you may include it under
8949
# the same distribution terms that you use for the rest of that program.
8950
8951
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8952
# ----------------------------------
8953
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8954
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
8955
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
8956
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8957
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8958
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8959
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8960
1 by Daniel Holbach
Import upstream version 2.2.9
8961
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8962
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8963
fi
8964
if test -n "$PKG_CONFIG"; then
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
8965
	_pkg_min_version=m4_default([$1], [0.9.0])
1 by Daniel Holbach
Import upstream version 2.2.9
8966
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8967
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8968
		AC_MSG_RESULT([yes])
8969
	else
8970
		AC_MSG_RESULT([no])
8971
		PKG_CONFIG=""
8972
	fi
8973
fi[]dnl
8974
])# PKG_PROG_PKG_CONFIG
8975
8976
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8977
#
8978
# Check to see whether a particular set of modules exists.  Similar
8979
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8980
#
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8981
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8982
# only at the first occurence in configure.ac, so if the first place
8983
# it's called might be skipped (such as if it is within an "if", you
8984
# have to call PKG_CHECK_EXISTS manually
1 by Daniel Holbach
Import upstream version 2.2.9
8985
# --------------------------------------------------------------
8986
AC_DEFUN([PKG_CHECK_EXISTS],
8987
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8988
if test -n "$PKG_CONFIG" && \
8989
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8990
  m4_default([$2], [:])
1 by Daniel Holbach
Import upstream version 2.2.9
8991
m4_ifvaln([$3], [else
8992
  $3])dnl
8993
fi])
8994
8995
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8996
# ---------------------------------------------
8997
m4_define([_PKG_CONFIG],
0.3.3 by Ari Pollak
Import upstream version 2.6.10
8998
[if test -n "$$1"; then
8999
    pkg_cv_[]$1="$$1"
9000
 elif test -n "$PKG_CONFIG"; then
9001
    PKG_CHECK_EXISTS([$3],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9002
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
9003
		      test "x$?" != "x0" && pkg_failed=yes ],
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9004
		     [pkg_failed=yes])
9005
 else
9006
    pkg_failed=untried
1 by Daniel Holbach
Import upstream version 2.2.9
9007
fi[]dnl
9008
])# _PKG_CONFIG
9009
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9010
# _PKG_SHORT_ERRORS_SUPPORTED
9011
# -----------------------------
9012
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9013
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9014
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9015
        _pkg_short_errors_supported=yes
9016
else
9017
        _pkg_short_errors_supported=no
9018
fi[]dnl
9019
])# _PKG_SHORT_ERRORS_SUPPORTED
9020
9021
1 by Daniel Holbach
Import upstream version 2.2.9
9022
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9023
# [ACTION-IF-NOT-FOUND])
9024
#
9025
#
9026
# Note that if there is a possibility the first call to
9027
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9028
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9029
#
9030
#
9031
# --------------------------------------------------------------
9032
AC_DEFUN([PKG_CHECK_MODULES],
9033
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9034
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9035
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9036
9037
pkg_failed=no
9038
AC_MSG_CHECKING([for $1])
9039
9040
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9041
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9042
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9043
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9044
and $1[]_LIBS to avoid the need to call pkg-config.
9045
See the pkg-config man page for more details.])
9046
1 by Daniel Holbach
Import upstream version 2.2.9
9047
if test $pkg_failed = yes; then
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9048
   	AC_MSG_RESULT([no])
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9049
        _PKG_SHORT_ERRORS_SUPPORTED
9050
        if test $_pkg_short_errors_supported = yes; then
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9051
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9052
        else 
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9053
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9054
        fi
1 by Daniel Holbach
Import upstream version 2.2.9
9055
	# Put the nasty error message in config.log where it belongs
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9056
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1 by Daniel Holbach
Import upstream version 2.2.9
9057
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9058
	m4_default([$4], [AC_MSG_ERROR(
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9059
[Package requirements ($2) were not met:
9060
9061
$$1_PKG_ERRORS
9062
1 by Daniel Holbach
Import upstream version 2.2.9
9063
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9064
installed software in a non-standard prefix.
9065
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9066
_PKG_TEXT])[]dnl
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9067
        ])
1 by Daniel Holbach
Import upstream version 2.2.9
9068
elif test $pkg_failed = untried; then
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9069
     	AC_MSG_RESULT([no])
9070
	m4_default([$4], [AC_MSG_FAILURE(
1 by Daniel Holbach
Import upstream version 2.2.9
9071
[The pkg-config script could not be found or is too old.  Make sure it
9072
is in your PATH or set the PKG_CONFIG environment variable to the full
9073
path to pkg-config.
9074
1.1.1 by Daniel Holbach
Import upstream version 2.2.10
9075
_PKG_TEXT
1 by Daniel Holbach
Import upstream version 2.2.9
9076
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9077
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9078
        ])
1 by Daniel Holbach
Import upstream version 2.2.9
9079
else
9080
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9081
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9082
        AC_MSG_RESULT([yes])
0.3.3 by Ari Pollak
Import upstream version 2.6.10
9083
	$3
1 by Daniel Holbach
Import upstream version 2.2.9
9084
fi[]dnl
9085
])# PKG_CHECK_MODULES
9086
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9087
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
9088
# Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9089
#
9090
# This file is free software; the Free Software Foundation
9091
# gives unlimited permission to copy and/or distribute it,
9092
# with or without modifications, as long as this notice is preserved.
9093
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9094
# serial 1
9095
1 by Daniel Holbach
Import upstream version 2.2.9
9096
# AM_AUTOMAKE_VERSION(VERSION)
9097
# ----------------------------
9098
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9099
# generated from the m4 files accompanying Automake X.Y.
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9100
# (This private macro should not be called outside this file.)
9101
AC_DEFUN([AM_AUTOMAKE_VERSION],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9102
[am__api_version='1.11'
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9103
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9104
dnl require some minimum version.  Point them to the right macro.
0.3.7 by Ari Pollak
Import upstream version 2.8.2
9105
m4_if([$1], [1.11.6], [],
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9106
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9107
])
9108
9109
# _AM_AUTOCONF_VERSION(VERSION)
9110
# -----------------------------
9111
# aclocal traces this macro to find the Autoconf version.
9112
# This is a private macro too.  Using m4_define simplifies
9113
# the logic in aclocal, which can simply ignore this definition.
9114
m4_define([_AM_AUTOCONF_VERSION], [])
1 by Daniel Holbach
Import upstream version 2.2.9
9115
9116
# AM_SET_CURRENT_AUTOMAKE_VERSION
9117
# -------------------------------
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9118
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9119
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
1 by Daniel Holbach
Import upstream version 2.2.9
9120
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
0.3.7 by Ari Pollak
Import upstream version 2.8.2
9121
[AM_AUTOMAKE_VERSION([1.11.6])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9122
m4_ifndef([AC_AUTOCONF_VERSION],
9123
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9124
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
1 by Daniel Holbach
Import upstream version 2.2.9
9125
9126
# Figure out how to run the assembler.                      -*- Autoconf -*-
9127
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9128
# Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9129
#
9130
# This file is free software; the Free Software Foundation
9131
# gives unlimited permission to copy and/or distribute it,
9132
# with or without modifications, as long as this notice is preserved.
9133
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9134
# serial 5
1 by Daniel Holbach
Import upstream version 2.2.9
9135
9136
# AM_PROG_AS
9137
# ----------
9138
AC_DEFUN([AM_PROG_AS],
9139
[# By default we simply use the C compiler to build assembly code.
9140
AC_REQUIRE([AC_PROG_CC])
9141
test "${CCAS+set}" = set || CCAS=$CC
9142
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
9143
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
9144
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9145
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9146
])
9147
9148
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9149
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9150
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9151
#
9152
# This file is free software; the Free Software Foundation
9153
# gives unlimited permission to copy and/or distribute it,
9154
# with or without modifications, as long as this notice is preserved.
9155
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9156
# serial 1
9157
1 by Daniel Holbach
Import upstream version 2.2.9
9158
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9159
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9160
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9161
#
9162
# Of course, Automake must honor this variable whenever it calls a
9163
# tool from the auxiliary directory.  The problem is that $srcdir (and
9164
# therefore $ac_aux_dir as well) can be either absolute or relative,
9165
# depending on how configure is run.  This is pretty annoying, since
9166
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9167
# source directory, any form will work fine, but in subdirectories a
9168
# relative path needs to be adjusted first.
9169
#
9170
# $ac_aux_dir/missing
9171
#    fails when called from a subdirectory if $ac_aux_dir is relative
9172
# $top_srcdir/$ac_aux_dir/missing
9173
#    fails if $ac_aux_dir is absolute,
9174
#    fails when called from a subdirectory in a VPATH build with
9175
#          a relative $ac_aux_dir
9176
#
9177
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9178
# are both prefixed by $srcdir.  In an in-source build this is usually
9179
# harmless because $srcdir is `.', but things will broke when you
9180
# start a VPATH build or use an absolute $srcdir.
9181
#
9182
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9183
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9184
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9185
# and then we would define $MISSING as
9186
#   MISSING="\${SHELL} $am_aux_dir/missing"
9187
# This will work as long as MISSING is not called from configure, because
9188
# unfortunately $(top_srcdir) has no meaning in configure.
9189
# However there are other variables, like CC, which are often used in
9190
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9191
#
9192
# Another solution, used here, is to always expand $ac_aux_dir to an
9193
# absolute PATH.  The drawback is that using absolute paths prevent a
9194
# configured tree to be moved without reconfiguration.
9195
9196
AC_DEFUN([AM_AUX_DIR_EXPAND],
9197
[dnl Rely on autoconf to set up CDPATH properly.
9198
AC_PREREQ([2.50])dnl
9199
# expand $ac_aux_dir to an absolute path
9200
am_aux_dir=`cd $ac_aux_dir && pwd`
9201
])
9202
9203
# AM_CONDITIONAL                                            -*- Autoconf -*-
9204
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9205
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1 by Daniel Holbach
Import upstream version 2.2.9
9206
# Free Software Foundation, Inc.
9207
#
9208
# This file is free software; the Free Software Foundation
9209
# gives unlimited permission to copy and/or distribute it,
9210
# with or without modifications, as long as this notice is preserved.
9211
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9212
# serial 9
1 by Daniel Holbach
Import upstream version 2.2.9
9213
9214
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9215
# -------------------------------------
9216
# Define a conditional.
9217
AC_DEFUN([AM_CONDITIONAL],
9218
[AC_PREREQ(2.52)dnl
9219
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9220
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9221
AC_SUBST([$1_TRUE])dnl
9222
AC_SUBST([$1_FALSE])dnl
9223
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9224
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9225
m4_define([_AM_COND_VALUE_$1], [$2])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9226
if $2; then
9227
  $1_TRUE=
9228
  $1_FALSE='#'
9229
else
9230
  $1_TRUE='#'
9231
  $1_FALSE=
9232
fi
9233
AC_CONFIG_COMMANDS_PRE(
9234
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9235
  AC_MSG_ERROR([[conditional "$1" was never defined.
9236
Usually this means the macro was only invoked conditionally.]])
9237
fi])])
9238
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9239
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
9240
# 2010, 2011 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9241
#
9242
# This file is free software; the Free Software Foundation
9243
# gives unlimited permission to copy and/or distribute it,
9244
# with or without modifications, as long as this notice is preserved.
9245
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9246
# serial 12
1 by Daniel Holbach
Import upstream version 2.2.9
9247
9248
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9249
# written in clear, in which case automake, when reading aclocal.m4,
9250
# will think it sees a *use*, and therefore will trigger all it's
9251
# C support machinery.  Also note that it means that autoscan, seeing
9252
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9253
9254
9255
# _AM_DEPENDENCIES(NAME)
9256
# ----------------------
9257
# See how the compiler implements dependency checking.
9258
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9259
# We try a few techniques and use that to set a single cache variable.
9260
#
9261
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9262
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9263
# dependency, and given that the user is not expected to run this macro,
9264
# just rely on AC_PROG_CC.
9265
AC_DEFUN([_AM_DEPENDENCIES],
9266
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9267
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9268
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9269
AC_REQUIRE([AM_DEP_TRACK])dnl
9270
9271
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9272
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9273
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9274
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1 by Daniel Holbach
Import upstream version 2.2.9
9275
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9276
                   [depcc="$$1"   am_compiler_list=])
9277
9278
AC_CACHE_CHECK([dependency style of $depcc],
9279
               [am_cv_$1_dependencies_compiler_type],
9280
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9281
  # We make a subdir and do the tests there.  Otherwise we can end up
9282
  # making bogus files that we don't know about and never remove.  For
9283
  # instance it was reported that on HP-UX the gcc test will end up
9284
  # making a dummy file named `D' -- because `-MD' means `put the output
9285
  # in D'.
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9286
  rm -rf conftest.dir
1 by Daniel Holbach
Import upstream version 2.2.9
9287
  mkdir conftest.dir
9288
  # Copy depcomp to subdir because otherwise we won't find it if we're
9289
  # using a relative directory.
9290
  cp "$am_depcomp" conftest.dir
9291
  cd conftest.dir
9292
  # We will build objects and dependencies in a subdirectory because
9293
  # it helps to detect inapplicable dependency modes.  For instance
9294
  # both Tru64's cc and ICC support -MD to output dependencies as a
9295
  # side effect of compilation, but ICC will put the dependencies in
9296
  # the current directory while Tru64 will put them in the object
9297
  # directory.
9298
  mkdir sub
9299
9300
  am_cv_$1_dependencies_compiler_type=none
9301
  if test "$am_compiler_list" = ""; then
9302
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9303
  fi
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9304
  am__universal=false
9305
  m4_case([$1], [CC],
9306
    [case " $depcc " in #(
9307
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9308
     esac],
9309
    [CXX],
9310
    [case " $depcc " in #(
9311
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9312
     esac])
9313
1 by Daniel Holbach
Import upstream version 2.2.9
9314
  for depmode in $am_compiler_list; do
9315
    # Setup a source with many dependencies, because some compilers
9316
    # like to wrap large dependency lists on column 80 (with \), and
9317
    # we should not choose a depcomp mode which is confused by this.
9318
    #
9319
    # We need to recreate these files for each test, as the compiler may
9320
    # overwrite some of them when testing with obscure command lines.
9321
    # This happens at least with the AIX C compiler.
9322
    : > sub/conftest.c
9323
    for i in 1 2 3 4 5 6; do
9324
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9325
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9326
      # Solaris 8's {/usr,}/bin/sh.
9327
      touch sub/conftst$i.h
9328
    done
9329
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9330
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9331
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9332
    # mode.  It turns out that the SunPro C++ compiler does not properly
9333
    # handle `-M -o', and we need to detect this.  Also, some Intel
9334
    # versions had trouble with output in subdirs
9335
    am__obj=sub/conftest.${OBJEXT-o}
9336
    am__minus_obj="-o $am__obj"
1 by Daniel Holbach
Import upstream version 2.2.9
9337
    case $depmode in
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9338
    gcc)
9339
      # This depmode causes a compiler race in universal mode.
9340
      test "$am__universal" = false || continue
9341
      ;;
1 by Daniel Holbach
Import upstream version 2.2.9
9342
    nosideeffect)
9343
      # after this tag, mechanisms are not by side-effect, so they'll
9344
      # only be used when explicitly requested
9345
      if test "x$enable_dependency_tracking" = xyes; then
9346
	continue
9347
      else
9348
	break
9349
      fi
9350
      ;;
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9351
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9352
      # This compiler won't grok `-c -o', but also, the minuso test has
9353
      # not run yet.  These depmodes are late enough in the game, and
9354
      # so weak that their functioning should not be impacted.
9355
      am__obj=conftest.${OBJEXT-o}
9356
      am__minus_obj=
9357
      ;;
1 by Daniel Holbach
Import upstream version 2.2.9
9358
    none) break ;;
9359
    esac
9360
    if depmode=$depmode \
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9361
       source=sub/conftest.c object=$am__obj \
1 by Daniel Holbach
Import upstream version 2.2.9
9362
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9363
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1 by Daniel Holbach
Import upstream version 2.2.9
9364
         >/dev/null 2>conftest.err &&
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9365
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Daniel Holbach
Import upstream version 2.2.9
9366
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9367
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1 by Daniel Holbach
Import upstream version 2.2.9
9368
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9369
      # icc doesn't choke on unknown options, it will just issue warnings
9370
      # or remarks (even with -Werror).  So we grep stderr for any message
9371
      # that says an option was ignored or not supported.
9372
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9373
      #   icc: Command line warning: ignoring option '-M'; no argument required
9374
      # The diagnosis changed in icc 8.0:
9375
      #   icc: Command line remark: option '-MP' not supported
9376
      if (grep 'ignoring option' conftest.err ||
9377
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9378
        am_cv_$1_dependencies_compiler_type=$depmode
9379
        break
9380
      fi
9381
    fi
9382
  done
9383
9384
  cd ..
9385
  rm -rf conftest.dir
9386
else
9387
  am_cv_$1_dependencies_compiler_type=none
9388
fi
9389
])
9390
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9391
AM_CONDITIONAL([am__fastdep$1], [
9392
  test "x$enable_dependency_tracking" != xno \
9393
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9394
])
9395
9396
9397
# AM_SET_DEPDIR
9398
# -------------
9399
# Choose a directory name for dependency files.
9400
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9401
AC_DEFUN([AM_SET_DEPDIR],
9402
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9403
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9404
])
9405
9406
9407
# AM_DEP_TRACK
9408
# ------------
9409
AC_DEFUN([AM_DEP_TRACK],
9410
[AC_ARG_ENABLE(dependency-tracking,
9411
[  --disable-dependency-tracking  speeds up one-time build
9412
  --enable-dependency-tracking   do not reject slow dependency extractors])
9413
if test "x$enable_dependency_tracking" != xno; then
9414
  am_depcomp="$ac_aux_dir/depcomp"
9415
  AMDEPBACKSLASH='\'
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9416
  am__nodep='_no'
1 by Daniel Holbach
Import upstream version 2.2.9
9417
fi
9418
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9419
AC_SUBST([AMDEPBACKSLASH])dnl
9420
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9421
AC_SUBST([am__nodep])dnl
9422
_AM_SUBST_NOTMAKE([am__nodep])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9423
])
9424
9425
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9426
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9427
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1 by Daniel Holbach
Import upstream version 2.2.9
9428
# Free Software Foundation, Inc.
9429
#
9430
# This file is free software; the Free Software Foundation
9431
# gives unlimited permission to copy and/or distribute it,
9432
# with or without modifications, as long as this notice is preserved.
9433
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9434
#serial 5
1 by Daniel Holbach
Import upstream version 2.2.9
9435
9436
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9437
# ------------------------------
9438
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9439
[{
9440
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9441
  # are listed without --file.  Let's play safe and only enable the eval
9442
  # if we detect the quoting.
9443
  case $CONFIG_FILES in
9444
  *\'*) eval set x "$CONFIG_FILES" ;;
9445
  *)   set x $CONFIG_FILES ;;
9446
  esac
9447
  shift
9448
  for mf
9449
  do
9450
    # Strip MF so we end up with the name of the file.
9451
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9452
    # Check whether this is an Automake generated Makefile or not.
9453
    # We used to match only the files named `Makefile.in', but
9454
    # some people rename them; so instead we look at the file content.
9455
    # Grep'ing the first line is not enough: some people post-process
9456
    # each Makefile.in and add a new line on top of each file to say so.
9457
    # Grep'ing the whole file is not good either: AIX grep has a line
9458
    # limit of 2048, but all sed's we know have understand at least 4000.
9459
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9460
      dirpart=`AS_DIRNAME("$mf")`
9461
    else
9462
      continue
9463
    fi
9464
    # Extract the definition of DEPDIR, am__include, and am__quote
9465
    # from the Makefile without running `make'.
9466
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9467
    test -z "$DEPDIR" && continue
9468
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9469
    test -z "am__include" && continue
9470
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9471
    # When using ansi2knr, U may be empty or an underscore; expand it
9472
    U=`sed -n 's/^U = //p' < "$mf"`
9473
    # Find all dependency output files, they are included files with
9474
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9475
    # simplest approach to changing $(DEPDIR) to its actual value in the
9476
    # expansion.
9477
    for file in `sed -n "
9478
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9479
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9480
      # Make sure the directory exists.
9481
      test -f "$dirpart/$file" && continue
9482
      fdir=`AS_DIRNAME(["$file"])`
9483
      AS_MKDIR_P([$dirpart/$fdir])
9484
      # echo "creating $dirpart/$file"
9485
      echo '# dummy' > "$dirpart/$file"
9486
    done
1 by Daniel Holbach
Import upstream version 2.2.9
9487
  done
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9488
}
1 by Daniel Holbach
Import upstream version 2.2.9
9489
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9490
9491
9492
# AM_OUTPUT_DEPENDENCY_COMMANDS
9493
# -----------------------------
9494
# This macro should only be invoked once -- use via AC_REQUIRE.
9495
#
9496
# This code is only required when automatic dependency tracking
9497
# is enabled.  FIXME.  This creates each `.P' file that we will
9498
# need in order to bootstrap the dependency handling code.
9499
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9500
[AC_CONFIG_COMMANDS([depfiles],
9501
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9502
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9503
])
9504
9505
# Do all the work for Automake.                             -*- Autoconf -*-
9506
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9507
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9508
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
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
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9514
# serial 16
1 by Daniel Holbach
Import upstream version 2.2.9
9515
9516
# This macro actually does too much.  Some checks are only needed if
9517
# your package does certain things.  But this isn't really a big deal.
9518
9519
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9520
# AM_INIT_AUTOMAKE([OPTIONS])
9521
# -----------------------------------------------
9522
# The call with PACKAGE and VERSION arguments is the old style
9523
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9524
# and VERSION should now be passed to AC_INIT and removed from
9525
# the call to AM_INIT_AUTOMAKE.
9526
# We support both call styles for the transition.  After
9527
# the next Automake release, Autoconf can make the AC_INIT
9528
# arguments mandatory, and then we can depend on a new Autoconf
9529
# release and drop the old call support.
9530
AC_DEFUN([AM_INIT_AUTOMAKE],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9531
[AC_PREREQ([2.62])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9532
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9533
dnl the ones we care about.
9534
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9535
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9536
AC_REQUIRE([AC_PROG_INSTALL])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9537
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9538
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9539
  # is not polluted with repeated "-I."
9540
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9541
  # test to see if srcdir already configured
9542
  if test -f $srcdir/config.status; then
9543
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9544
  fi
1 by Daniel Holbach
Import upstream version 2.2.9
9545
fi
9546
9547
# test whether we have cygpath
9548
if test -z "$CYGPATH_W"; then
9549
  if (cygpath --version) >/dev/null 2>/dev/null; then
9550
    CYGPATH_W='cygpath -w'
9551
  else
9552
    CYGPATH_W=echo
9553
  fi
9554
fi
9555
AC_SUBST([CYGPATH_W])
9556
9557
# Define the identity of the package.
9558
dnl Distinguish between old-style and new-style calls.
9559
m4_ifval([$2],
9560
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9561
 AC_SUBST([PACKAGE], [$1])dnl
9562
 AC_SUBST([VERSION], [$2])],
9563
[_AM_SET_OPTIONS([$1])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9564
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9565
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9566
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9567
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9568
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9569
9570
_AM_IF_OPTION([no-define],,
9571
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9572
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9573
9574
# Some tools Automake needs.
9575
AC_REQUIRE([AM_SANITY_CHECK])dnl
9576
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9577
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9578
AM_MISSING_PROG(AUTOCONF, autoconf)
9579
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9580
AM_MISSING_PROG(AUTOHEADER, autoheader)
9581
AM_MISSING_PROG(MAKEINFO, makeinfo)
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9582
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9583
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9584
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9585
# We need awk for the "check" target.  The system "awk" is bad on
9586
# some platforms.
9587
AC_REQUIRE([AC_PROG_AWK])dnl
9588
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9589
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9590
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9591
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9592
			     [_AM_PROG_TAR([v7])])])
1 by Daniel Holbach
Import upstream version 2.2.9
9593
_AM_IF_OPTION([no-dependencies],,
9594
[AC_PROVIDE_IFELSE([AC_PROG_CC],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9595
		  [_AM_DEPENDENCIES(CC)],
9596
		  [define([AC_PROG_CC],
9597
			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9598
AC_PROVIDE_IFELSE([AC_PROG_CXX],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9599
		  [_AM_DEPENDENCIES(CXX)],
9600
		  [define([AC_PROG_CXX],
9601
			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9602
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9603
		  [_AM_DEPENDENCIES(OBJC)],
9604
		  [define([AC_PROG_OBJC],
9605
			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9606
])
9607
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9608
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9609
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9610
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9611
AC_CONFIG_COMMANDS_PRE(dnl
9612
[m4_provide_if([_AM_COMPILER_EXEEXT],
9613
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9614
])
9615
9616
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9617
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9618
dnl mangled by Autoconf and run in a shell conditional statement.
9619
m4_define([_AC_COMPILER_EXEEXT],
9620
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1 by Daniel Holbach
Import upstream version 2.2.9
9621
9622
9623
# When config.status generates a header, we must update the stamp-h file.
9624
# This file resides in the same directory as the config header
9625
# that is generated.  The stamp files are numbered to have different names.
9626
9627
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9628
# loop where config.status creates the headers, so we can generate
9629
# our stamp files there.
9630
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9631
[# Compute $1's index in $config_headers.
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9632
_am_arg=$1
1 by Daniel Holbach
Import upstream version 2.2.9
9633
_am_stamp_count=1
9634
for _am_header in $config_headers :; do
9635
  case $_am_header in
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9636
    $_am_arg | $_am_arg:* )
1 by Daniel Holbach
Import upstream version 2.2.9
9637
      break ;;
9638
    * )
9639
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9640
  esac
9641
done
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9642
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1 by Daniel Holbach
Import upstream version 2.2.9
9643
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9644
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9645
# Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9646
#
9647
# This file is free software; the Free Software Foundation
9648
# gives unlimited permission to copy and/or distribute it,
9649
# with or without modifications, as long as this notice is preserved.
9650
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9651
# serial 1
9652
1 by Daniel Holbach
Import upstream version 2.2.9
9653
# AM_PROG_INSTALL_SH
9654
# ------------------
9655
# Define $install_sh.
9656
AC_DEFUN([AM_PROG_INSTALL_SH],
9657
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9658
if test x"${install_sh}" != xset; then
9659
  case $am_aux_dir in
9660
  *\ * | *\	*)
9661
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9662
  *)
9663
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9664
  esac
9665
fi
1 by Daniel Holbach
Import upstream version 2.2.9
9666
AC_SUBST(install_sh)])
9667
9668
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9669
#
9670
# This file is free software; the Free Software Foundation
9671
# gives unlimited permission to copy and/or distribute it,
9672
# with or without modifications, as long as this notice is preserved.
9673
9674
# serial 2
9675
9676
# Check whether the underlying file-system supports filenames
9677
# with a leading dot.  For instance MS-DOS doesn't.
9678
AC_DEFUN([AM_SET_LEADING_DOT],
9679
[rm -rf .tst 2>/dev/null
9680
mkdir .tst 2>/dev/null
9681
if test -d .tst; then
9682
  am__leading_dot=.
9683
else
9684
  am__leading_dot=_
9685
fi
9686
rmdir .tst 2>/dev/null
9687
AC_SUBST([am__leading_dot])])
9688
9689
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9690
# From Jim Meyering
9691
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9692
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
9693
# 2011 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9694
#
9695
# This file is free software; the Free Software Foundation
9696
# gives unlimited permission to copy and/or distribute it,
9697
# with or without modifications, as long as this notice is preserved.
9698
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9699
# serial 5
1 by Daniel Holbach
Import upstream version 2.2.9
9700
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9701
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9702
# ----------------------------------
9703
# Control maintainer-specific portions of Makefiles.
9704
# Default is to disable them, unless `enable' is passed literally.
9705
# For symmetry, `disable' may be passed as well.  Anyway, the user
9706
# can override the default with the --enable/--disable switch.
1 by Daniel Holbach
Import upstream version 2.2.9
9707
AC_DEFUN([AM_MAINTAINER_MODE],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9708
[m4_case(m4_default([$1], [disable]),
9709
       [enable], [m4_define([am_maintainer_other], [disable])],
9710
       [disable], [m4_define([am_maintainer_other], [enable])],
9711
       [m4_define([am_maintainer_other], [enable])
9712
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9713
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9714
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9715
  AC_ARG_ENABLE([maintainer-mode],
9716
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
1 by Daniel Holbach
Import upstream version 2.2.9
9717
			  (and sometimes confusing) to the casual installer],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9718
      [USE_MAINTAINER_MODE=$enableval],
9719
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1 by Daniel Holbach
Import upstream version 2.2.9
9720
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9721
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1 by Daniel Holbach
Import upstream version 2.2.9
9722
  MAINT=$MAINTAINER_MODE_TRUE
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9723
  AC_SUBST([MAINT])dnl
1 by Daniel Holbach
Import upstream version 2.2.9
9724
]
9725
)
9726
9727
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9728
9729
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
9730
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9731
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9732
#
9733
# This file is free software; the Free Software Foundation
9734
# gives unlimited permission to copy and/or distribute it,
9735
# with or without modifications, as long as this notice is preserved.
9736
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9737
# serial 4
1 by Daniel Holbach
Import upstream version 2.2.9
9738
9739
# AM_MAKE_INCLUDE()
9740
# -----------------
9741
# Check to see how make treats includes.
9742
AC_DEFUN([AM_MAKE_INCLUDE],
9743
[am_make=${MAKE-make}
9744
cat > confinc << 'END'
9745
am__doit:
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9746
	@echo this is the am__doit target
1 by Daniel Holbach
Import upstream version 2.2.9
9747
.PHONY: am__doit
9748
END
9749
# If we don't find an include directive, just comment out the code.
9750
AC_MSG_CHECKING([for style of include used by $am_make])
9751
am__include="#"
9752
am__quote=
9753
_am_result=none
9754
# First try GNU make style include.
9755
echo "include confinc" > confmf
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9756
# Ignore all kinds of additional output from `make'.
9757
case `$am_make -s -f confmf 2> /dev/null` in #(
9758
*the\ am__doit\ target*)
9759
  am__include=include
9760
  am__quote=
9761
  _am_result=GNU
9762
  ;;
9763
esac
1 by Daniel Holbach
Import upstream version 2.2.9
9764
# Now try BSD make style include.
9765
if test "$am__include" = "#"; then
9766
   echo '.include "confinc"' > confmf
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9767
   case `$am_make -s -f confmf 2> /dev/null` in #(
9768
   *the\ am__doit\ target*)
9769
     am__include=.include
9770
     am__quote="\""
9771
     _am_result=BSD
9772
     ;;
9773
   esac
1 by Daniel Holbach
Import upstream version 2.2.9
9774
fi
9775
AC_SUBST([am__include])
9776
AC_SUBST([am__quote])
9777
AC_MSG_RESULT([$_am_result])
9778
rm -f confinc confmf
9779
])
9780
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9781
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9782
# Free Software Foundation, Inc.
9783
#
9784
# This file is free software; the Free Software Foundation
9785
# gives unlimited permission to copy and/or distribute it,
9786
# with or without modifications, as long as this notice is preserved.
9787
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9788
# serial 6
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9789
9790
# AM_PROG_CC_C_O
9791
# --------------
9792
# Like AC_PROG_CC_C_O, but changed for automake.
9793
AC_DEFUN([AM_PROG_CC_C_O],
9794
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
9795
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9796
AC_REQUIRE_AUX_FILE([compile])dnl
9797
# FIXME: we rely on the cache variable name because
9798
# there is no other way.
9799
set dummy $CC
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9800
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9801
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9802
if test "$am_t" != yes; then
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9803
   # Losing compiler, so override with the script.
9804
   # FIXME: It is wrong to rewrite CC.
9805
   # But if we don't then we get into trouble of one sort or another.
9806
   # A longer-term fix would be to have automake use am__CC in this case,
9807
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9808
   CC="$am_aux_dir/compile $CC"
9809
fi
9810
dnl Make sure AC_PROG_CC is never called again, or it will override our
9811
dnl setting of CC.
9812
m4_define([AC_PROG_CC],
9813
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9814
])
9815
1 by Daniel Holbach
Import upstream version 2.2.9
9816
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9817
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9818
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1 by Daniel Holbach
Import upstream version 2.2.9
9819
# Free Software Foundation, Inc.
9820
#
9821
# This file is free software; the Free Software Foundation
9822
# gives unlimited permission to copy and/or distribute it,
9823
# with or without modifications, as long as this notice is preserved.
9824
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9825
# serial 6
1 by Daniel Holbach
Import upstream version 2.2.9
9826
9827
# AM_MISSING_PROG(NAME, PROGRAM)
9828
# ------------------------------
9829
AC_DEFUN([AM_MISSING_PROG],
9830
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9831
$1=${$1-"${am_missing_run}$2"}
9832
AC_SUBST($1)])
9833
9834
9835
# AM_MISSING_HAS_RUN
9836
# ------------------
9837
# Define MISSING if not defined so far and test if it supports --run.
9838
# If it does, set am_missing_run to use it, otherwise, to nothing.
9839
AC_DEFUN([AM_MISSING_HAS_RUN],
9840
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9841
AC_REQUIRE_AUX_FILE([missing])dnl
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9842
if test x"${MISSING+set}" != xset; then
9843
  case $am_aux_dir in
9844
  *\ * | *\	*)
9845
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9846
  *)
9847
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9848
  esac
9849
fi
1 by Daniel Holbach
Import upstream version 2.2.9
9850
# Use eval to expand $SHELL
9851
if eval "$MISSING --run true"; then
9852
  am_missing_run="$MISSING --run "
9853
else
9854
  am_missing_run=
9855
  AC_MSG_WARN([`missing' script is too old or missing])
9856
fi
9857
])
9858
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9859
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9860
# Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9861
#
9862
# This file is free software; the Free Software Foundation
9863
# gives unlimited permission to copy and/or distribute it,
9864
# with or without modifications, as long as this notice is preserved.
9865
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9866
# serial 1
9867
1 by Daniel Holbach
Import upstream version 2.2.9
9868
# AM_PROG_MKDIR_P
9869
# ---------------
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9870
# Check for `mkdir -p'.
1 by Daniel Holbach
Import upstream version 2.2.9
9871
AC_DEFUN([AM_PROG_MKDIR_P],
0.1.1 by Ari Pollak
Import upstream version 2.4.7
9872
[AC_PREREQ([2.60])dnl
9873
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9874
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9875
dnl while keeping a definition of mkdir_p for backward compatibility.
9876
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9877
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9878
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9879
dnl adjustment using top_builddir (which is defined more often than
9880
dnl MKDIR_P).
9881
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9882
case $mkdir_p in
9883
  [[\\/$]]* | ?:[[\\/]]*) ;;
9884
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9885
esac
9886
])
1 by Daniel Holbach
Import upstream version 2.2.9
9887
9888
# Helper functions for option handling.                     -*- Autoconf -*-
9889
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9890
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9891
# Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9892
#
9893
# This file is free software; the Free Software Foundation
9894
# gives unlimited permission to copy and/or distribute it,
9895
# with or without modifications, as long as this notice is preserved.
9896
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9897
# serial 5
1 by Daniel Holbach
Import upstream version 2.2.9
9898
9899
# _AM_MANGLE_OPTION(NAME)
9900
# -----------------------
9901
AC_DEFUN([_AM_MANGLE_OPTION],
9902
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9903
9904
# _AM_SET_OPTION(NAME)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9905
# --------------------
1 by Daniel Holbach
Import upstream version 2.2.9
9906
# Set option NAME.  Presently that only means defining a flag for this option.
9907
AC_DEFUN([_AM_SET_OPTION],
9908
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9909
9910
# _AM_SET_OPTIONS(OPTIONS)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9911
# ------------------------
1 by Daniel Holbach
Import upstream version 2.2.9
9912
# OPTIONS is a space-separated list of Automake options.
9913
AC_DEFUN([_AM_SET_OPTIONS],
0.2.2 by Ari Pollak
Import upstream version 2.6.7
9914
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1 by Daniel Holbach
Import upstream version 2.2.9
9915
9916
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9917
# -------------------------------------------
9918
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9919
AC_DEFUN([_AM_IF_OPTION],
9920
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9921
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9922
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
9923
# 2011 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
9924
#
9925
# This file is free software; the Free Software Foundation
9926
# gives unlimited permission to copy and/or distribute it,
9927
# with or without modifications, as long as this notice is preserved.
9928
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9929
# serial 2
9930
1 by Daniel Holbach
Import upstream version 2.2.9
9931
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9932
# ---------------------------------------------------------------------------
9933
# Adds support for distributing Python modules and packages.  To
9934
# install modules, copy them to $(pythondir), using the python_PYTHON
9935
# automake variable.  To install a package with the same name as the
9936
# automake package, install to $(pkgpythondir), or use the
9937
# pkgpython_PYTHON automake variable.
9938
#
9939
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
9940
# locations to install python extension modules (shared libraries).
9941
# Another macro is required to find the appropriate flags to compile
9942
# extension modules.
9943
#
9944
# If your package is configured with a different prefix to python,
9945
# users will have to add the install directory to the PYTHONPATH
9946
# environment variable, or create a .pth file (see the python
9947
# documentation for details).
9948
#
9949
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
9950
# cause an error if the version of python installed on the system
9951
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
9952
# numbers and dots only.
9953
AC_DEFUN([AM_PATH_PYTHON],
9954
 [
0.3.2 by Ari Pollak
Import upstream version 2.6.8
9955
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
9956
  dnl supported. (2.0 was released on October 16, 2000).
1 by Daniel Holbach
Import upstream version 2.2.9
9957
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
9958
[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
9959
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
9960
9961
  AC_ARG_VAR([PYTHON], [the Python interpreter])
1 by Daniel Holbach
Import upstream version 2.2.9
9962
9963
  m4_if([$1],[],[
9964
    dnl No version check is needed.
9965
    # Find any Python interpreter.
9966
    if test -z "$PYTHON"; then
9967
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
9968
    fi
9969
    am_display_PYTHON=python
9970
  ], [
9971
    dnl A version check is needed.
9972
    if test -n "$PYTHON"; then
9973
      # If the user set $PYTHON, use it and don't search something else.
9974
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
9975
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
9976
			      [AC_MSG_RESULT(yes)],
9977
			      [AC_MSG_ERROR(too old)])
9978
      am_display_PYTHON=$PYTHON
9979
    else
9980
      # Otherwise, try each interpreter until we find one that satisfies
9981
      # VERSION.
9982
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
9983
	[am_cv_pathless_PYTHON],[
9984
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
9985
	  test "$am_cv_pathless_PYTHON" = none && break
9986
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
9987
	done])
9988
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
9989
      if test "$am_cv_pathless_PYTHON" = none; then
9990
	PYTHON=:
9991
      else
9992
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
9993
      fi
9994
      am_display_PYTHON=$am_cv_pathless_PYTHON
9995
    fi
9996
  ])
9997
9998
  if test "$PYTHON" = :; then
9999
  dnl Run any user-specified action, or abort.
10000
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
10001
  else
10002
10003
  dnl Query Python for its version number.  Getting [:3] seems to be
10004
  dnl the best way to do this; it's what "site.py" does in the standard
10005
  dnl library.
10006
10007
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10008
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
1 by Daniel Holbach
Import upstream version 2.2.9
10009
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
10010
10011
  dnl Use the values of $prefix and $exec_prefix for the corresponding
10012
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
10013
  dnl distinct variables so they can be overridden if need be.  However,
10014
  dnl general consensus is that you shouldn't need this ability.
10015
10016
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
10017
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
10018
10019
  dnl At times (like when building shared libraries) you may want
10020
  dnl to know which OS platform Python thinks this is.
10021
10022
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10023
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1 by Daniel Holbach
Import upstream version 2.2.9
10024
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
10025
10026
10027
  dnl Set up 4 directories:
10028
10029
  dnl pythondir -- where to install python scripts.  This is the
10030
  dnl   site-packages directory, not the python standard library
10031
  dnl   directory like in previous automake betas.  This behavior
10032
  dnl   is more consistent with lispdir.m4 for example.
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10033
  dnl Query distutils for this directory.
1 by Daniel Holbach
Import upstream version 2.2.9
10034
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
10035
    [am_cv_python_pythondir],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10036
    [if test "x$prefix" = xNONE
10037
     then
10038
       am_py_prefix=$ac_default_prefix
10039
     else
10040
       am_py_prefix=$prefix
10041
     fi
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10042
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10043
     case $am_cv_python_pythondir in
10044
     $am_py_prefix*)
10045
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10046
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
10047
       ;;
0.3.3 by Ari Pollak
Import upstream version 2.6.10
10048
     *)
10049
       case $am_py_prefix in
10050
         /usr|/System*) ;;
10051
         *)
10052
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
10053
	  ;;
10054
       esac
10055
       ;;
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10056
     esac
10057
    ])
1 by Daniel Holbach
Import upstream version 2.2.9
10058
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
10059
10060
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
10061
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
10062
  dnl   more consistent with the rest of automake.
10063
10064
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
10065
10066
  dnl pyexecdir -- directory for installing python extension modules
10067
  dnl   (shared libraries)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10068
  dnl Query distutils for this directory.
1 by Daniel Holbach
Import upstream version 2.2.9
10069
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
10070
    [am_cv_python_pyexecdir],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10071
    [if test "x$exec_prefix" = xNONE
10072
     then
10073
       am_py_exec_prefix=$am_py_prefix
10074
     else
10075
       am_py_exec_prefix=$exec_prefix
10076
     fi
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10077
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10078
     case $am_cv_python_pyexecdir in
10079
     $am_py_exec_prefix*)
10080
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10081
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
10082
       ;;
0.3.3 by Ari Pollak
Import upstream version 2.6.10
10083
     *)
10084
       case $am_py_exec_prefix in
10085
         /usr|/System*) ;;
10086
         *)
10087
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
10088
	   ;;
10089
       esac
10090
       ;;
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10091
     esac
10092
    ])
1 by Daniel Holbach
Import upstream version 2.2.9
10093
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
10094
10095
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
10096
10097
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
10098
10099
  dnl Run any user-specified action.
10100
  $2
10101
  fi
10102
10103
])
10104
10105
10106
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
10107
# ---------------------------------------------------------------------------
10108
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
10109
# Run ACTION-IF-FALSE otherwise.
10110
# This test uses sys.hexversion instead of the string equivalent (first
10111
# word of sys.version), in order to cope with versions such as 2.2c1.
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10112
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1 by Daniel Holbach
Import upstream version 2.2.9
10113
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10114
 [prog="import sys
1 by Daniel Holbach
Import upstream version 2.2.9
10115
# split strings by '.' and convert to numeric.  Append some zeros
10116
# because we need at least 4 digits for the hex conversion.
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10117
# map returns an iterator in Python 3.0 and a list in 2.x
10118
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1 by Daniel Holbach
Import upstream version 2.2.9
10119
minverhex = 0
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10120
# xrange is not present in Python 3.0 and range returns an iterator
10121
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1 by Daniel Holbach
Import upstream version 2.2.9
10122
sys.exit(sys.hexversion < minverhex)"
10123
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
10124
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10125
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
10126
#
10127
# This file is free software; the Free Software Foundation
10128
# gives unlimited permission to copy and/or distribute it,
10129
# with or without modifications, as long as this notice is preserved.
10130
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10131
# serial 1
10132
1 by Daniel Holbach
Import upstream version 2.2.9
10133
# AM_RUN_LOG(COMMAND)
10134
# -------------------
10135
# Run COMMAND, save the exit status in ac_status, and log it.
10136
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10137
AC_DEFUN([AM_RUN_LOG],
10138
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10139
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10140
   ac_status=$?
10141
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10142
   (exit $ac_status); }])
10143
10144
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
10145
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10146
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1 by Daniel Holbach
Import upstream version 2.2.9
10147
# Free Software Foundation, Inc.
10148
#
10149
# This file is free software; the Free Software Foundation
10150
# gives unlimited permission to copy and/or distribute it,
10151
# with or without modifications, as long as this notice is preserved.
10152
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10153
# serial 5
1 by Daniel Holbach
Import upstream version 2.2.9
10154
10155
# AM_SANITY_CHECK
10156
# ---------------
10157
AC_DEFUN([AM_SANITY_CHECK],
10158
[AC_MSG_CHECKING([whether build environment is sane])
10159
# Just in case
10160
sleep 1
10161
echo timestamp > conftest.file
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10162
# Reject unsafe characters in $srcdir or the absolute working directory
10163
# name.  Accept space and tab only in the latter.
10164
am_lf='
10165
'
10166
case `pwd` in
10167
  *[[\\\"\#\$\&\'\`$am_lf]]*)
10168
    AC_MSG_ERROR([unsafe absolute working directory name]);;
10169
esac
10170
case $srcdir in
10171
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
10172
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10173
esac
10174
1 by Daniel Holbach
Import upstream version 2.2.9
10175
# Do `set' in a subshell so we don't clobber the current shell's
10176
# arguments.  Must try -L first in case configure is actually a
10177
# symlink; some systems play weird games with the mod time of symlinks
10178
# (eg FreeBSD returns the mod time of the symlink's containing
10179
# directory).
10180
if (
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10181
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Daniel Holbach
Import upstream version 2.2.9
10182
   if test "$[*]" = "X"; then
10183
      # -L didn't work.
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10184
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Daniel Holbach
Import upstream version 2.2.9
10185
   fi
10186
   rm -f conftest.file
10187
   if test "$[*]" != "X $srcdir/configure conftest.file" \
10188
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
10189
10190
      # If neither matched, then we have a broken ls.  This can happen
10191
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10192
      # broken ls alias from the environment.  This has actually
10193
      # happened.  Such a system could not be considered "sane".
10194
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10195
alias in your environment])
10196
   fi
10197
10198
   test "$[2]" = conftest.file
10199
   )
10200
then
10201
   # Ok.
10202
   :
10203
else
10204
   AC_MSG_ERROR([newly created file is older than distributed files!
10205
Check your system clock])
10206
fi
10207
AC_MSG_RESULT(yes)])
10208
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10209
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
10210
#
10211
# This file is free software; the Free Software Foundation
10212
# gives unlimited permission to copy and/or distribute it,
10213
# with or without modifications, as long as this notice is preserved.
10214
10215
# serial 2
10216
10217
# AM_SILENT_RULES([DEFAULT])
10218
# --------------------------
10219
# Enable less verbose build rules; with the default set to DEFAULT
10220
# (`yes' being less verbose, `no' or empty being verbose).
10221
AC_DEFUN([AM_SILENT_RULES],
10222
[AC_ARG_ENABLE([silent-rules],
10223
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
10224
  --disable-silent-rules         verbose build output (undo: `make V=0')])
10225
case $enable_silent_rules in
10226
yes) AM_DEFAULT_VERBOSITY=0;;
10227
no)  AM_DEFAULT_VERBOSITY=1;;
10228
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10229
esac
10230
dnl
10231
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
10232
dnl do not support nested variable expansions.
10233
dnl See automake bug#9928 and bug#10237.
10234
am_make=${MAKE-make}
10235
AC_CACHE_CHECK([whether $am_make supports nested variables],
10236
   [am_cv_make_support_nested_variables],
10237
   [if AS_ECHO([['TRUE=$(BAR$(V))
10238
BAR0=false
10239
BAR1=true
10240
V=1
10241
am__doit:
10242
	@$(TRUE)
10243
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10244
  am_cv_make_support_nested_variables=yes
10245
else
10246
  am_cv_make_support_nested_variables=no
10247
fi])
10248
if test $am_cv_make_support_nested_variables = yes; then
10249
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
10250
  AM_V='$(V)'
10251
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10252
else
10253
  AM_V=$AM_DEFAULT_VERBOSITY
10254
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10255
fi
10256
AC_SUBST([AM_V])dnl
10257
AM_SUBST_NOTMAKE([AM_V])dnl
10258
AC_SUBST([AM_DEFAULT_V])dnl
10259
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10260
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10261
AM_BACKSLASH='\'
10262
AC_SUBST([AM_BACKSLASH])dnl
10263
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10264
])
10265
10266
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10267
#
10268
# This file is free software; the Free Software Foundation
10269
# gives unlimited permission to copy and/or distribute it,
10270
# with or without modifications, as long as this notice is preserved.
10271
10272
# serial 1
1 by Daniel Holbach
Import upstream version 2.2.9
10273
10274
# AM_PROG_INSTALL_STRIP
10275
# ---------------------
10276
# One issue with vendor `install' (even GNU) is that you can't
10277
# specify the program used to strip binaries.  This is especially
10278
# annoying in cross-compiling environments, where the build's strip
10279
# is unlikely to handle the host's binaries.
10280
# Fortunately install-sh will honor a STRIPPROG variable, so we
10281
# always use install-sh in `make install-strip', and initialize
10282
# STRIPPROG with the value of the STRIP variable (set by the user).
10283
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10284
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10285
# Installed binaries are usually stripped using `strip' when the user
10286
# run `make install-strip'.  However `strip' might not be the right
10287
# tool to use in cross-compilation environments, therefore Automake
10288
# will honor the `STRIP' environment variable to overrule this program.
10289
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10290
if test "$cross_compiling" != no; then
10291
  AC_CHECK_TOOL([STRIP], [strip], :)
10292
fi
0.1.1 by Ari Pollak
Import upstream version 2.4.7
10293
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1 by Daniel Holbach
Import upstream version 2.2.9
10294
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10295
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10296
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
0.1.1 by Ari Pollak
Import upstream version 2.4.7
10297
#
10298
# This file is free software; the Free Software Foundation
10299
# gives unlimited permission to copy and/or distribute it,
10300
# with or without modifications, as long as this notice is preserved.
10301
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10302
# serial 3
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10303
0.1.1 by Ari Pollak
Import upstream version 2.4.7
10304
# _AM_SUBST_NOTMAKE(VARIABLE)
10305
# ---------------------------
10306
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10307
# This macro is traced by Automake.
10308
AC_DEFUN([_AM_SUBST_NOTMAKE])
10309
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10310
# AM_SUBST_NOTMAKE(VARIABLE)
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10311
# --------------------------
0.3.2 by Ari Pollak
Import upstream version 2.6.8
10312
# Public sister of _AM_SUBST_NOTMAKE.
10313
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10314
1 by Daniel Holbach
Import upstream version 2.2.9
10315
# Check how to create a tarball.                            -*- Autoconf -*-
10316
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10317
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1 by Daniel Holbach
Import upstream version 2.2.9
10318
#
10319
# This file is free software; the Free Software Foundation
10320
# gives unlimited permission to copy and/or distribute it,
10321
# with or without modifications, as long as this notice is preserved.
10322
10323
# serial 2
10324
10325
# _AM_PROG_TAR(FORMAT)
10326
# --------------------
10327
# Check how to create a tarball in format FORMAT.
10328
# FORMAT should be one of `v7', `ustar', or `pax'.
10329
#
10330
# Substitute a variable $(am__tar) that is a command
10331
# writing to stdout a FORMAT-tarball containing the directory
10332
# $tardir.
10333
#     tardir=directory && $(am__tar) > result.tar
10334
#
10335
# Substitute a variable $(am__untar) that extract such
10336
# a tarball read from stdin.
10337
#     $(am__untar) < result.tar
10338
AC_DEFUN([_AM_PROG_TAR],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10339
[# Always define AMTAR for backward compatibility.  Yes, it's still used
10340
# in the wild :-(  We should find a proper way to deprecate it ...
10341
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1 by Daniel Holbach
Import upstream version 2.2.9
10342
m4_if([$1], [v7],
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10343
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1 by Daniel Holbach
Import upstream version 2.2.9
10344
     [m4_case([$1], [ustar],, [pax],,
10345
              [m4_fatal([Unknown tar format])])
10346
AC_MSG_CHECKING([how to create a $1 tar archive])
10347
# Loop over all known methods to create a tar archive until one works.
10348
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10349
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10350
# Do not fold the above two line into one, because Tru64 sh and
10351
# Solaris sh will not grok spaces in the rhs of `-'.
10352
for _am_tool in $_am_tools
10353
do
10354
  case $_am_tool in
10355
  gnutar)
10356
    for _am_tar in tar gnutar gtar;
10357
    do
10358
      AM_RUN_LOG([$_am_tar --version]) && break
10359
    done
10360
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10361
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10362
    am__untar="$_am_tar -xf -"
10363
    ;;
10364
  plaintar)
10365
    # Must skip GNU tar: if it does not support --format= it doesn't create
10366
    # ustar tarball either.
10367
    (tar --version) >/dev/null 2>&1 && continue
10368
    am__tar='tar chf - "$$tardir"'
10369
    am__tar_='tar chf - "$tardir"'
10370
    am__untar='tar xf -'
10371
    ;;
10372
  pax)
10373
    am__tar='pax -L -x $1 -w "$$tardir"'
10374
    am__tar_='pax -L -x $1 -w "$tardir"'
10375
    am__untar='pax -r'
10376
    ;;
10377
  cpio)
10378
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10379
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10380
    am__untar='cpio -i -H $1 -d'
10381
    ;;
10382
  none)
10383
    am__tar=false
10384
    am__tar_=false
10385
    am__untar=false
10386
    ;;
10387
  esac
10388
10389
  # If the value was cached, stop now.  We just wanted to have am__tar
10390
  # and am__untar set.
10391
  test -n "${am_cv_prog_tar_$1}" && break
10392
10393
  # tar/untar a dummy directory, and stop if the command works
10394
  rm -rf conftest.dir
10395
  mkdir conftest.dir
10396
  echo GrepMe > conftest.dir/file
10397
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10398
  rm -rf conftest.dir
10399
  if test -s conftest.tar; then
10400
    AM_RUN_LOG([$am__untar <conftest.tar])
10401
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10402
  fi
10403
done
10404
rm -rf conftest.dir
10405
10406
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10407
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10408
AC_SUBST([am__tar])
10409
AC_SUBST([am__untar])
10410
]) # _AM_PROG_TAR
10411
0.3.6 by Jordi Mallach
Import upstream version 2.8.0
10412
# Configure paths for GLIB
10413
# Owen Taylor     1997-2001
10414
10415
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
10416
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
10417
dnl gthread, or gio is specified in MODULES, pass to pkg-config
10418
dnl
10419
AC_DEFUN([AM_PATH_GLIB_2_0],
10420
[dnl 
10421
dnl Get the cflags and libraries from pkg-config
10422
dnl
10423
AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
10424
		    , enable_glibtest=yes)
10425
10426
  pkg_config_args=glib-2.0
10427
  for module in . $4
10428
  do
10429
      case "$module" in
10430
         gmodule) 
10431
             pkg_config_args="$pkg_config_args gmodule-2.0"
10432
         ;;
10433
         gmodule-no-export) 
10434
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
10435
         ;;
10436
         gobject) 
10437
             pkg_config_args="$pkg_config_args gobject-2.0"
10438
         ;;
10439
         gthread) 
10440
             pkg_config_args="$pkg_config_args gthread-2.0"
10441
         ;;
10442
         gio*) 
10443
             pkg_config_args="$pkg_config_args $module-2.0"
10444
         ;;
10445
      esac
10446
  done
10447
10448
  PKG_PROG_PKG_CONFIG([0.16])
10449
10450
  no_glib=""
10451
10452
  if test "x$PKG_CONFIG" = x ; then
10453
    no_glib=yes
10454
    PKG_CONFIG=no
10455
  fi
10456
10457
  min_glib_version=ifelse([$1], ,2.0.0,$1)
10458
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
10459
10460
  if test x$PKG_CONFIG != xno ; then
10461
    ## don't try to run the test against uninstalled libtool libs
10462
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
10463
	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
10464
	  enable_glibtest=no
10465
    fi
10466
10467
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
10468
	  :
10469
    else
10470
	  no_glib=yes
10471
    fi
10472
  fi
10473
10474
  if test x"$no_glib" = x ; then
10475
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
10476
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
10477
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
10478
    GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
10479
10480
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
10481
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
10482
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
10483
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
10484
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
10485
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
10486
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
10487
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
10488
    if test "x$enable_glibtest" = "xyes" ; then
10489
      ac_save_CFLAGS="$CFLAGS"
10490
      ac_save_LIBS="$LIBS"
10491
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
10492
      LIBS="$GLIB_LIBS $LIBS"
10493
dnl
10494
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
10495
dnl checks the results of pkg-config to some extent)
10496
dnl
10497
      rm -f conf.glibtest
10498
      AC_TRY_RUN([
10499
#include <glib.h>
10500
#include <stdio.h>
10501
#include <stdlib.h>
10502
10503
int 
10504
main ()
10505
{
10506
  unsigned int major, minor, micro;
10507
  char *tmp_version;
10508
10509
  fclose (fopen ("conf.glibtest", "w"));
10510
10511
  /* HP/UX 9 (%@#!) writes to sscanf strings */
10512
  tmp_version = g_strdup("$min_glib_version");
10513
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
10514
     printf("%s, bad version string\n", "$min_glib_version");
10515
     exit(1);
10516
   }
10517
10518
  if ((glib_major_version != $glib_config_major_version) ||
10519
      (glib_minor_version != $glib_config_minor_version) ||
10520
      (glib_micro_version != $glib_config_micro_version))
10521
    {
10522
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
10523
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
10524
             glib_major_version, glib_minor_version, glib_micro_version);
10525
      printf ("*** was found! If pkg-config was correct, then it is best\n");
10526
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
10527
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10528
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10529
      printf("*** required on your system.\n");
10530
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
10531
      printf("*** to point to the correct configuration files\n");
10532
    } 
10533
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
10534
	   (glib_minor_version != GLIB_MINOR_VERSION) ||
10535
           (glib_micro_version != GLIB_MICRO_VERSION))
10536
    {
10537
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
10538
	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
10539
      printf("*** library (version %d.%d.%d)\n",
10540
	     glib_major_version, glib_minor_version, glib_micro_version);
10541
    }
10542
  else
10543
    {
10544
      if ((glib_major_version > major) ||
10545
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
10546
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
10547
      {
10548
        return 0;
10549
       }
10550
     else
10551
      {
10552
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
10553
               glib_major_version, glib_minor_version, glib_micro_version);
10554
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
10555
	       major, minor, micro);
10556
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
10557
        printf("***\n");
10558
        printf("*** If you have already installed a sufficiently new version, this error\n");
10559
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
10560
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
10561
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
10562
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
10563
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10564
        printf("*** so that the correct libraries are found at run-time))\n");
10565
      }
10566
    }
10567
  return 1;
10568
}
10569
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
10570
       CFLAGS="$ac_save_CFLAGS"
10571
       LIBS="$ac_save_LIBS"
10572
     fi
10573
  fi
10574
  if test "x$no_glib" = x ; then
10575
     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
10576
     ifelse([$2], , :, [$2])     
10577
  else
10578
     AC_MSG_RESULT(no)
10579
     if test "$PKG_CONFIG" = "no" ; then
10580
       echo "*** A new enough version of pkg-config was not found."
10581
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
10582
     else
10583
       if test -f conf.glibtest ; then
10584
        :
10585
       else
10586
          echo "*** Could not run GLIB test program, checking why..."
10587
          ac_save_CFLAGS="$CFLAGS"
10588
          ac_save_LIBS="$LIBS"
10589
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
10590
          LIBS="$LIBS $GLIB_LIBS"
10591
          AC_TRY_LINK([
10592
#include <glib.h>
10593
#include <stdio.h>
10594
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
10595
        [ echo "*** The test program compiled, but did not run. This usually means"
10596
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
10597
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
10598
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10599
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
10600
          echo "*** is required on your system"
10601
	  echo "***"
10602
          echo "*** If you have an old version installed, it is best to remove it, although"
10603
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
10604
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
10605
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
10606
          CFLAGS="$ac_save_CFLAGS"
10607
          LIBS="$ac_save_LIBS"
10608
       fi
10609
     fi
10610
     GLIB_CFLAGS=""
10611
     GLIB_LIBS=""
10612
     GLIB_GENMARSHAL=""
10613
     GOBJECT_QUERY=""
10614
     GLIB_MKENUMS=""
10615
     GLIB_COMPILE_RESOURCES=""
10616
     ifelse([$3], , :, [$3])
10617
  fi
10618
  AC_SUBST(GLIB_CFLAGS)
10619
  AC_SUBST(GLIB_LIBS)
10620
  AC_SUBST(GLIB_GENMARSHAL)
10621
  AC_SUBST(GOBJECT_QUERY)
10622
  AC_SUBST(GLIB_MKENUMS)
10623
  AC_SUBST(GLIB_COMPILE_RESOURCES)
10624
  rm -f conf.glibtest
10625
])
10626
10627
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
10628
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
10629
#
10630
# This file is free software, distributed under the terms of the GNU
10631
# General Public License.  As a special exception to the GNU General
10632
# Public License, this file may be distributed as part of a program
10633
# that contains a configuration script generated by Autoconf, under
10634
# the same distribution terms as the rest of that program.
10635
#
10636
# This file can be copied and used freely without restrictions.  It can
10637
# be used in projects which are not available under the GNU Public License
10638
# but which still want to provide support for the GNU gettext functionality.
10639
#
10640
# Macro to add for using GNU gettext.
10641
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
10642
#
10643
# Modified to never use included libintl. 
10644
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
10645
#
10646
# Major rework to remove unused code
10647
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
10648
#
10649
# Added better handling of ALL_LINGUAS from GNU gettext version 
10650
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
10651
#
10652
# Modified to require ngettext
10653
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
10654
#
10655
# We need this here as well, since someone might use autoconf-2.5x
10656
# to configure GLib then an older version to configure a package
10657
# using AM_GLIB_GNU_GETTEXT
10658
AC_PREREQ(2.53)
10659
10660
dnl
10661
dnl We go to great lengths to make sure that aclocal won't 
10662
dnl try to pull in the installed version of these macros
10663
dnl when running aclocal in the glib directory.
10664
dnl
10665
m4_copy([AC_DEFUN],[glib_DEFUN])
10666
m4_copy([AC_REQUIRE],[glib_REQUIRE])
10667
dnl
10668
dnl At the end, if we're not within glib, we'll define the public
10669
dnl definitions in terms of our private definitions.
10670
dnl
10671
10672
# GLIB_LC_MESSAGES
10673
#--------------------
10674
glib_DEFUN([GLIB_LC_MESSAGES],
10675
  [AC_CHECK_HEADERS([locale.h])
10676
    if test $ac_cv_header_locale_h = yes; then
10677
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
10678
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
10679
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
10680
    if test $am_cv_val_LC_MESSAGES = yes; then
10681
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
10682
        [Define if your <locale.h> file defines LC_MESSAGES.])
10683
    fi
10684
  fi])
10685
10686
# GLIB_PATH_PROG_WITH_TEST
10687
#----------------------------
10688
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
10689
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
10690
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
10691
[# Extract the first word of "$2", so it can be a program name with args.
10692
set dummy $2; ac_word=[$]2
10693
AC_MSG_CHECKING([for $ac_word])
10694
AC_CACHE_VAL(ac_cv_path_$1,
10695
[case "[$]$1" in
10696
  /*)
10697
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
10698
  ;;
10699
  *)
10700
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10701
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
10702
    test -z "$ac_dir" && ac_dir=.
10703
    if test -f $ac_dir/$ac_word; then
10704
      if [$3]; then
10705
	ac_cv_path_$1="$ac_dir/$ac_word"
10706
	break
10707
      fi
10708
    fi
10709
  done
10710
  IFS="$ac_save_ifs"
10711
dnl If no 4th arg is given, leave the cache variable unset,
10712
dnl so AC_PATH_PROGS will keep looking.
10713
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
10714
])dnl
10715
  ;;
10716
esac])dnl
10717
$1="$ac_cv_path_$1"
10718
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
10719
  AC_MSG_RESULT([$]$1)
10720
else
10721
  AC_MSG_RESULT(no)
10722
fi
10723
AC_SUBST($1)dnl
10724
])
10725
10726
# GLIB_WITH_NLS
10727
#-----------------
10728
glib_DEFUN([GLIB_WITH_NLS],
10729
  dnl NLS is obligatory
10730
  [USE_NLS=yes
10731
    AC_SUBST(USE_NLS)
10732
10733
    gt_cv_have_gettext=no
10734
10735
    CATOBJEXT=NONE
10736
    XGETTEXT=:
10737
    INTLLIBS=
10738
10739
    AC_CHECK_HEADER(libintl.h,
10740
     [gt_cv_func_dgettext_libintl="no"
10741
      libintl_extra_libs=""
10742
10743
      #
10744
      # First check in libc
10745
      #
10746
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
10747
        [AC_TRY_LINK([
10748
#include <libintl.h>
10749
],
10750
         [return !ngettext ("","", 1)],
10751
	  gt_cv_func_ngettext_libc=yes,
10752
          gt_cv_func_ngettext_libc=no)
10753
        ])
10754
  
10755
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10756
	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
10757
        	[AC_TRY_LINK([
10758
#include <libintl.h>
10759
],
10760
	          [return !dgettext ("","")],
10761
		  gt_cv_func_dgettext_libc=yes,
10762
	          gt_cv_func_dgettext_libc=no)
10763
        	])
10764
      fi
10765
  
10766
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10767
        AC_CHECK_FUNCS(bind_textdomain_codeset)
10768
      fi
10769
10770
      #
10771
      # If we don't have everything we want, check in libintl
10772
      #
10773
      if test "$gt_cv_func_dgettext_libc" != "yes" \
10774
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
10775
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10776
        
10777
        AC_CHECK_LIB(intl, bindtextdomain,
10778
	    [AC_CHECK_LIB(intl, ngettext,
10779
		    [AC_CHECK_LIB(intl, dgettext,
10780
			          gt_cv_func_dgettext_libintl=yes)])])
10781
10782
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10783
	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
10784
	  AC_MSG_RESULT([])
10785
  	  AC_CHECK_LIB(intl, ngettext,
10786
          	[AC_CHECK_LIB(intl, dcgettext,
10787
		       [gt_cv_func_dgettext_libintl=yes
10788
			libintl_extra_libs=-liconv],
10789
			:,-liconv)],
10790
		:,-liconv)
10791
        fi
10792
10793
        #
10794
        # If we found libintl, then check in it for bind_textdomain_codeset();
10795
        # we'll prefer libc if neither have bind_textdomain_codeset(),
10796
        # and both have dgettext and ngettext
10797
        #
10798
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10799
          glib_save_LIBS="$LIBS"
10800
          LIBS="$LIBS -lintl $libintl_extra_libs"
10801
          unset ac_cv_func_bind_textdomain_codeset
10802
          AC_CHECK_FUNCS(bind_textdomain_codeset)
10803
          LIBS="$glib_save_LIBS"
10804
10805
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10806
            gt_cv_func_dgettext_libc=no
10807
          else
10808
            if test "$gt_cv_func_dgettext_libc" = "yes" \
10809
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
10810
              gt_cv_func_dgettext_libintl=no
10811
            fi
10812
          fi
10813
        fi
10814
      fi
10815
10816
      if test "$gt_cv_func_dgettext_libc" = "yes" \
10817
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
10818
        gt_cv_have_gettext=yes
10819
      fi
10820
  
10821
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10822
        INTLLIBS="-lintl $libintl_extra_libs"
10823
      fi
10824
  
10825
      if test "$gt_cv_have_gettext" = "yes"; then
10826
	AC_DEFINE(HAVE_GETTEXT,1,
10827
	  [Define if the GNU gettext() function is already present or preinstalled.])
10828
	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
10829
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
10830
	if test "$MSGFMT" != "no"; then
10831
          glib_save_LIBS="$LIBS"
10832
          LIBS="$LIBS $INTLLIBS"
10833
	  AC_CHECK_FUNCS(dcgettext)
10834
	  MSGFMT_OPTS=
10835
	  AC_MSG_CHECKING([if msgfmt accepts -c])
10836
	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
10837
msgid ""
10838
msgstr ""
10839
"Content-Type: text/plain; charset=UTF-8\n"
10840
"Project-Id-Version: test 1.0\n"
10841
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
10842
"Last-Translator: test <foo@bar.xx>\n"
10843
"Language-Team: C <LL@li.org>\n"
10844
"MIME-Version: 1.0\n"
10845
"Content-Transfer-Encoding: 8bit\n"
10846
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
10847
	  AC_SUBST(MSGFMT_OPTS)
10848
	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10849
	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
10850
	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
10851
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
10852
			 return _nl_msg_cat_cntr],
10853
	    [CATOBJEXT=.gmo 
10854
             DATADIRNAME=share],
10855
	    [case $host in
10856
	    *-*-solaris*)
10857
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
10858
	    dnl GNU format message catalog is always supported,
10859
            dnl since both are added to the libc all together.
10860
	    dnl Hence, we'd like to go with DATADIRNAME=share and
10861
	    dnl and CATOBJEXT=.gmo in this case.
10862
            AC_CHECK_FUNC(bind_textdomain_codeset,
10863
	      [CATOBJEXT=.gmo 
10864
               DATADIRNAME=share],
10865
	      [CATOBJEXT=.mo
10866
               DATADIRNAME=lib])
10867
	    ;;
10868
	    *-*-openbsd*)
10869
	    CATOBJEXT=.mo
10870
            DATADIRNAME=share
10871
	    ;;
10872
	    *)
10873
	    CATOBJEXT=.mo
10874
            DATADIRNAME=lib
10875
	    ;;
10876
	    esac])
10877
          LIBS="$glib_save_LIBS"
10878
	  INSTOBJEXT=.mo
10879
	else
10880
	  gt_cv_have_gettext=no
10881
	fi
10882
      fi
10883
    ])
10884
10885
    if test "$gt_cv_have_gettext" = "yes" ; then
10886
      AC_DEFINE(ENABLE_NLS, 1,
10887
        [always defined to indicate that i18n is enabled])
10888
    fi
10889
10890
    dnl Test whether we really found GNU xgettext.
10891
    if test "$XGETTEXT" != ":"; then
10892
      dnl If it is not GNU xgettext we define it as : so that the
10893
      dnl Makefiles still can work.
10894
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10895
        : ;
10896
      else
10897
        AC_MSG_RESULT(
10898
	  [found xgettext program is not GNU xgettext; ignore it])
10899
        XGETTEXT=":"
10900
      fi
10901
    fi
10902
10903
    # We need to process the po/ directory.
10904
    POSUB=po
10905
10906
    AC_OUTPUT_COMMANDS(
10907
      [case "$CONFIG_FILES" in *po/Makefile.in*)
10908
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10909
      esac])
10910
10911
    dnl These rules are solely for the distribution goal.  While doing this
10912
    dnl we only have to keep exactly one list of the available catalogs
10913
    dnl in configure.ac.
10914
    for lang in $ALL_LINGUAS; do
10915
      GMOFILES="$GMOFILES $lang.gmo"
10916
      POFILES="$POFILES $lang.po"
10917
    done
10918
10919
    dnl Make all variables we use known to autoconf.
10920
    AC_SUBST(CATALOGS)
10921
    AC_SUBST(CATOBJEXT)
10922
    AC_SUBST(DATADIRNAME)
10923
    AC_SUBST(GMOFILES)
10924
    AC_SUBST(INSTOBJEXT)
10925
    AC_SUBST(INTLLIBS)
10926
    AC_SUBST(PO_IN_DATADIR_TRUE)
10927
    AC_SUBST(PO_IN_DATADIR_FALSE)
10928
    AC_SUBST(POFILES)
10929
    AC_SUBST(POSUB)
10930
  ])
10931
10932
# AM_GLIB_GNU_GETTEXT
10933
# -------------------
10934
# Do checks necessary for use of gettext. If a suitable implementation 
10935
# of gettext is found in either in libintl or in the C library,
10936
# it will set INTLLIBS to the libraries needed for use of gettext
10937
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
10938
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
10939
# on various variables needed by the Makefile.in.in installed by 
10940
# glib-gettextize.
10941
dnl
10942
glib_DEFUN([GLIB_GNU_GETTEXT],
10943
  [AC_REQUIRE([AC_PROG_CC])dnl
10944
   AC_REQUIRE([AC_HEADER_STDC])dnl
10945
   
10946
   GLIB_LC_MESSAGES
10947
   GLIB_WITH_NLS
10948
10949
   if test "$gt_cv_have_gettext" = "yes"; then
10950
     if test "x$ALL_LINGUAS" = "x"; then
10951
       LINGUAS=
10952
     else
10953
       AC_MSG_CHECKING(for catalogs to be installed)
10954
       NEW_LINGUAS=
10955
       for presentlang in $ALL_LINGUAS; do
10956
         useit=no
10957
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10958
           desiredlanguages="$LINGUAS"
10959
         else
10960
           desiredlanguages="$ALL_LINGUAS"
10961
         fi
10962
         for desiredlang in $desiredlanguages; do
10963
 	   # Use the presentlang catalog if desiredlang is
10964
           #   a. equal to presentlang, or
10965
           #   b. a variant of presentlang (because in this case,
10966
           #      presentlang can be used as a fallback for messages
10967
           #      which are not translated in the desiredlang catalog).
10968
           case "$desiredlang" in
10969
             "$presentlang"*) useit=yes;;
10970
           esac
10971
         done
10972
         if test $useit = yes; then
10973
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10974
         fi
10975
       done
10976
       LINGUAS=$NEW_LINGUAS
10977
       AC_MSG_RESULT($LINGUAS)
10978
     fi
10979
10980
     dnl Construct list of names of catalog files to be constructed.
10981
     if test -n "$LINGUAS"; then
10982
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10983
     fi
10984
   fi
10985
10986
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10987
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10988
   dnl Try to locate is.
10989
   MKINSTALLDIRS=
10990
   if test -n "$ac_aux_dir"; then
10991
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10992
   fi
10993
   if test -z "$MKINSTALLDIRS"; then
10994
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10995
   fi
10996
   AC_SUBST(MKINSTALLDIRS)
10997
10998
   dnl Generate list of files to be processed by xgettext which will
10999
   dnl be included in po/Makefile.
11000
   test -d po || mkdir po
11001
   if test "x$srcdir" != "x."; then
11002
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11003
       posrcprefix="$srcdir/"
11004
     else
11005
       posrcprefix="../$srcdir/"
11006
     fi
11007
   else
11008
     posrcprefix="../"
11009
   fi
11010
   rm -f po/POTFILES
11011
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11012
	< $srcdir/po/POTFILES.in > po/POTFILES
11013
  ])
11014
11015
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
11016
# -------------------------------
11017
# Define VARIABLE to the location where catalog files will
11018
# be installed by po/Makefile.
11019
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
11020
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
11021
glib_save_prefix="$prefix"
11022
glib_save_exec_prefix="$exec_prefix"
11023
glib_save_datarootdir="$datarootdir"
11024
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11025
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
11026
datarootdir=`eval echo "${datarootdir}"`
11027
if test "x$CATOBJEXT" = "x.mo" ; then
11028
  localedir=`eval echo "${libdir}/locale"`
11029
else
11030
  localedir=`eval echo "${datadir}/locale"`
11031
fi
11032
prefix="$glib_save_prefix"
11033
exec_prefix="$glib_save_exec_prefix"
11034
datarootdir="$glib_save_datarootdir"
11035
AC_DEFINE_UNQUOTED($1, "$localedir",
11036
  [Define the location where the catalogs will be installed])
11037
])
11038
11039
dnl
11040
dnl Now the definitions that aclocal will find
11041
dnl
11042
ifdef(glib_configure_ac,[],[
11043
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
11044
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
11045
])dnl
11046
11047
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
11048
# 
11049
# Create a temporary file with TEST-FILE as its contents and pass the
11050
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
11051
# 0 and perform ACTION-IF-FAIL for any other exit status.
11052
AC_DEFUN([GLIB_RUN_PROG],
11053
[cat >conftest.foo <<_ACEOF
11054
$2
11055
_ACEOF
11056
if AC_RUN_LOG([$1 conftest.foo]); then
11057
  m4_ifval([$3], [$3], [:])
11058
m4_ifvaln([$4], [else $4])dnl
11059
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
11060
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
11061
fi])
11062
11063
11064
# Configure paths for GTK+
11065
# Owen Taylor     1997-2001
11066
11067
dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
11068
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, 
11069
dnl pass to pkg-config
11070
dnl
11071
AC_DEFUN([AM_PATH_GTK_2_0],
11072
[dnl 
11073
dnl Get the cflags and libraries from pkg-config
11074
dnl
11075
AC_ARG_ENABLE(gtktest, [  --disable-gtktest       do not try to compile and run a test GTK+ program],
11076
		    , enable_gtktest=yes)
11077
11078
  pkg_config_args=gtk+-2.0
11079
  for module in . $4
11080
  do
11081
      case "$module" in
11082
         gthread) 
11083
             pkg_config_args="$pkg_config_args gthread-2.0"
11084
         ;;
11085
      esac
11086
  done
11087
11088
  no_gtk=""
11089
11090
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
11091
11092
  if test x$PKG_CONFIG != xno ; then
11093
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
11094
      :
11095
    else
11096
      echo "*** pkg-config too old; version 0.7 or better required."
11097
      no_gtk=yes
11098
      PKG_CONFIG=no
11099
    fi
11100
  else
11101
    no_gtk=yes
11102
  fi
11103
11104
  min_gtk_version=ifelse([$1], ,2.0.0,$1)
11105
  AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
11106
11107
  if test x$PKG_CONFIG != xno ; then
11108
    ## don't try to run the test against uninstalled libtool libs
11109
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
11110
	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11111
	  enable_gtktest=no
11112
    fi
11113
11114
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11115
	  :
11116
    else
11117
	  no_gtk=yes
11118
    fi
11119
  fi
11120
11121
  if test x"$no_gtk" = x ; then
11122
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11123
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11124
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11125
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
11126
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11127
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
11128
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11129
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
11130
    if test "x$enable_gtktest" = "xyes" ; then
11131
      ac_save_CFLAGS="$CFLAGS"
11132
      ac_save_LIBS="$LIBS"
11133
      CFLAGS="$CFLAGS $GTK_CFLAGS"
11134
      LIBS="$GTK_LIBS $LIBS"
11135
dnl
11136
dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
11137
dnl checks the results of pkg-config to some extent)
11138
dnl
11139
      rm -f conf.gtktest
11140
      AC_TRY_RUN([
11141
#include <gtk/gtk.h>
11142
#include <stdio.h>
11143
#include <stdlib.h>
11144
11145
int 
11146
main ()
11147
{
11148
  int major, minor, micro;
11149
  char *tmp_version;
11150
11151
  fclose (fopen ("conf.gtktest", "w"));
11152
11153
  /* HP/UX 9 (%@#!) writes to sscanf strings */
11154
  tmp_version = g_strdup("$min_gtk_version");
11155
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11156
     printf("%s, bad version string\n", "$min_gtk_version");
11157
     exit(1);
11158
   }
11159
11160
  if ((gtk_major_version != $gtk_config_major_version) ||
11161
      (gtk_minor_version != $gtk_config_minor_version) ||
11162
      (gtk_micro_version != $gtk_config_micro_version))
11163
    {
11164
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
11165
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11166
             gtk_major_version, gtk_minor_version, gtk_micro_version);
11167
      printf ("*** was found! If pkg-config was correct, then it is best\n");
11168
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11169
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11170
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11171
      printf("*** required on your system.\n");
11172
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11173
      printf("*** to point to the correct configuration files\n");
11174
    } 
11175
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11176
	   (gtk_minor_version != GTK_MINOR_VERSION) ||
11177
           (gtk_micro_version != GTK_MICRO_VERSION))
11178
    {
11179
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11180
	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11181
      printf("*** library (version %d.%d.%d)\n",
11182
	     gtk_major_version, gtk_minor_version, gtk_micro_version);
11183
    }
11184
  else
11185
    {
11186
      if ((gtk_major_version > major) ||
11187
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11188
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11189
      {
11190
        return 0;
11191
       }
11192
     else
11193
      {
11194
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11195
               gtk_major_version, gtk_minor_version, gtk_micro_version);
11196
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11197
	       major, minor, micro);
11198
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11199
        printf("***\n");
11200
        printf("*** If you have already installed a sufficiently new version, this error\n");
11201
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11202
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
11203
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11204
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11205
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11206
        printf("*** so that the correct libraries are found at run-time))\n");
11207
      }
11208
    }
11209
  return 1;
11210
}
11211
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
11212
       CFLAGS="$ac_save_CFLAGS"
11213
       LIBS="$ac_save_LIBS"
11214
     fi
11215
  fi
11216
  if test "x$no_gtk" = x ; then
11217
     AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
11218
     ifelse([$2], , :, [$2])     
11219
  else
11220
     AC_MSG_RESULT(no)
11221
     if test "$PKG_CONFIG" = "no" ; then
11222
       echo "*** A new enough version of pkg-config was not found."
11223
       echo "*** See http://pkgconfig.sourceforge.net"
11224
     else
11225
       if test -f conf.gtktest ; then
11226
        :
11227
       else
11228
          echo "*** Could not run GTK+ test program, checking why..."
11229
	  ac_save_CFLAGS="$CFLAGS"
11230
	  ac_save_LIBS="$LIBS"
11231
          CFLAGS="$CFLAGS $GTK_CFLAGS"
11232
          LIBS="$LIBS $GTK_LIBS"
11233
          AC_TRY_LINK([
11234
#include <gtk/gtk.h>
11235
#include <stdio.h>
11236
],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
11237
        [ echo "*** The test program compiled, but did not run. This usually means"
11238
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11239
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11240
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11241
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11242
          echo "*** is required on your system"
11243
	  echo "***"
11244
          echo "*** If you have an old version installed, it is best to remove it, although"
11245
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
11246
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
11247
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
11248
          CFLAGS="$ac_save_CFLAGS"
11249
          LIBS="$ac_save_LIBS"
11250
       fi
11251
     fi
11252
     GTK_CFLAGS=""
11253
     GTK_LIBS=""
11254
     ifelse([$3], , :, [$3])
11255
  fi
11256
  AC_SUBST(GTK_CFLAGS)
11257
  AC_SUBST(GTK_LIBS)
11258
  rm -f conf.gtktest
11259
])
11260
1 by Daniel Holbach
Import upstream version 2.2.9
11261
m4_include([acinclude.m4])