~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
1 by Brandon Hale
Import upstream version 0.2.0
2
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
1 by Brandon Hale
Import upstream version 0.2.0
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
8
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
# PARTICULAR PURPOSE.
13
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1.1.49 by Jo Shields
Import upstream version 0.15.0
16
m4_if(AC_AUTOCONF_VERSION, [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
21
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
22
dnl AM_GCONF_SOURCE_2
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl  (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl  you should install foo.schemas files
27
dnl
28
29
AC_DEFUN([AM_GCONF_SOURCE_2],
30
[
31
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
33
  else
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
  fi
36
1.1.49 by Jo Shields
Import upstream version 0.15.0
37
  AC_ARG_WITH([gconf-source],
38
	      AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
			     [Config database for installing schema files.]),
40
	      [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
41
42
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
45
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47
  fi
48
1.1.49 by Jo Shields
Import upstream version 0.15.0
49
  AC_ARG_WITH([gconf-schema-file-dir],
50
	      AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
			     [Directory for installing schema files.]),
52
	      [GCONF_SCHEMA_FILE_DIR="$withval"],)
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
53
54
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
57
  AC_ARG_ENABLE(schemas-install,
58
     [  --disable-schemas-install	Disable the schemas installation],
59
     [case ${enableval} in
60
       yes|no) ;;
61
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
62
      esac])
63
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
64
])
65
66
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
67
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
68
#
69
# This file is free software, distributed under the terms of the GNU
70
# General Public License.  As a special exception to the GNU General
71
# Public License, this file may be distributed as part of a program
72
# that contains a configuration script generated by Autoconf, under
73
# the same distribution terms as the rest of that program.
74
#
75
# This file can be copied and used freely without restrictions.  It can
76
# be used in projects which are not available under the GNU Public License
77
# but which still want to provide support for the GNU gettext functionality.
78
#
79
# Macro to add for using GNU gettext.
80
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
81
#
82
# Modified to never use included libintl. 
83
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
84
#
85
# Major rework to remove unused code
86
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
87
#
88
# Added better handling of ALL_LINGUAS from GNU gettext version 
89
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
90
#
91
# Modified to require ngettext
92
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
93
#
94
# We need this here as well, since someone might use autoconf-2.5x
95
# to configure GLib then an older version to configure a package
96
# using AM_GLIB_GNU_GETTEXT
97
AC_PREREQ(2.53)
98
99
dnl
100
dnl We go to great lengths to make sure that aclocal won't 
101
dnl try to pull in the installed version of these macros
102
dnl when running aclocal in the glib directory.
103
dnl
104
m4_copy([AC_DEFUN],[glib_DEFUN])
105
m4_copy([AC_REQUIRE],[glib_REQUIRE])
106
dnl
107
dnl At the end, if we're not within glib, we'll define the public
108
dnl definitions in terms of our private definitions.
109
dnl
110
111
# GLIB_LC_MESSAGES
112
#--------------------
113
glib_DEFUN([GLIB_LC_MESSAGES],
114
  [AC_CHECK_HEADERS([locale.h])
115
    if test $ac_cv_header_locale_h = yes; then
116
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
117
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
118
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
119
    if test $am_cv_val_LC_MESSAGES = yes; then
120
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
121
        [Define if your <locale.h> file defines LC_MESSAGES.])
122
    fi
123
  fi])
124
125
# GLIB_PATH_PROG_WITH_TEST
126
#----------------------------
127
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
128
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
129
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
130
[# Extract the first word of "$2", so it can be a program name with args.
131
set dummy $2; ac_word=[$]2
132
AC_MSG_CHECKING([for $ac_word])
133
AC_CACHE_VAL(ac_cv_path_$1,
134
[case "[$]$1" in
135
  /*)
136
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
137
  ;;
138
  *)
139
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
140
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
141
    test -z "$ac_dir" && ac_dir=.
142
    if test -f $ac_dir/$ac_word; then
143
      if [$3]; then
144
	ac_cv_path_$1="$ac_dir/$ac_word"
145
	break
146
      fi
147
    fi
148
  done
149
  IFS="$ac_save_ifs"
150
dnl If no 4th arg is given, leave the cache variable unset,
151
dnl so AC_PATH_PROGS will keep looking.
152
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
153
])dnl
154
  ;;
155
esac])dnl
156
$1="$ac_cv_path_$1"
157
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
158
  AC_MSG_RESULT([$]$1)
159
else
160
  AC_MSG_RESULT(no)
161
fi
162
AC_SUBST($1)dnl
163
])
164
165
# GLIB_WITH_NLS
166
#-----------------
167
glib_DEFUN([GLIB_WITH_NLS],
168
  dnl NLS is obligatory
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
169
  [USE_NLS=yes
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
170
    AC_SUBST(USE_NLS)
171
172
    gt_cv_have_gettext=no
173
174
    CATOBJEXT=NONE
175
    XGETTEXT=:
176
    INTLLIBS=
177
178
    AC_CHECK_HEADER(libintl.h,
179
     [gt_cv_func_dgettext_libintl="no"
180
      libintl_extra_libs=""
181
182
      #
183
      # First check in libc
184
      #
185
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
186
        [AC_TRY_LINK([
187
#include <libintl.h>
188
],
189
         [return !ngettext ("","", 1)],
190
	  gt_cv_func_ngettext_libc=yes,
191
          gt_cv_func_ngettext_libc=no)
192
        ])
193
  
194
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
195
	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
196
        	[AC_TRY_LINK([
197
#include <libintl.h>
198
],
199
	          [return !dgettext ("","")],
200
		  gt_cv_func_dgettext_libc=yes,
201
	          gt_cv_func_dgettext_libc=no)
202
        	])
203
      fi
204
  
205
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
206
        AC_CHECK_FUNCS(bind_textdomain_codeset)
207
      fi
208
209
      #
210
      # If we don't have everything we want, check in libintl
211
      #
212
      if test "$gt_cv_func_dgettext_libc" != "yes" \
213
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
214
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
215
        
216
        AC_CHECK_LIB(intl, bindtextdomain,
217
	    [AC_CHECK_LIB(intl, ngettext,
218
		    [AC_CHECK_LIB(intl, dgettext,
219
			          gt_cv_func_dgettext_libintl=yes)])])
220
221
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
222
	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
223
	  AC_MSG_RESULT([])
224
  	  AC_CHECK_LIB(intl, ngettext,
225
          	[AC_CHECK_LIB(intl, dcgettext,
226
		       [gt_cv_func_dgettext_libintl=yes
227
			libintl_extra_libs=-liconv],
228
			:,-liconv)],
229
		:,-liconv)
230
        fi
231
232
        #
233
        # If we found libintl, then check in it for bind_textdomain_codeset();
234
        # we'll prefer libc if neither have bind_textdomain_codeset(),
235
        # and both have dgettext and ngettext
236
        #
237
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
238
          glib_save_LIBS="$LIBS"
239
          LIBS="$LIBS -lintl $libintl_extra_libs"
240
          unset ac_cv_func_bind_textdomain_codeset
241
          AC_CHECK_FUNCS(bind_textdomain_codeset)
242
          LIBS="$glib_save_LIBS"
243
244
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
245
            gt_cv_func_dgettext_libc=no
246
          else
247
            if test "$gt_cv_func_dgettext_libc" = "yes" \
248
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
249
              gt_cv_func_dgettext_libintl=no
250
            fi
251
          fi
252
        fi
253
      fi
254
255
      if test "$gt_cv_func_dgettext_libc" = "yes" \
256
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
257
        gt_cv_have_gettext=yes
258
      fi
259
  
260
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
261
        INTLLIBS="-lintl $libintl_extra_libs"
262
      fi
263
  
264
      if test "$gt_cv_have_gettext" = "yes"; then
265
	AC_DEFINE(HAVE_GETTEXT,1,
266
	  [Define if the GNU gettext() function is already present or preinstalled.])
267
	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
268
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
269
	if test "$MSGFMT" != "no"; then
270
          glib_save_LIBS="$LIBS"
271
          LIBS="$LIBS $INTLLIBS"
272
	  AC_CHECK_FUNCS(dcgettext)
273
	  MSGFMT_OPTS=
274
	  AC_MSG_CHECKING([if msgfmt accepts -c])
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
275
	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
276
msgid ""
277
msgstr ""
278
"Content-Type: text/plain; charset=UTF-8\n"
279
"Project-Id-Version: test 1.0\n"
280
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
281
"Last-Translator: test <foo@bar.xx>\n"
282
"Language-Team: C <LL@li.org>\n"
283
"MIME-Version: 1.0\n"
284
"Content-Transfer-Encoding: 8bit\n"
285
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
286
	  AC_SUBST(MSGFMT_OPTS)
287
	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
288
	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
289
	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
290
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
291
			 return _nl_msg_cat_cntr],
292
	    [CATOBJEXT=.gmo 
293
             DATADIRNAME=share],
294
	    [case $host in
295
	    *-*-solaris*)
296
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
297
	    dnl GNU format message catalog is always supported,
298
            dnl since both are added to the libc all together.
299
	    dnl Hence, we'd like to go with DATADIRNAME=share and
300
	    dnl and CATOBJEXT=.gmo in this case.
301
            AC_CHECK_FUNC(bind_textdomain_codeset,
302
	      [CATOBJEXT=.gmo 
303
               DATADIRNAME=share],
304
	      [CATOBJEXT=.mo
305
               DATADIRNAME=lib])
306
	    ;;
307
	    *)
308
	    CATOBJEXT=.mo
309
            DATADIRNAME=lib
310
	    ;;
311
	    esac])
312
          LIBS="$glib_save_LIBS"
313
	  INSTOBJEXT=.mo
314
	else
315
	  gt_cv_have_gettext=no
316
	fi
317
      fi
318
    ])
319
320
    if test "$gt_cv_have_gettext" = "yes" ; then
321
      AC_DEFINE(ENABLE_NLS, 1,
322
        [always defined to indicate that i18n is enabled])
323
    fi
324
325
    dnl Test whether we really found GNU xgettext.
326
    if test "$XGETTEXT" != ":"; then
327
      dnl If it is not GNU xgettext we define it as : so that the
328
      dnl Makefiles still can work.
329
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
330
        : ;
331
      else
332
        AC_MSG_RESULT(
333
	  [found xgettext program is not GNU xgettext; ignore it])
334
        XGETTEXT=":"
335
      fi
336
    fi
337
338
    # We need to process the po/ directory.
339
    POSUB=po
340
341
    AC_OUTPUT_COMMANDS(
342
      [case "$CONFIG_FILES" in *po/Makefile.in*)
343
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
344
      esac])
345
346
    dnl These rules are solely for the distribution goal.  While doing this
347
    dnl we only have to keep exactly one list of the available catalogs
348
    dnl in configure.in.
349
    for lang in $ALL_LINGUAS; do
350
      GMOFILES="$GMOFILES $lang.gmo"
351
      POFILES="$POFILES $lang.po"
352
    done
353
354
    dnl Make all variables we use known to autoconf.
355
    AC_SUBST(CATALOGS)
356
    AC_SUBST(CATOBJEXT)
357
    AC_SUBST(DATADIRNAME)
358
    AC_SUBST(GMOFILES)
359
    AC_SUBST(INSTOBJEXT)
360
    AC_SUBST(INTLLIBS)
361
    AC_SUBST(PO_IN_DATADIR_TRUE)
362
    AC_SUBST(PO_IN_DATADIR_FALSE)
363
    AC_SUBST(POFILES)
364
    AC_SUBST(POSUB)
365
  ])
366
367
# AM_GLIB_GNU_GETTEXT
368
# -------------------
369
# Do checks necessary for use of gettext. If a suitable implementation 
370
# of gettext is found in either in libintl or in the C library,
371
# it will set INTLLIBS to the libraries needed for use of gettext
372
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
373
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
374
# on various variables needed by the Makefile.in.in installed by 
375
# glib-gettextize.
376
dnl
377
glib_DEFUN([GLIB_GNU_GETTEXT],
378
  [AC_REQUIRE([AC_PROG_CC])dnl
379
   AC_REQUIRE([AC_HEADER_STDC])dnl
380
   
381
   GLIB_LC_MESSAGES
382
   GLIB_WITH_NLS
383
384
   if test "$gt_cv_have_gettext" = "yes"; then
385
     if test "x$ALL_LINGUAS" = "x"; then
386
       LINGUAS=
387
     else
388
       AC_MSG_CHECKING(for catalogs to be installed)
389
       NEW_LINGUAS=
390
       for presentlang in $ALL_LINGUAS; do
391
         useit=no
392
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
393
           desiredlanguages="$LINGUAS"
394
         else
395
           desiredlanguages="$ALL_LINGUAS"
396
         fi
397
         for desiredlang in $desiredlanguages; do
398
 	   # Use the presentlang catalog if desiredlang is
399
           #   a. equal to presentlang, or
400
           #   b. a variant of presentlang (because in this case,
401
           #      presentlang can be used as a fallback for messages
402
           #      which are not translated in the desiredlang catalog).
403
           case "$desiredlang" in
404
             "$presentlang"*) useit=yes;;
405
           esac
406
         done
407
         if test $useit = yes; then
408
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
409
         fi
410
       done
411
       LINGUAS=$NEW_LINGUAS
412
       AC_MSG_RESULT($LINGUAS)
413
     fi
414
415
     dnl Construct list of names of catalog files to be constructed.
416
     if test -n "$LINGUAS"; then
417
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
418
     fi
419
   fi
420
421
   dnl Generate list of files to be processed by xgettext which will
422
   dnl be included in po/Makefile.
423
   test -d po || mkdir po
424
   if test "x$srcdir" != "x."; then
425
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
426
       posrcprefix="$srcdir/"
427
     else
428
       posrcprefix="../$srcdir/"
429
     fi
430
   else
431
     posrcprefix="../"
432
   fi
433
   rm -f po/POTFILES
434
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
435
	< $srcdir/po/POTFILES.in > po/POTFILES
436
  ])
437
438
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
439
# -------------------------------
440
# Define VARIABLE to the location where catalog files will
441
# be installed by po/Makefile.
442
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
443
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
444
glib_save_prefix="$prefix"
445
glib_save_exec_prefix="$exec_prefix"
446
glib_save_datarootdir="$datarootdir"
447
test "x$prefix" = xNONE && prefix=$ac_default_prefix
448
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
449
datarootdir=`eval echo "${datarootdir}"`
450
if test "x$CATOBJEXT" = "x.mo" ; then
451
  localedir=`eval echo "${libdir}/locale"`
452
else
453
  localedir=`eval echo "${datadir}/locale"`
454
fi
455
prefix="$glib_save_prefix"
456
exec_prefix="$glib_save_exec_prefix"
457
datarootdir="$glib_save_datarootdir"
458
AC_DEFINE_UNQUOTED($1, "$localedir",
459
  [Define the location where the catalogs will be installed])
460
])
461
462
dnl
463
dnl Now the definitions that aclocal will find
464
dnl
465
ifdef(glib_configure_in,[],[
466
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
467
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
468
])dnl
469
470
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
471
# 
472
# Create a temporary file with TEST-FILE as its contents and pass the
473
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
474
# 0 and perform ACTION-IF-FAIL for any other exit status.
475
AC_DEFUN([GLIB_RUN_PROG],
476
[cat >conftest.foo <<_ACEOF
477
$2
478
_ACEOF
479
if AC_RUN_LOG([$1 conftest.foo]); then
480
  m4_ifval([$3], [$3], [:])
481
m4_ifvaln([$4], [else $4])dnl
482
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
483
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
484
fi])
485
486
487
# gnome-common.m4
488
# 
489
490
dnl GNOME_COMMON_INIT
491
492
AC_DEFUN([GNOME_COMMON_INIT],
493
[
494
  dnl this macro should come after AC_CONFIG_MACRO_DIR
495
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
496
497
  dnl ensure that when the Automake generated makefile calls aclocal,
498
  dnl it honours the $ACLOCAL_FLAGS environment variable
499
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
500
  if test -n "$ac_macro_dir"; then
501
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
502
  fi
503
504
  AC_SUBST([ACLOCAL_AMFLAGS])
505
])
506
507
AC_DEFUN([GNOME_DEBUG_CHECK],
508
[
509
	AC_ARG_ENABLE([debug],
510
                      AC_HELP_STRING([--enable-debug],
511
                                     [turn on debugging]),,
512
                      [enable_debug=no])
513
514
	if test x$enable_debug = xyes ; then
515
	    AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
516
		[Enable additional debugging at the expense of performance and size])
517
	fi
518
])
519
520
dnl GNOME_MAINTAINER_MODE_DEFINES ()
521
dnl define DISABLE_DEPRECATED
522
dnl
523
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
524
[
525
	AC_REQUIRE([AM_MAINTAINER_MODE])
526
527
	if test $USE_MAINTAINER_MODE = yes; then
528
		DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
529
	else
530
		DISABLE_DEPRECATED=""
531
	fi
532
	AC_SUBST(DISABLE_DEPRECATED)
533
])
534
535
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
536
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
537
AC_DEFUN([GNOME_DOC_DEFINES],
538
[
539
AC_ARG_WITH([help-dir],
540
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
541
  [with_help_dir='${datadir}/gnome/help'])
542
HELP_DIR="$with_help_dir"
543
AC_SUBST(HELP_DIR)
544
545
AC_ARG_WITH([omf-dir],
546
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
547
  [with_omf_dir='${datadir}/omf'])
548
OMF_DIR="$with_omf_dir"
549
AC_SUBST(OMF_DIR)
550
551
AC_ARG_WITH([help-formats],
552
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
553
  [with_help_formats=''])
554
DOC_USER_FORMATS="$with_help_formats"
555
AC_SUBST(DOC_USER_FORMATS)
556
557
AC_ARG_ENABLE([scrollkeeper],
558
	[AC_HELP_STRING([--disable-scrollkeeper],
559
			[do not make updates to the scrollkeeper database])],,
560
	enable_scrollkeeper=yes)
561
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
562
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
563
dnl disable scrollkeeper automatically for distcheck
564
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
565
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
566
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
567
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
568
])
569
570
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
571
#
572
AC_DEFUN([GNOME_DOC_INIT],
573
[
574
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
575
576
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
577
	[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
578
579
if test "$gdu_cv_have_gdu" = "yes"; then
580
	ifelse([$2],,[:],[$2])
581
else
582
	ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
583
fi
584
585
GNOME_DOC_DEFINES
586
])
587
1 by Brandon Hale
Import upstream version 0.2.0
588
1.1.2 by Brandon Hale
Import upstream version 0.3.3
589
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1.1.44 by Pedro Fragoso
Import upstream version 0.13.1
590
# serial 40 IT_PROG_INTLTOOL
1.1.49 by Jo Shields
Import upstream version 0.15.0
591
AC_DEFUN([IT_PROG_INTLTOOL], [
592
AC_PREREQ([2.50])dnl
593
AC_REQUIRE([AM_NLS])dnl
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
594
595
case "$am__api_version" in
596
    1.[01234])
597
	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
598
    ;;
599
    *)
600
    ;;
601
esac
1 by Brandon Hale
Import upstream version 0.2.0
602
603
if test -n "$1"; then
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
604
    AC_MSG_CHECKING([for intltool >= $1])
1 by Brandon Hale
Import upstream version 0.2.0
605
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
606
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1.1.44 by Pedro Fragoso
Import upstream version 0.13.1
607
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
608
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
609
    ]
610
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
611
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
612
	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
1 by Brandon Hale
Import upstream version 0.2.0
613
fi
614
1.1.44 by Pedro Fragoso
Import upstream version 0.13.1
615
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
616
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
617
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
618
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
619
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
620
fi
621
1.1.2 by Brandon Hale
Import upstream version 0.3.3
622
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
623
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
624
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
625
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
626
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
627
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
628
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
629
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
630
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
631
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
632
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
633
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
634
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
635
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
636
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
637
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
638
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
639
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
640
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1 by Brandon Hale
Import upstream version 0.2.0
641
642
AC_SUBST(INTLTOOL_DESKTOP_RULE)
643
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
644
AC_SUBST(INTLTOOL_KEYS_RULE)
645
AC_SUBST(INTLTOOL_PROP_RULE)
646
AC_SUBST(INTLTOOL_OAF_RULE)
647
AC_SUBST(INTLTOOL_PONG_RULE)
648
AC_SUBST(INTLTOOL_SERVER_RULE)
649
AC_SUBST(INTLTOOL_SHEET_RULE)
650
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
651
AC_SUBST(INTLTOOL_UI_RULE)
652
AC_SUBST(INTLTOOL_XAM_RULE)
653
AC_SUBST(INTLTOOL_KBD_RULE)
654
AC_SUBST(INTLTOOL_XML_RULE)
1.1.2 by Brandon Hale
Import upstream version 0.3.3
655
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1 by Brandon Hale
Import upstream version 0.2.0
656
AC_SUBST(INTLTOOL_CAVES_RULE)
657
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
658
AC_SUBST(INTLTOOL_THEME_RULE)
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
659
AC_SUBST(INTLTOOL_SERVICE_RULE)
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
660
AC_SUBST(INTLTOOL_POLICY_RULE)
661
662
# Check the gettext tools to make sure they are GNU
663
AC_PATH_PROG(XGETTEXT, xgettext)
664
AC_PATH_PROG(MSGMERGE, msgmerge)
665
AC_PATH_PROG(MSGFMT, msgfmt)
1.1.49 by Jo Shields
Import upstream version 0.15.0
666
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
667
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
668
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
669
fi
670
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
671
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
672
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
673
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
674
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
675
fi
1.2.1 by Sebastian Dröge
Import upstream version 0.12.2
676
1.1.44 by Pedro Fragoso
Import upstream version 0.13.1
677
AC_PATH_PROG(INTLTOOL_PERL, [perl])
1 by Brandon Hale
Import upstream version 0.2.0
678
if test -z "$INTLTOOL_PERL"; then
679
   AC_MSG_ERROR([perl not found; required for intltool])
680
fi
681
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
682
   AC_MSG_ERROR([perl 5.x required for intltool])
683
fi
1.1.2 by Brandon Hale
Import upstream version 0.3.3
684
if test "x$2" != "xno-xml"; then
685
   AC_MSG_CHECKING([for XML::Parser])
686
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
687
       AC_MSG_RESULT([ok])
688
   else
689
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
690
   fi
1 by Brandon Hale
Import upstream version 0.2.0
691
fi
692
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
693
# Substitute ALL_LINGUAS so we can use it in po/Makefile
694
AC_SUBST(ALL_LINGUAS)
1.1.21 by Sebastian Dröge
Import upstream version 0.7.2
695
696
# Set DATADIRNAME correctly if it is not set yet
697
# (copied from glib-gettext.m4)
698
if test -z "$DATADIRNAME"; then
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
699
  AC_LINK_IFELSE(
700
    [AC_LANG_PROGRAM([[]],
701
                     [[extern int _nl_msg_cat_cntr;
702
                       return _nl_msg_cat_cntr]])],
1.1.21 by Sebastian Dröge
Import upstream version 0.7.2
703
    [DATADIRNAME=share],
704
    [case $host in
705
    *-*-solaris*)
706
    dnl On Solaris, if bind_textdomain_codeset is in libc,
707
    dnl GNU format message catalog is always supported,
708
    dnl since both are added to the libc all together.
709
    dnl Hence, we'd like to go with DATADIRNAME=share
710
    dnl in this case.
711
    AC_CHECK_FUNC(bind_textdomain_codeset,
712
      [DATADIRNAME=share], [DATADIRNAME=lib])
713
    ;;
714
    *)
715
    [DATADIRNAME=lib]
716
    ;;
717
    esac])
718
fi
719
AC_SUBST(DATADIRNAME)
720
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
721
IT_PO_SUBDIR([po])
722
723
])
724
725
726
# IT_PO_SUBDIR(DIRNAME)
727
# ---------------------
728
# All po subdirs have to be declared with this macro; the subdir "po" is
729
# declared by IT_PROG_INTLTOOL.
730
#
731
AC_DEFUN([IT_PO_SUBDIR],
732
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
733
dnl
734
dnl The following CONFIG_COMMANDS should be exetuted at the very end
735
dnl of config.status.
736
AC_CONFIG_COMMANDS_PRE([
737
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1.1.49 by Jo Shields
Import upstream version 0.15.0
738
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
739
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
740
    fi
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
741
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
742
    >"$1/stamp-it.tmp"
743
    [sed '/^#/d
744
	 s/^[[].*] *//
745
	 /^[ 	]*$/d
746
	'"s|^|	$ac_top_srcdir/|" \
747
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
748
    ]
749
    [sed '/^POTFILES =/,/[^\\]$/ {
750
		/^POTFILES =/!d
751
		r $1/POTFILES
752
	  }
1.1.49 by Jo Shields
Import upstream version 0.15.0
753
	 ' "$1/Makefile.in" >"$1/Makefile"]
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
754
    rm -f "$1/Makefile.tmp"
755
    mv "$1/stamp-it.tmp" "$1/stamp-it"
756
  ])
757
])dnl
758
])
759
1.1.2 by Brandon Hale
Import upstream version 0.3.3
760
# deprecated macros
1.1.9 by Sebastian Dröge
Import upstream version 0.5.2
761
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
762
# A hint is needed for aclocal from Automake <= 1.9.4:
763
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1.1.2 by Brandon Hale
Import upstream version 0.3.3
764
765
1 by Brandon Hale
Import upstream version 0.2.0
766
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1.1.49 by Jo Shields
Import upstream version 0.15.0
767
#
768
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
769
#                 2006, 2007, 2008 Free Software Foundation, Inc.
770
#   Written by Gordon Matzigkeit, 1996
771
#
772
# This file is free software; the Free Software Foundation gives
773
# unlimited permission to copy and/or distribute it, with or without
774
# modifications, as long as this notice is preserved.
775
776
m4_define([_LT_COPYING], [dnl
777
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
778
#                 2006, 2007, 2008 Free Software Foundation, Inc.
779
#   Written by Gordon Matzigkeit, 1996
780
#
781
#   This file is part of GNU Libtool.
782
#
783
# GNU Libtool is free software; you can redistribute it and/or
784
# modify it under the terms of the GNU General Public License as
785
# published by the Free Software Foundation; either version 2 of
786
# the License, or (at your option) any later version.
787
#
788
# As a special exception to the GNU General Public License,
789
# if you distribute this file as part of a program or library that
790
# is built using GNU Libtool, you may include this file under the
791
# same distribution terms that you use for the rest of that program.
792
#
793
# GNU Libtool is distributed in the hope that it will be useful,
794
# but WITHOUT ANY WARRANTY; without even the implied warranty of
795
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
796
# GNU General Public License for more details.
797
#
798
# You should have received a copy of the GNU General Public License
799
# along with GNU Libtool; see the file COPYING.  If not, a copy
800
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
801
# obtained by writing to the Free Software Foundation, Inc.,
802
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
803
])
804
805
# serial 56 LT_INIT
806
807
808
# LT_PREREQ(VERSION)
809
# ------------------
810
# Complain and exit if this libtool version is less that VERSION.
811
m4_defun([LT_PREREQ],
812
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
813
       [m4_default([$3],
814
		   [m4_fatal([Libtool version $1 or higher is required],
815
		             63)])],
816
       [$2])])
817
818
819
# _LT_CHECK_BUILDDIR
820
# ------------------
821
# Complain if the absolute build directory name contains unusual characters
822
m4_defun([_LT_CHECK_BUILDDIR],
823
[case `pwd` in
824
  *\ * | *\	*)
825
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
826
esac
827
])
828
829
830
# LT_INIT([OPTIONS])
831
# ------------------
832
AC_DEFUN([LT_INIT],
833
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
834
AC_BEFORE([$0], [LT_LANG])dnl
835
AC_BEFORE([$0], [LT_OUTPUT])dnl
836
AC_BEFORE([$0], [LTDL_INIT])dnl
837
m4_require([_LT_CHECK_BUILDDIR])dnl
838
839
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
840
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
841
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
842
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
843
dnl unless we require an AC_DEFUNed macro:
844
AC_REQUIRE([LTOPTIONS_VERSION])dnl
845
AC_REQUIRE([LTSUGAR_VERSION])dnl
846
AC_REQUIRE([LTVERSION_VERSION])dnl
847
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
848
m4_require([_LT_PROG_LTMAIN])dnl
849
850
dnl Parse OPTIONS
851
_LT_SET_OPTIONS([$0], [$1])
1 by Brandon Hale
Import upstream version 0.2.0
852
853
# This can be used to rebuild libtool when needed
1.1.49 by Jo Shields
Import upstream version 0.15.0
854
LIBTOOL_DEPS="$ltmain"
1 by Brandon Hale
Import upstream version 0.2.0
855
856
# Always use our own libtool.
857
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
858
AC_SUBST(LIBTOOL)dnl
859
1.1.49 by Jo Shields
Import upstream version 0.15.0
860
_LT_SETUP
861
862
# Only expand once:
863
m4_define([LT_INIT])
864
])# LT_INIT
865
866
# Old names:
867
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
868
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
869
dnl aclocal-1.4 backwards compatibility:
870
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
871
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
872
873
874
# _LT_CC_BASENAME(CC)
875
# -------------------
876
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
877
m4_defun([_LT_CC_BASENAME],
878
[for cc_temp in $1""; do
879
  case $cc_temp in
880
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
881
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
882
    \-*) ;;
883
    *) break;;
884
  esac
885
done
886
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
887
])
888
889
890
# _LT_FILEUTILS_DEFAULTS
891
# ----------------------
892
# It is okay to use these file commands and assume they have been set
893
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
894
m4_defun([_LT_FILEUTILS_DEFAULTS],
895
[: ${CP="cp -f"}
896
: ${MV="mv -f"}
897
: ${RM="rm -f"}
898
])# _LT_FILEUTILS_DEFAULTS
899
900
901
# _LT_SETUP
902
# ---------
903
m4_defun([_LT_SETUP],
904
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1 by Brandon Hale
Import upstream version 0.2.0
905
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1.1.49 by Jo Shields
Import upstream version 0.15.0
906
_LT_DECL([], [host_alias], [0], [The host system])dnl
907
_LT_DECL([], [host], [0])dnl
908
_LT_DECL([], [host_os], [0])dnl
909
dnl
910
_LT_DECL([], [build_alias], [0], [The build system])dnl
911
_LT_DECL([], [build], [0])dnl
912
_LT_DECL([], [build_os], [0])dnl
913
dnl
1 by Brandon Hale
Import upstream version 0.2.0
914
AC_REQUIRE([AC_PROG_CC])dnl
1.1.49 by Jo Shields
Import upstream version 0.15.0
915
AC_REQUIRE([LT_PATH_LD])dnl
916
AC_REQUIRE([LT_PATH_NM])dnl
917
dnl
1 by Brandon Hale
Import upstream version 0.2.0
918
AC_REQUIRE([AC_PROG_LN_S])dnl
1.1.49 by Jo Shields
Import upstream version 0.15.0
919
test -z "$LN_S" && LN_S="ln -s"
920
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
921
dnl
922
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
923
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
924
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
925
dnl
926
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
927
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
928
m4_require([_LT_CMD_RELOAD])dnl
929
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
930
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
931
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
932
933
_LT_CONFIG_LIBTOOL_INIT([
934
# See if we are running on zsh, and set the options which allow our
935
# commands through without removal of \ escapes INIT.
936
if test -n "\${ZSH_VERSION+set}" ; then
937
   setopt NO_GLOB_SUBST
938
fi
939
])
940
if test -n "${ZSH_VERSION+set}" ; then
941
   setopt NO_GLOB_SUBST
942
fi
943
944
_LT_CHECK_OBJDIR
945
946
m4_require([_LT_TAG_COMPILER])dnl
947
_LT_PROG_ECHO_BACKSLASH
1 by Brandon Hale
Import upstream version 0.2.0
948
949
case $host_os in
950
aix3*)
951
  # AIX sometimes has problems with the GCC collect2 program.  For some
952
  # reason, if we set the COLLECT_NAMES environment variable, the problems
953
  # vanish in a puff of smoke.
954
  if test "X${COLLECT_NAMES+set}" != Xset; then
955
    COLLECT_NAMES=
956
    export COLLECT_NAMES
957
  fi
958
  ;;
959
esac
960
961
# Sed substitution that helps us do robust quoting.  It backslashifies
962
# metacharacters that are still active within double-quoted strings.
1.1.49 by Jo Shields
Import upstream version 0.15.0
963
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1 by Brandon Hale
Import upstream version 0.2.0
964
965
# Same as above, but do not quote variable references.
1.1.49 by Jo Shields
Import upstream version 0.15.0
966
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1 by Brandon Hale
Import upstream version 0.2.0
967
968
# Sed substitution to delay expansion of an escaped shell variable in a
969
# double_quote_subst'ed string.
970
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
971
1.1.49 by Jo Shields
Import upstream version 0.15.0
972
# Sed substitution to delay expansion of an escaped single quote.
973
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
974
1 by Brandon Hale
Import upstream version 0.2.0
975
# Sed substitution to avoid accidental globbing in evaled expressions
976
no_glob_subst='s/\*/\\\*/g'
977
978
# Global variables:
1.1.49 by Jo Shields
Import upstream version 0.15.0
979
ofile=libtool
1 by Brandon Hale
Import upstream version 0.2.0
980
can_build_shared=yes
981
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
982
# All known linkers require a `.a' archive for static linking (except MSVC,
1 by Brandon Hale
Import upstream version 0.2.0
983
# which needs '.lib').
984
libext=a
1.1.49 by Jo Shields
Import upstream version 0.15.0
985
1 by Brandon Hale
Import upstream version 0.2.0
986
with_gnu_ld="$lt_cv_prog_gnu_ld"
987
988
old_CC="$CC"
989
old_CFLAGS="$CFLAGS"
990
991
# Set sane defaults for various variables
992
test -z "$CC" && CC=cc
993
test -z "$LTCC" && LTCC=$CC
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
994
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1 by Brandon Hale
Import upstream version 0.2.0
995
test -z "$LD" && LD=ld
996
test -z "$ac_objext" && ac_objext=o
997
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
998
_LT_CC_BASENAME([$compiler])
999
1 by Brandon Hale
Import upstream version 0.2.0
1000
# Only perform the check for file, if the check method requires it
1.1.49 by Jo Shields
Import upstream version 0.15.0
1001
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1 by Brandon Hale
Import upstream version 0.2.0
1002
case $deplibs_check_method in
1003
file_magic*)
1004
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
1005
    _LT_PATH_MAGIC
1 by Brandon Hale
Import upstream version 0.2.0
1006
  fi
1007
  ;;
1008
esac
1009
1010
# Use C for the default configuration in the libtool script
1.1.49 by Jo Shields
Import upstream version 0.15.0
1011
LT_SUPPORTED_TAG([CC])
1012
_LT_LANG_C_CONFIG
1013
_LT_LANG_DEFAULT_CONFIG
1014
_LT_CONFIG_COMMANDS
1015
])# _LT_SETUP
1016
1017
1018
# _LT_PROG_LTMAIN
1019
# ---------------
1020
# Note that this code is called both from `configure', and `config.status'
1021
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
1022
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1023
# so we pass a copy along to make sure it has a sensible value anyway.
1024
m4_defun([_LT_PROG_LTMAIN],
1025
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1026
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1027
ltmain="$ac_aux_dir/ltmain.sh"
1028
])# _LT_PROG_LTMAIN
1029
1030
1031
1032
# So that we can recreate a full libtool script including additional
1033
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1034
# in macros and then make a single call at the end using the `libtool'
1035
# label.
1036
1037
1038
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1039
# ----------------------------------------
1040
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1041
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1042
[m4_ifval([$1],
1043
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1044
                     [$1
1045
])])])
1046
1047
# Initialize.
1048
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1049
1050
1051
# _LT_CONFIG_LIBTOOL([COMMANDS])
1052
# ------------------------------
1053
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1054
m4_define([_LT_CONFIG_LIBTOOL],
1055
[m4_ifval([$1],
1056
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1057
                     [$1
1058
])])])
1059
1060
# Initialize.
1061
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1062
1063
1064
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1065
# -----------------------------------------------------
1066
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1067
[_LT_CONFIG_LIBTOOL([$1])
1068
_LT_CONFIG_LIBTOOL_INIT([$2])
1069
])
1070
1071
1072
# _LT_FORMAT_COMMENT([COMMENT])
1073
# -----------------------------
1074
# Add leading comment marks to the start of each line, and a trailing
1075
# full-stop to the whole comment if one is not present already.
1076
m4_define([_LT_FORMAT_COMMENT],
1077
[m4_ifval([$1], [
1078
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1079
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1080
)])
1081
1082
1083
1084
1085
1086
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1087
# -------------------------------------------------------------------
1088
# CONFIGNAME is the name given to the value in the libtool script.
1089
# VARNAME is the (base) name used in the configure script.
1090
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1091
# VARNAME.  Any other value will be used directly.
1092
m4_define([_LT_DECL],
1093
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1094
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1095
	[m4_ifval([$1], [$1], [$2])])
1096
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1097
    m4_ifval([$4],
1098
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1099
    lt_dict_add_subkey([lt_decl_dict], [$2],
1100
	[tagged?], [m4_ifval([$5], [yes], [no])])])
1101
])
1102
1103
1104
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1105
# --------------------------------------------------------
1106
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1107
1108
1109
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1110
# ------------------------------------------------
1111
m4_define([lt_decl_tag_varnames],
1112
[_lt_decl_filter([tagged?], [yes], $@)])
1113
1114
1115
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1116
# ---------------------------------------------------------
1117
m4_define([_lt_decl_filter],
1118
[m4_case([$#],
1119
  [0], [m4_fatal([$0: too few arguments: $#])],
1120
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1121
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1122
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1123
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1124
])
1125
1126
1127
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1128
# --------------------------------------------------
1129
m4_define([lt_decl_quote_varnames],
1130
[_lt_decl_filter([value], [1], $@)])
1131
1132
1133
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1134
# ---------------------------------------------------
1135
m4_define([lt_decl_dquote_varnames],
1136
[_lt_decl_filter([value], [2], $@)])
1137
1138
1139
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1140
# ---------------------------------------------------
1141
m4_define([lt_decl_varnames_tagged],
1142
[m4_assert([$# <= 2])dnl
1143
_$0(m4_quote(m4_default([$1], [[, ]])),
1144
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1145
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1146
m4_define([_lt_decl_varnames_tagged],
1147
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1148
1149
1150
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1151
# ------------------------------------------------
1152
m4_define([lt_decl_all_varnames],
1153
[_$0(m4_quote(m4_default([$1], [[, ]])),
1154
     m4_if([$2], [],
1155
	   m4_quote(lt_decl_varnames),
1156
	m4_quote(m4_shift($@))))[]dnl
1157
])
1158
m4_define([_lt_decl_all_varnames],
1159
[lt_join($@, lt_decl_varnames_tagged([$1],
1160
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1161
])
1162
1163
1164
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1165
# ------------------------------------
1166
# Quote a variable value, and forward it to `config.status' so that its
1167
# declaration there will have the same value as in `configure'.  VARNAME
1168
# must have a single quote delimited value for this to work.
1169
m4_define([_LT_CONFIG_STATUS_DECLARE],
1170
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1171
1172
1173
# _LT_CONFIG_STATUS_DECLARATIONS
1174
# ------------------------------
1175
# We delimit libtool config variables with single quotes, so when
1176
# we write them to config.status, we have to be sure to quote all
1177
# embedded single quotes properly.  In configure, this macro expands
1178
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1179
#
1180
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1181
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1182
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1183
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1184
1185
1186
# _LT_LIBTOOL_TAGS
1187
# ----------------
1188
# Output comment and list of tags supported by the script
1189
m4_defun([_LT_LIBTOOL_TAGS],
1190
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1191
available_tags="_LT_TAGS"dnl
1192
])
1193
1194
1195
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1196
# -----------------------------------
1197
# Extract the dictionary values for VARNAME (optionally with TAG) and
1198
# expand to a commented shell variable setting:
1199
#
1200
#    # Some comment about what VAR is for.
1201
#    visible_name=$lt_internal_name
1202
m4_define([_LT_LIBTOOL_DECLARE],
1203
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1204
					   [description])))[]dnl
1205
m4_pushdef([_libtool_name],
1206
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1207
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1208
    [0], [_libtool_name=[$]$1],
1209
    [1], [_libtool_name=$lt_[]$1],
1210
    [2], [_libtool_name=$lt_[]$1],
1211
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1212
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1213
])
1214
1215
1216
# _LT_LIBTOOL_CONFIG_VARS
1217
# -----------------------
1218
# Produce commented declarations of non-tagged libtool config variables
1219
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1220
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1221
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1222
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1223
[m4_foreach([_lt_var],
1224
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1225
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1226
1227
1228
# _LT_LIBTOOL_TAG_VARS(TAG)
1229
# -------------------------
1230
m4_define([_LT_LIBTOOL_TAG_VARS],
1231
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1232
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1233
1234
1235
# _LT_TAGVAR(VARNAME, [TAGNAME])
1236
# ------------------------------
1237
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1238
1239
1240
# _LT_CONFIG_COMMANDS
1 by Brandon Hale
Import upstream version 0.2.0
1241
# -------------------
1.1.49 by Jo Shields
Import upstream version 0.15.0
1242
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1243
# variables for single and double quote escaping we saved from calls
1244
# to _LT_DECL, we can put quote escaped variables declarations
1245
# into `config.status', and then the shell code to quote escape them in
1246
# for loops in `config.status'.  Finally, any additional code accumulated
1247
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1248
m4_defun([_LT_CONFIG_COMMANDS],
1249
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1250
	dnl If the libtool generation code has been placed in $CONFIG_LT,
1251
	dnl instead of duplicating it all over again into config.status,
1252
	dnl then we will have config.status run $CONFIG_LT later, so it
1253
	dnl needs to know what name is stored there:
1254
        [AC_CONFIG_COMMANDS([libtool],
1255
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1256
    dnl If the libtool generation code is destined for config.status,
1257
    dnl expand the accumulated commands and init code now:
1258
    [AC_CONFIG_COMMANDS([libtool],
1259
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1260
])#_LT_CONFIG_COMMANDS
1261
1262
1263
# Initialize.
1264
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1265
[
1266
1267
# The HP-UX ksh and POSIX shell print the target directory to stdout
1268
# if CDPATH is set.
1269
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1270
1271
sed_quote_subst='$sed_quote_subst'
1272
double_quote_subst='$double_quote_subst'
1273
delay_variable_subst='$delay_variable_subst'
1274
_LT_CONFIG_STATUS_DECLARATIONS
1275
LTCC='$LTCC'
1276
LTCFLAGS='$LTCFLAGS'
1277
compiler='$compiler_DEFAULT'
1278
1279
# Quote evaled strings.
1280
for var in lt_decl_all_varnames([[ \
1281
]], lt_decl_quote_varnames); do
1282
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1283
    *[[\\\\\\\`\\"\\\$]]*)
1284
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1285
      ;;
1286
    *)
1287
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1288
      ;;
1289
    esac
1290
done
1291
1292
# Double-quote double-evaled strings.
1293
for var in lt_decl_all_varnames([[ \
1294
]], lt_decl_dquote_varnames); do
1295
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1296
    *[[\\\\\\\`\\"\\\$]]*)
1297
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1298
      ;;
1299
    *)
1300
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1301
      ;;
1302
    esac
1303
done
1304
1305
# Fix-up fallback echo if it was mangled by the above quoting rules.
1306
case \$lt_ECHO in
1307
*'\\\[$]0 --fallback-echo"')dnl "
1308
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1309
  ;;
1310
esac
1311
1312
_LT_OUTPUT_LIBTOOL_INIT
1313
])
1314
1315
1316
# LT_OUTPUT
1317
# ---------
1318
# This macro allows early generation of the libtool script (before
1319
# AC_OUTPUT is called), incase it is used in configure for compilation
1320
# tests.
1321
AC_DEFUN([LT_OUTPUT],
1322
[: ${CONFIG_LT=./config.lt}
1323
AC_MSG_NOTICE([creating $CONFIG_LT])
1324
cat >"$CONFIG_LT" <<_LTEOF
1325
#! $SHELL
1326
# Generated by $as_me.
1327
# Run this file to recreate a libtool stub with the current configuration.
1328
1329
lt_cl_silent=false
1330
SHELL=\${CONFIG_SHELL-$SHELL}
1331
_LTEOF
1332
1333
cat >>"$CONFIG_LT" <<\_LTEOF
1334
AS_SHELL_SANITIZE
1335
_AS_PREPARE
1336
1337
exec AS_MESSAGE_FD>&1
1338
exec AS_MESSAGE_LOG_FD>>config.log
1339
{
1340
  echo
1341
  AS_BOX([Running $as_me.])
1342
} >&AS_MESSAGE_LOG_FD
1343
1344
lt_cl_help="\
1345
\`$as_me' creates a local libtool stub from the current configuration,
1346
for use in further configure time tests before the real libtool is
1347
generated.
1348
1349
Usage: $[0] [[OPTIONS]]
1350
1351
  -h, --help      print this help, then exit
1352
  -V, --version   print version number, then exit
1353
  -q, --quiet     do not print progress messages
1354
  -d, --debug     don't remove temporary files
1355
1356
Report bugs to <bug-libtool@gnu.org>."
1357
1358
lt_cl_version="\
1359
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1360
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1361
configured by $[0], generated by m4_PACKAGE_STRING.
1362
1363
Copyright (C) 2008 Free Software Foundation, Inc.
1364
This config.lt script is free software; the Free Software Foundation
1365
gives unlimited permision to copy, distribute and modify it."
1366
1367
while test $[#] != 0
1368
do
1369
  case $[1] in
1370
    --version | --v* | -V )
1371
      echo "$lt_cl_version"; exit 0 ;;
1372
    --help | --h* | -h )
1373
      echo "$lt_cl_help"; exit 0 ;;
1374
    --debug | --d* | -d )
1375
      debug=: ;;
1376
    --quiet | --q* | --silent | --s* | -q )
1377
      lt_cl_silent=: ;;
1378
1379
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1380
Try \`$[0] --help' for more information.]) ;;
1381
1382
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1383
Try \`$[0] --help' for more information.]) ;;
1384
  esac
1385
  shift
1386
done
1387
1388
if $lt_cl_silent; then
1389
  exec AS_MESSAGE_FD>/dev/null
1390
fi
1391
_LTEOF
1392
1393
cat >>"$CONFIG_LT" <<_LTEOF
1394
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1395
_LTEOF
1396
1397
cat >>"$CONFIG_LT" <<\_LTEOF
1398
AC_MSG_NOTICE([creating $ofile])
1399
_LT_OUTPUT_LIBTOOL_COMMANDS
1400
AS_EXIT(0)
1401
_LTEOF
1402
chmod +x "$CONFIG_LT"
1403
1404
# configure is writing to config.log, but config.lt does its own redirection,
1405
# appending to config.log, which fails on DOS, as config.log is still kept
1406
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1407
# config.log, so it can be properly (re)opened and appended to by config.lt.
1408
if test "$no_create" != yes; then
1409
  lt_cl_success=:
1410
  test "$silent" = yes &&
1411
    lt_config_lt_args="$lt_config_lt_args --quiet"
1412
  exec AS_MESSAGE_LOG_FD>/dev/null
1413
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1414
  exec AS_MESSAGE_LOG_FD>>config.log
1415
  $lt_cl_success || AS_EXIT(1)
1416
fi
1417
])# LT_OUTPUT
1418
1419
1420
# _LT_CONFIG(TAG)
1421
# ---------------
1422
# If TAG is the built-in tag, create an initial libtool script with a
1423
# default configuration from the untagged config vars.  Otherwise add code
1424
# to config.status for appending the configuration named by TAG from the
1425
# matching tagged config vars.
1426
m4_defun([_LT_CONFIG],
1427
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1428
_LT_CONFIG_SAVE_COMMANDS([
1429
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1430
  m4_if(_LT_TAG, [C], [
1431
    # See if we are running on zsh, and set the options which allow our
1432
    # commands through without removal of \ escapes.
1433
    if test -n "${ZSH_VERSION+set}" ; then
1434
      setopt NO_GLOB_SUBST
1435
    fi
1436
1437
    cfgfile="${ofile}T"
1438
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1439
    $RM "$cfgfile"
1440
1441
    cat <<_LT_EOF >> "$cfgfile"
1442
#! $SHELL
1443
1444
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1445
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1446
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1447
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1448
#
1449
_LT_COPYING
1450
_LT_LIBTOOL_TAGS
1451
1452
# ### BEGIN LIBTOOL CONFIG
1453
_LT_LIBTOOL_CONFIG_VARS
1454
_LT_LIBTOOL_TAG_VARS
1455
# ### END LIBTOOL CONFIG
1456
1457
_LT_EOF
1458
1459
  case $host_os in
1460
  aix3*)
1461
    cat <<\_LT_EOF >> "$cfgfile"
1462
# AIX sometimes has problems with the GCC collect2 program.  For some
1463
# reason, if we set the COLLECT_NAMES environment variable, the problems
1464
# vanish in a puff of smoke.
1465
if test "X${COLLECT_NAMES+set}" != Xset; then
1466
  COLLECT_NAMES=
1467
  export COLLECT_NAMES
1468
fi
1469
_LT_EOF
1470
    ;;
1471
  esac
1472
1473
  _LT_PROG_LTMAIN
1474
1475
  # We use sed instead of cat because bash on DJGPP gets confused if
1476
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1477
  # text mode, it properly converts lines to CR/LF.  This bash problem
1478
  # is reportedly fixed, but why not run on old versions too?
1479
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1480
    || (rm -f "$cfgfile"; exit 1)
1481
1482
  _LT_PROG_XSI_SHELLFNS
1483
1484
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1485
    || (rm -f "$cfgfile"; exit 1)
1486
1487
  mv -f "$cfgfile" "$ofile" ||
1488
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1489
  chmod +x "$ofile"
1490
],
1491
[cat <<_LT_EOF >> "$ofile"
1492
1493
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1494
dnl in a comment (ie after a #).
1495
# ### BEGIN LIBTOOL TAG CONFIG: $1
1496
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1497
# ### END LIBTOOL TAG CONFIG: $1
1498
_LT_EOF
1499
])dnl /m4_if
1500
],
1501
[m4_if([$1], [], [
1502
    PACKAGE='$PACKAGE'
1503
    VERSION='$VERSION'
1504
    TIMESTAMP='$TIMESTAMP'
1505
    RM='$RM'
1506
    ofile='$ofile'], [])
1507
])dnl /_LT_CONFIG_SAVE_COMMANDS
1508
])# _LT_CONFIG
1509
1510
1511
# LT_SUPPORTED_TAG(TAG)
1512
# ---------------------
1513
# Trace this macro to discover what tags are supported by the libtool
1514
# --tag option, using:
1515
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1516
AC_DEFUN([LT_SUPPORTED_TAG], [])
1517
1518
1519
# C support is built-in for now
1520
m4_define([_LT_LANG_C_enabled], [])
1521
m4_define([_LT_TAGS], [])
1522
1523
1524
# LT_LANG(LANG)
1525
# -------------
1526
# Enable libtool support for the given language if not already enabled.
1527
AC_DEFUN([LT_LANG],
1528
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1529
m4_case([$1],
1530
  [C],			[_LT_LANG(C)],
1531
  [C++],		[_LT_LANG(CXX)],
1532
  [Java],		[_LT_LANG(GCJ)],
1533
  [Fortran 77],		[_LT_LANG(F77)],
1534
  [Fortran],		[_LT_LANG(FC)],
1535
  [Windows Resource],	[_LT_LANG(RC)],
1536
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1537
    [_LT_LANG($1)],
1538
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1539
])# LT_LANG
1540
1541
1542
# _LT_LANG(LANGNAME)
1543
# ------------------
1544
m4_defun([_LT_LANG],
1545
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1546
  [LT_SUPPORTED_TAG([$1])dnl
1547
  m4_append([_LT_TAGS], [$1 ])dnl
1548
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1549
  _LT_LANG_$1_CONFIG($1)])dnl
1550
])# _LT_LANG
1551
1552
1553
# _LT_LANG_DEFAULT_CONFIG
1554
# -----------------------
1555
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1556
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1557
  [LT_LANG(CXX)],
1558
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1559
1560
AC_PROVIDE_IFELSE([AC_PROG_F77],
1561
  [LT_LANG(F77)],
1562
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1563
1564
AC_PROVIDE_IFELSE([AC_PROG_FC],
1565
  [LT_LANG(FC)],
1566
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1567
1568
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1569
dnl pulling things in needlessly.
1570
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1571
  [LT_LANG(GCJ)],
1572
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1573
    [LT_LANG(GCJ)],
1574
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1575
      [LT_LANG(GCJ)],
1576
      [m4_ifdef([AC_PROG_GCJ],
1577
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1578
       m4_ifdef([A][M_PROG_GCJ],
1579
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1580
       m4_ifdef([LT_PROG_GCJ],
1581
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1582
1583
AC_PROVIDE_IFELSE([LT_PROG_RC],
1584
  [LT_LANG(RC)],
1585
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1586
])# _LT_LANG_DEFAULT_CONFIG
1587
1588
# Obsolete macros:
1589
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1590
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1591
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1592
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1593
dnl aclocal-1.4 backwards compatibility:
1594
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1595
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1596
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1597
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1598
1599
1600
# _LT_TAG_COMPILER
1601
# ----------------
1602
m4_defun([_LT_TAG_COMPILER],
1 by Brandon Hale
Import upstream version 0.2.0
1603
[AC_REQUIRE([AC_PROG_CC])dnl
1604
1.1.49 by Jo Shields
Import upstream version 0.15.0
1605
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1606
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1607
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1608
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1609
1 by Brandon Hale
Import upstream version 0.2.0
1610
# If no C compiler was specified, use CC.
1611
LTCC=${LTCC-"$CC"}
1612
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1613
# If no C compiler flags were specified, use CFLAGS.
1614
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1615
1 by Brandon Hale
Import upstream version 0.2.0
1616
# Allow CC to be a program name with arguments.
1617
compiler=$CC
1.1.49 by Jo Shields
Import upstream version 0.15.0
1618
])# _LT_TAG_COMPILER
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1619
1620
1621
# _LT_COMPILER_BOILERPLATE
1622
# ------------------------
1623
# Check for compiler boilerplate output or warnings with
1624
# the simple compiler test code.
1.1.49 by Jo Shields
Import upstream version 0.15.0
1625
m4_defun([_LT_COMPILER_BOILERPLATE],
1626
[m4_require([_LT_DECL_SED])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
1627
ac_outfile=conftest.$ac_objext
1628
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1629
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1630
_lt_compiler_boilerplate=`cat conftest.err`
1.1.49 by Jo Shields
Import upstream version 0.15.0
1631
$RM conftest*
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1632
])# _LT_COMPILER_BOILERPLATE
1633
1634
1635
# _LT_LINKER_BOILERPLATE
1636
# ----------------------
1637
# Check for linker boilerplate output or warnings with
1638
# the simple link test code.
1.1.49 by Jo Shields
Import upstream version 0.15.0
1639
m4_defun([_LT_LINKER_BOILERPLATE],
1640
[m4_require([_LT_DECL_SED])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
1641
ac_outfile=conftest.$ac_objext
1642
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1643
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1644
_lt_linker_boilerplate=`cat conftest.err`
1.1.49 by Jo Shields
Import upstream version 0.15.0
1645
$RM -r conftest*
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1646
])# _LT_LINKER_BOILERPLATE
1647
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1648
# _LT_REQUIRED_DARWIN_CHECKS
1.1.49 by Jo Shields
Import upstream version 0.15.0
1649
# -------------------------
1650
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1651
  case $host_os in
1652
    rhapsody* | darwin*)
1653
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1654
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1.1.49 by Jo Shields
Import upstream version 0.15.0
1655
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1656
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1657
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1658
    _LT_DECL([], [DSYMUTIL], [1],
1659
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1660
    _LT_DECL([], [NMEDIT], [1],
1661
      [Tool to change global to local symbols on Mac OS X])
1662
    _LT_DECL([], [LIPO], [1],
1663
      [Tool to manipulate fat objects and archives on Mac OS X])
1664
    _LT_DECL([], [OTOOL], [1],
1665
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1666
    _LT_DECL([], [OTOOL64], [1],
1667
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1668
1669
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1670
      [lt_cv_apple_cc_single_mod=no
1671
      if test -z "${LT_MULTI_MODULE}"; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
1672
	# By default we will add the -single_module flag. You can override
1673
	# by either setting the environment variable LT_MULTI_MODULE
1674
	# non-empty at configure time, or by adding -multi_module to the
1675
	# link flags.
1676
	rm -rf libconftest.dylib*
1677
	echo "int foo(void){return 1;}" > conftest.c
1678
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1679
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1680
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1681
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1682
        _lt_result=$?
1683
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1684
	  lt_cv_apple_cc_single_mod=yes
1685
	else
1686
	  cat conftest.err >&AS_MESSAGE_LOG_FD
1687
	fi
1688
	rm -rf libconftest.dylib*
1689
	rm -f conftest.*
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1690
      fi])
1691
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1692
      [lt_cv_ld_exported_symbols_list],
1693
      [lt_cv_ld_exported_symbols_list=no
1694
      save_LDFLAGS=$LDFLAGS
1695
      echo "_main" > conftest.sym
1696
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1697
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1.1.49 by Jo Shields
Import upstream version 0.15.0
1698
	[lt_cv_ld_exported_symbols_list=yes],
1699
	[lt_cv_ld_exported_symbols_list=no])
1700
	LDFLAGS="$save_LDFLAGS"
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1701
    ])
1702
    case $host_os in
1.1.49 by Jo Shields
Import upstream version 0.15.0
1703
    rhapsody* | darwin1.[[012]])
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1704
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1705
    darwin1.*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
1706
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1707
    darwin*) # darwin 5.x on
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1708
      # if running on 10.5 or later, the deployment target defaults
1709
      # to the OS version, if on x86, and 10.4, the deployment
1710
      # target defaults to 10.4. Don't you love it?
1711
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1.1.49 by Jo Shields
Import upstream version 0.15.0
1712
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1713
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1714
	10.[[012]]*)
1715
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1716
	10.*)
1717
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1718
      esac
1719
    ;;
1720
  esac
1721
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1722
      _lt_dar_single_mod='$single_module'
1723
    fi
1724
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1725
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1726
    else
1.1.49 by Jo Shields
Import upstream version 0.15.0
1727
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1728
    fi
1729
    if test "$DSYMUTIL" != ":"; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
1730
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
1731
    else
1732
      _lt_dsymutil=
1733
    fi
1734
    ;;
1735
  esac
1736
])
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1737
1.1.49 by Jo Shields
Import upstream version 0.15.0
1738
1739
# _LT_DARWIN_LINKER_FEATURES
1740
# --------------------------
1741
# Checks for linker and compiler features on darwin
1742
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1743
[
1744
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1745
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1746
  _LT_TAGVAR(hardcode_direct, $1)=no
1747
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1748
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1749
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1750
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1751
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1752
  case $cc_basename in
1753
     ifort*) _lt_dar_can_shared=yes ;;
1754
     *) _lt_dar_can_shared=$GCC ;;
1755
  esac
1756
  if test "$_lt_dar_can_shared" = "yes"; then
1757
    output_verbose_link_cmd=echo
1758
    _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}"
1759
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1760
    _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}"
1761
    _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}"
1762
    m4_if([$1], [CXX],
1763
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1764
      _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}"
1765
      _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}"
1766
    fi
1767
],[])
1768
  else
1769
  _LT_TAGVAR(ld_shlibs, $1)=no
1770
  fi
1771
])
1772
1773
# _LT_SYS_MODULE_PATH_AIX
1774
# -----------------------
1 by Brandon Hale
Import upstream version 0.2.0
1775
# Links a minimal program and checks the executable
1776
# for the system default hardcoded library path. In most cases,
1777
# this is /usr/lib:/lib, but when the MPI compilers are used
1778
# the location of the communication and MPI libs are included too.
1779
# If we don't find anything, use the default library path according
1780
# to the aix ld manual.
1.1.49 by Jo Shields
Import upstream version 0.15.0
1781
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1782
[m4_require([_LT_DECL_SED])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
1783
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1784
lt_aix_libpath_sed='
1785
    /Import File Strings/,/^$/ {
1786
	/^0/ {
1787
	    s/^0  *\(.*\)$/\1/
1788
	    p
1789
	}
1790
    }'
1791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1 by Brandon Hale
Import upstream version 0.2.0
1792
# Check for a 64-bit object if we didn't find anything.
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
1793
if test -z "$aix_libpath"; then
1794
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1795
fi],[])
1 by Brandon Hale
Import upstream version 0.2.0
1796
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
1797
])# _LT_SYS_MODULE_PATH_AIX
1798
1799
1800
# _LT_SHELL_INIT(ARG)
1801
# -------------------
1802
m4_define([_LT_SHELL_INIT],
1 by Brandon Hale
Import upstream version 0.2.0
1803
[ifdef([AC_DIVERSION_NOTICE],
1804
	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1805
	 [AC_DIVERT_PUSH(NOTICE)])
1806
$1
1807
AC_DIVERT_POP
1.1.49 by Jo Shields
Import upstream version 0.15.0
1808
])# _LT_SHELL_INIT
1809
1810
1811
# _LT_PROG_ECHO_BACKSLASH
1812
# -----------------------
1 by Brandon Hale
Import upstream version 0.2.0
1813
# Add some code to the start of the generated configure script which
1814
# will find an echo command which doesn't interpret backslashes.
1.1.49 by Jo Shields
Import upstream version 0.15.0
1815
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1816
[_LT_SHELL_INIT([
1 by Brandon Hale
Import upstream version 0.2.0
1817
# Check that we are running under the correct shell.
1818
SHELL=${CONFIG_SHELL-/bin/sh}
1819
1.1.49 by Jo Shields
Import upstream version 0.15.0
1820
case X$lt_ECHO in
1 by Brandon Hale
Import upstream version 0.2.0
1821
X*--fallback-echo)
1822
  # Remove one level of quotation (which was required for Make).
1.1.49 by Jo Shields
Import upstream version 0.15.0
1823
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1 by Brandon Hale
Import upstream version 0.2.0
1824
  ;;
1825
esac
1826
1.1.49 by Jo Shields
Import upstream version 0.15.0
1827
ECHO=${lt_ECHO-echo}
1 by Brandon Hale
Import upstream version 0.2.0
1828
if test "X[$]1" = X--no-reexec; then
1829
  # Discard the --no-reexec flag, and continue.
1830
  shift
1831
elif test "X[$]1" = X--fallback-echo; then
1832
  # Avoid inline document here, it may be left over
1833
  :
1.1.49 by Jo Shields
Import upstream version 0.15.0
1834
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1835
  # Yippee, $ECHO works!
1 by Brandon Hale
Import upstream version 0.2.0
1836
  :
1837
else
1838
  # Restart under the correct shell.
1839
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1840
fi
1841
1842
if test "X[$]1" = X--fallback-echo; then
1843
  # used as fallback echo
1844
  shift
1.1.49 by Jo Shields
Import upstream version 0.15.0
1845
  cat <<_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
1846
[$]*
1.1.49 by Jo Shields
Import upstream version 0.15.0
1847
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
1848
  exit 0
1849
fi
1850
1851
# The HP-UX ksh and POSIX shell print the target directory to stdout
1852
# if CDPATH is set.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
1853
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1 by Brandon Hale
Import upstream version 0.2.0
1854
1.1.49 by Jo Shields
Import upstream version 0.15.0
1855
if test -z "$lt_ECHO"; then
1856
  if test "X${echo_test_string+set}" != Xset; then
1857
    # find a string as large as possible, as long as the shell can cope with it
1858
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1859
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1860
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1861
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1862
      then
1863
        break
1864
      fi
1865
    done
1866
  fi
1867
1868
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1869
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1870
     test "X$echo_testing_string" = "X$echo_test_string"; then
1871
    :
1872
  else
1873
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1874
    # backslashes.  This makes it impossible to quote backslashes using
1875
    #   echo "$something" | sed 's/\\/\\\\/g'
1876
    #
1877
    # So, first we look for a working echo in the user's PATH.
1878
1879
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1880
    for dir in $PATH /usr/ucb; do
1881
      IFS="$lt_save_ifs"
1882
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1883
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1884
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1885
         test "X$echo_testing_string" = "X$echo_test_string"; then
1886
        ECHO="$dir/echo"
1887
        break
1888
      fi
1889
    done
1 by Brandon Hale
Import upstream version 0.2.0
1890
    IFS="$lt_save_ifs"
1891
1.1.49 by Jo Shields
Import upstream version 0.15.0
1892
    if test "X$ECHO" = Xecho; then
1893
      # We didn't find a better echo, so look for alternatives.
1894
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1895
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1896
         test "X$echo_testing_string" = "X$echo_test_string"; then
1897
        # This shell has a builtin print -r that does the trick.
1898
        ECHO='print -r'
1899
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1900
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
1901
        # If we have ksh, try running configure again with it.
1902
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1903
        export ORIGINAL_CONFIG_SHELL
1904
        CONFIG_SHELL=/bin/ksh
1905
        export CONFIG_SHELL
1906
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1 by Brandon Hale
Import upstream version 0.2.0
1907
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
1908
        # Try using printf.
1909
        ECHO='printf %s\n'
1910
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1911
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1912
	   test "X$echo_testing_string" = "X$echo_test_string"; then
1913
	  # Cool, printf works
1914
	  :
1915
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1916
	     test "X$echo_testing_string" = 'X\t' &&
1917
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1918
	     test "X$echo_testing_string" = "X$echo_test_string"; then
1919
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1920
	  export CONFIG_SHELL
1921
	  SHELL="$CONFIG_SHELL"
1922
	  export SHELL
1923
	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1924
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1925
	     test "X$echo_testing_string" = 'X\t' &&
1926
	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1927
	     test "X$echo_testing_string" = "X$echo_test_string"; then
1928
	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1929
        else
1930
	  # maybe with a smaller string...
1931
	  prev=:
1932
1933
	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1934
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1935
	    then
1936
	      break
1937
	    fi
1938
	    prev="$cmd"
1939
	  done
1940
1941
	  if test "$prev" != 'sed 50q "[$]0"'; then
1942
	    echo_test_string=`eval $prev`
1943
	    export echo_test_string
1944
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1945
	  else
1946
	    # Oops.  We lost completely, so just stick with echo.
1947
	    ECHO=echo
1 by Brandon Hale
Import upstream version 0.2.0
1948
	  fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
1949
        fi
1 by Brandon Hale
Import upstream version 0.2.0
1950
      fi
1951
    fi
1952
  fi
1953
fi
1954
1955
# Copy echo and quote the copy suitably for passing to libtool from
1956
# the Makefile, instead of quoting the original, which is used later.
1.1.49 by Jo Shields
Import upstream version 0.15.0
1957
lt_ECHO=$ECHO
1958
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1959
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1 by Brandon Hale
Import upstream version 0.2.0
1960
fi
1961
1.1.49 by Jo Shields
Import upstream version 0.15.0
1962
AC_SUBST(lt_ECHO)
1963
])
1964
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1965
_LT_DECL([], [ECHO], [1],
1966
    [An echo program that does not interpret backslashes])
1967
])# _LT_PROG_ECHO_BACKSLASH
1968
1969
1970
# _LT_ENABLE_LOCK
1971
# ---------------
1972
m4_defun([_LT_ENABLE_LOCK],
1 by Brandon Hale
Import upstream version 0.2.0
1973
[AC_ARG_ENABLE([libtool-lock],
1.1.49 by Jo Shields
Import upstream version 0.15.0
1974
  [AS_HELP_STRING([--disable-libtool-lock],
1975
    [avoid locking (might break parallel builds)])])
1 by Brandon Hale
Import upstream version 0.2.0
1976
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1977
1978
# Some flags need to be propagated to the compiler or linker for good
1979
# libtool support.
1980
case $host in
1981
ia64-*-hpux*)
1982
  # Find out which ABI we are using.
1983
  echo 'int i;' > conftest.$ac_ext
1984
  if AC_TRY_EVAL(ac_compile); then
1985
    case `/usr/bin/file conftest.$ac_objext` in
1.1.49 by Jo Shields
Import upstream version 0.15.0
1986
      *ELF-32*)
1987
	HPUX_IA64_MODE="32"
1988
	;;
1989
      *ELF-64*)
1990
	HPUX_IA64_MODE="64"
1991
	;;
1 by Brandon Hale
Import upstream version 0.2.0
1992
    esac
1993
  fi
1994
  rm -rf conftest*
1995
  ;;
1996
*-*-irix6*)
1997
  # Find out which ABI we are using.
1998
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1999
  if AC_TRY_EVAL(ac_compile); then
1.1.49 by Jo Shields
Import upstream version 0.15.0
2000
    if test "$lt_cv_prog_gnu_ld" = yes; then
2001
      case `/usr/bin/file conftest.$ac_objext` in
2002
	*32-bit*)
2003
	  LD="${LD-ld} -melf32bsmip"
2004
	  ;;
2005
	*N32*)
2006
	  LD="${LD-ld} -melf32bmipn32"
2007
	  ;;
2008
	*64-bit*)
2009
	  LD="${LD-ld} -melf64bmip"
2010
	;;
2011
      esac
2012
    else
2013
      case `/usr/bin/file conftest.$ac_objext` in
2014
	*32-bit*)
2015
	  LD="${LD-ld} -32"
2016
	  ;;
2017
	*N32*)
2018
	  LD="${LD-ld} -n32"
2019
	  ;;
2020
	*64-bit*)
2021
	  LD="${LD-ld} -64"
2022
	  ;;
2023
      esac
2024
    fi
1 by Brandon Hale
Import upstream version 0.2.0
2025
  fi
2026
  rm -rf conftest*
2027
  ;;
2028
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2029
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1.1.49 by Jo Shields
Import upstream version 0.15.0
2030
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1 by Brandon Hale
Import upstream version 0.2.0
2031
  # Find out which ABI we are using.
2032
  echo 'int i;' > conftest.$ac_ext
2033
  if AC_TRY_EVAL(ac_compile); then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2034
    case `/usr/bin/file conftest.o` in
1.1.49 by Jo Shields
Import upstream version 0.15.0
2035
      *32-bit*)
2036
	case $host in
2037
	  x86_64-*kfreebsd*-gnu)
2038
	    LD="${LD-ld} -m elf_i386_fbsd"
2039
	    ;;
2040
	  x86_64-*linux*)
2041
	    LD="${LD-ld} -m elf_i386"
2042
	    ;;
2043
	  ppc64-*linux*|powerpc64-*linux*)
2044
	    LD="${LD-ld} -m elf32ppclinux"
2045
	    ;;
2046
	  s390x-*linux*)
2047
	    LD="${LD-ld} -m elf_s390"
2048
	    ;;
2049
	  sparc64-*linux*)
2050
	    LD="${LD-ld} -m elf32_sparc"
2051
	    ;;
2052
	esac
2053
	;;
2054
      *64-bit*)
2055
	case $host in
2056
	  x86_64-*kfreebsd*-gnu)
2057
	    LD="${LD-ld} -m elf_x86_64_fbsd"
2058
	    ;;
2059
	  x86_64-*linux*)
2060
	    LD="${LD-ld} -m elf_x86_64"
2061
	    ;;
2062
	  ppc*-*linux*|powerpc*-*linux*)
2063
	    LD="${LD-ld} -m elf64ppc"
2064
	    ;;
2065
	  s390*-*linux*|s390*-*tpf*)
2066
	    LD="${LD-ld} -m elf64_s390"
2067
	    ;;
2068
	  sparc*-*linux*)
2069
	    LD="${LD-ld} -m elf64_sparc"
2070
	    ;;
2071
	esac
2072
	;;
1 by Brandon Hale
Import upstream version 0.2.0
2073
    esac
2074
  fi
2075
  rm -rf conftest*
2076
  ;;
2077
2078
*-*-sco3.2v5*)
2079
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2080
  SAVE_CFLAGS="$CFLAGS"
2081
  CFLAGS="$CFLAGS -belf"
2082
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2083
    [AC_LANG_PUSH(C)
1.1.49 by Jo Shields
Import upstream version 0.15.0
2084
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1 by Brandon Hale
Import upstream version 0.2.0
2085
     AC_LANG_POP])
2086
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2087
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2088
    CFLAGS="$SAVE_CFLAGS"
2089
  fi
2090
  ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2091
sparc*-*solaris*)
2092
  # Find out which ABI we are using.
2093
  echo 'int i;' > conftest.$ac_ext
2094
  if AC_TRY_EVAL(ac_compile); then
2095
    case `/usr/bin/file conftest.o` in
2096
    *64-bit*)
2097
      case $lt_cv_prog_gnu_ld in
2098
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
2099
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
2100
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
2101
	  LD="${LD-ld} -64"
2102
	fi
2103
	;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2104
      esac
2105
      ;;
2106
    esac
2107
  fi
2108
  rm -rf conftest*
2109
  ;;
1 by Brandon Hale
Import upstream version 0.2.0
2110
esac
2111
2112
need_locks="$enable_libtool_lock"
1.1.49 by Jo Shields
Import upstream version 0.15.0
2113
])# _LT_ENABLE_LOCK
2114
2115
2116
# _LT_CMD_OLD_ARCHIVE
2117
# -------------------
2118
m4_defun([_LT_CMD_OLD_ARCHIVE],
2119
[AC_CHECK_TOOL(AR, ar, false)
2120
test -z "$AR" && AR=ar
2121
test -z "$AR_FLAGS" && AR_FLAGS=cru
2122
_LT_DECL([], [AR], [1], [The archiver])
2123
_LT_DECL([], [AR_FLAGS], [1])
2124
2125
AC_CHECK_TOOL(STRIP, strip, :)
2126
test -z "$STRIP" && STRIP=:
2127
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2128
2129
AC_CHECK_TOOL(RANLIB, ranlib, :)
2130
test -z "$RANLIB" && RANLIB=:
2131
_LT_DECL([], [RANLIB], [1],
2132
    [Commands used to install an old-style archive])
2133
2134
# Determine commands to create old-style static archives.
2135
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2136
old_postinstall_cmds='chmod 644 $oldlib'
2137
old_postuninstall_cmds=
2138
2139
if test -n "$RANLIB"; then
2140
  case $host_os in
2141
  openbsd*)
2142
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2143
    ;;
2144
  *)
2145
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2146
    ;;
2147
  esac
2148
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2149
fi
2150
_LT_DECL([], [old_postinstall_cmds], [2])
2151
_LT_DECL([], [old_postuninstall_cmds], [2])
2152
_LT_TAGDECL([], [old_archive_cmds], [2],
2153
    [Commands used to build an old-style archive])
2154
])# _LT_CMD_OLD_ARCHIVE
2155
2156
2157
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1 by Brandon Hale
Import upstream version 0.2.0
2158
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2159
# ----------------------------------------------------------------
2160
# Check whether the given compiler option works
1.1.49 by Jo Shields
Import upstream version 0.15.0
2161
AC_DEFUN([_LT_COMPILER_OPTION],
2162
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2163
m4_require([_LT_DECL_SED])dnl
1 by Brandon Hale
Import upstream version 0.2.0
2164
AC_CACHE_CHECK([$1], [$2],
2165
  [$2=no
1.1.49 by Jo Shields
Import upstream version 0.15.0
2166
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2167
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Brandon Hale
Import upstream version 0.2.0
2168
   lt_compiler_flag="$3"
2169
   # Insert the option either (1) after the last *FLAGS variable, or
2170
   # (2) before a word containing "conftest.", or (3) at the end.
2171
   # Note that $ac_compile itself does not contain backslashes and begins
2172
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2173
   # The option is referenced via a variable to avoid confusing sed.
2174
   lt_compile=`echo "$ac_compile" | $SED \
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2175
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Brandon Hale
Import upstream version 0.2.0
2176
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2177
   -e 's:$: $lt_compiler_flag:'`
2178
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2179
   (eval "$lt_compile" 2>conftest.err)
2180
   ac_status=$?
2181
   cat conftest.err >&AS_MESSAGE_LOG_FD
2182
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2183
   if (exit $ac_status) && test -s "$ac_outfile"; then
2184
     # The compiler can only warn and ignore the option if not recognized
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2185
     # So say no if there are warnings other than the usual output.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2186
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2187
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2188
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
2189
       $2=yes
2190
     fi
2191
   fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2192
   $RM conftest*
1 by Brandon Hale
Import upstream version 0.2.0
2193
])
2194
2195
if test x"[$]$2" = xyes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
2196
    m4_if([$5], , :, [$5])
1 by Brandon Hale
Import upstream version 0.2.0
2197
else
1.1.49 by Jo Shields
Import upstream version 0.15.0
2198
    m4_if([$6], , :, [$6])
1 by Brandon Hale
Import upstream version 0.2.0
2199
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2200
])# _LT_COMPILER_OPTION
2201
2202
# Old name:
2203
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2204
dnl aclocal-1.4 backwards compatibility:
2205
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2206
2207
2208
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2209
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2210
# ----------------------------------------------------
2211
# Check whether the given linker option works
2212
AC_DEFUN([_LT_LINKER_OPTION],
2213
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2214
m4_require([_LT_DECL_SED])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2215
AC_CACHE_CHECK([$1], [$2],
1 by Brandon Hale
Import upstream version 0.2.0
2216
  [$2=no
2217
   save_LDFLAGS="$LDFLAGS"
2218
   LDFLAGS="$LDFLAGS $3"
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2219
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1 by Brandon Hale
Import upstream version 0.2.0
2220
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2221
     # The linker can only warn and ignore the option if not recognized
1 by Brandon Hale
Import upstream version 0.2.0
2222
     # So say no if there are warnings
2223
     if test -s conftest.err; then
2224
       # Append any errors to the config.log.
2225
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1.1.49 by Jo Shields
Import upstream version 0.15.0
2226
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2227
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2228
       if diff conftest.exp conftest.er2 >/dev/null; then
2229
         $2=yes
2230
       fi
1 by Brandon Hale
Import upstream version 0.2.0
2231
     else
2232
       $2=yes
2233
     fi
2234
   fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2235
   $RM -r conftest*
1 by Brandon Hale
Import upstream version 0.2.0
2236
   LDFLAGS="$save_LDFLAGS"
2237
])
2238
2239
if test x"[$]$2" = xyes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
2240
    m4_if([$4], , :, [$4])
1 by Brandon Hale
Import upstream version 0.2.0
2241
else
1.1.49 by Jo Shields
Import upstream version 0.15.0
2242
    m4_if([$5], , :, [$5])
1 by Brandon Hale
Import upstream version 0.2.0
2243
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2244
])# _LT_LINKER_OPTION
2245
2246
# Old name:
2247
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2248
dnl aclocal-1.4 backwards compatibility:
2249
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2250
2251
2252
# LT_CMD_MAX_LEN
2253
#---------------
2254
AC_DEFUN([LT_CMD_MAX_LEN],
2255
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2256
# find the maximum length of command line arguments
1 by Brandon Hale
Import upstream version 0.2.0
2257
AC_MSG_CHECKING([the maximum length of command line arguments])
2258
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2259
  i=0
2260
  teststring="ABCD"
2261
2262
  case $build_os in
2263
  msdosdjgpp*)
2264
    # On DJGPP, this test can blow up pretty badly due to problems in libc
2265
    # (any single argument exceeding 2000 bytes causes a buffer overrun
2266
    # during glob expansion).  Even if it were fixed, the result of this
2267
    # check would be larger than it should be.
2268
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
2269
    ;;
2270
2271
  gnu*)
2272
    # Under GNU Hurd, this test is not required because there is
2273
    # no limit to the length of command line arguments.
2274
    # Libtool will interpret -1 as no limit whatsoever
2275
    lt_cv_sys_max_cmd_len=-1;
2276
    ;;
2277
1.1.49 by Jo Shields
Import upstream version 0.15.0
2278
  cygwin* | mingw* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
2279
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2280
    # about 5 minutes as the teststring grows exponentially.
2281
    # Worse, since 9x/ME are not pre-emptively multitasking,
2282
    # you end up with a "frozen" computer, even though with patience
2283
    # the test eventually succeeds (with a max line length of 256k).
2284
    # Instead, let's just punt: use the minimum linelength reported by
2285
    # all of the supported platforms: 8192 (on NT/2K/XP).
2286
    lt_cv_sys_max_cmd_len=8192;
2287
    ;;
2288
2289
  amigaos*)
2290
    # On AmigaOS with pdksh, this test takes hours, literally.
2291
    # So we just punt and use a minimum line length of 8192.
2292
    lt_cv_sys_max_cmd_len=8192;
2293
    ;;
2294
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2295
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2296
    # This has been around since 386BSD, at least.  Likely further.
2297
    if test -x /sbin/sysctl; then
2298
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2299
    elif test -x /usr/sbin/sysctl; then
2300
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2301
    else
2302
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
2303
    fi
2304
    # And add a safety zone
2305
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2306
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2307
    ;;
2308
2309
  interix*)
2310
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
2311
    lt_cv_sys_max_cmd_len=196608
2312
    ;;
2313
2314
  osf*)
2315
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2316
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2317
    # nice to cause kernel panics so lets avoid the loop below.
2318
    # First set a reasonable default.
2319
    lt_cv_sys_max_cmd_len=16384
2320
    #
2321
    if test -x /sbin/sysconfig; then
2322
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2323
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
2324
      esac
2325
    fi
2326
    ;;
2327
  sco3.2v5*)
2328
    lt_cv_sys_max_cmd_len=102400
2329
    ;;
2330
  sysv5* | sco5v6* | sysv4.2uw2*)
2331
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2332
    if test -n "$kargmax"; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
2333
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2334
    else
2335
      lt_cv_sys_max_cmd_len=32768
2336
    fi
2337
    ;;
2338
  *)
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2339
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2340
    if test -n "$lt_cv_sys_max_cmd_len"; then
2341
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2342
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2343
    else
1.1.49 by Jo Shields
Import upstream version 0.15.0
2344
      # Make teststring a little bigger before we do anything with it.
2345
      # a 1K string should be a reasonable start.
2346
      for i in 1 2 3 4 5 6 7 8 ; do
2347
        teststring=$teststring$teststring
2348
      done
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2349
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1.1.49 by Jo Shields
Import upstream version 0.15.0
2350
      # If test is not a shell built-in, we'll probably end up computing a
2351
      # maximum length that is only half of the actual maximum length, but
2352
      # we can't tell.
2353
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2354
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2355
	      test $i != 17 # 1/2 MB should be enough
2356
      do
2357
        i=`expr $i + 1`
2358
        teststring=$teststring$teststring
2359
      done
1.1.49 by Jo Shields
Import upstream version 0.15.0
2360
      # Only check the string length outside the loop.
2361
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2362
      teststring=
1.1.49 by Jo Shields
Import upstream version 0.15.0
2363
      # Add a significant safety factor because C++ compilers can tack on
2364
      # massive amounts of additional arguments before passing them to the
2365
      # linker.  It appears as though 1/2 is a usable value.
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2366
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2367
    fi
1 by Brandon Hale
Import upstream version 0.2.0
2368
    ;;
2369
  esac
2370
])
2371
if test -n $lt_cv_sys_max_cmd_len ; then
2372
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2373
else
2374
  AC_MSG_RESULT(none)
2375
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2376
max_cmd_len=$lt_cv_sys_max_cmd_len
2377
_LT_DECL([], [max_cmd_len], [0],
2378
    [What is the maximum length of a command?])
2379
])# LT_CMD_MAX_LEN
2380
2381
# Old name:
2382
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2383
dnl aclocal-1.4 backwards compatibility:
2384
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2385
2386
2387
# _LT_HEADER_DLFCN
2388
# ----------------
2389
m4_defun([_LT_HEADER_DLFCN],
2390
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2391
])# _LT_HEADER_DLFCN
2392
2393
2394
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2395
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2396
# ----------------------------------------------------------------
2397
m4_defun([_LT_TRY_DLOPEN_SELF],
2398
[m4_require([_LT_HEADER_DLFCN])dnl
1 by Brandon Hale
Import upstream version 0.2.0
2399
if test "$cross_compiling" = yes; then :
2400
  [$4]
2401
else
2402
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2403
  lt_status=$lt_dlunknown
1.1.49 by Jo Shields
Import upstream version 0.15.0
2404
  cat > conftest.$ac_ext <<_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
2405
[#line __oline__ "configure"
2406
#include "confdefs.h"
2407
2408
#if HAVE_DLFCN_H
2409
#include <dlfcn.h>
2410
#endif
2411
2412
#include <stdio.h>
2413
2414
#ifdef RTLD_GLOBAL
2415
#  define LT_DLGLOBAL		RTLD_GLOBAL
2416
#else
2417
#  ifdef DL_GLOBAL
2418
#    define LT_DLGLOBAL		DL_GLOBAL
2419
#  else
2420
#    define LT_DLGLOBAL		0
2421
#  endif
2422
#endif
2423
2424
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2425
   find out it does not work in some platform. */
2426
#ifndef LT_DLLAZY_OR_NOW
2427
#  ifdef RTLD_LAZY
2428
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
2429
#  else
2430
#    ifdef DL_LAZY
2431
#      define LT_DLLAZY_OR_NOW		DL_LAZY
2432
#    else
2433
#      ifdef RTLD_NOW
2434
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
2435
#      else
2436
#        ifdef DL_NOW
2437
#          define LT_DLLAZY_OR_NOW	DL_NOW
2438
#        else
2439
#          define LT_DLLAZY_OR_NOW	0
2440
#        endif
2441
#      endif
2442
#    endif
2443
#  endif
2444
#endif
2445
2446
void fnord() { int i=42;}
2447
int main ()
2448
{
2449
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2450
  int status = $lt_dlunknown;
2451
2452
  if (self)
2453
    {
2454
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2455
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2456
      /* dlclose (self); */
2457
    }
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2458
  else
2459
    puts (dlerror ());
1 by Brandon Hale
Import upstream version 0.2.0
2460
1.1.49 by Jo Shields
Import upstream version 0.15.0
2461
  return status;
1 by Brandon Hale
Import upstream version 0.2.0
2462
}]
1.1.49 by Jo Shields
Import upstream version 0.15.0
2463
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
2464
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2465
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1 by Brandon Hale
Import upstream version 0.2.0
2466
    lt_status=$?
2467
    case x$lt_status in
2468
      x$lt_dlno_uscore) $1 ;;
2469
      x$lt_dlneed_uscore) $2 ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2470
      x$lt_dlunknown|x*) $3 ;;
1 by Brandon Hale
Import upstream version 0.2.0
2471
    esac
2472
  else :
2473
    # compilation failed
2474
    $3
2475
  fi
2476
fi
2477
rm -fr conftest*
1.1.49 by Jo Shields
Import upstream version 0.15.0
2478
])# _LT_TRY_DLOPEN_SELF
2479
2480
2481
# LT_SYS_DLOPEN_SELF
2482
# ------------------
2483
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2484
[m4_require([_LT_HEADER_DLFCN])dnl
1 by Brandon Hale
Import upstream version 0.2.0
2485
if test "x$enable_dlopen" != xyes; then
2486
  enable_dlopen=unknown
2487
  enable_dlopen_self=unknown
2488
  enable_dlopen_self_static=unknown
2489
else
2490
  lt_cv_dlopen=no
2491
  lt_cv_dlopen_libs=
2492
2493
  case $host_os in
2494
  beos*)
2495
    lt_cv_dlopen="load_add_on"
2496
    lt_cv_dlopen_libs=
2497
    lt_cv_dlopen_self=yes
2498
    ;;
2499
1.1.49 by Jo Shields
Import upstream version 0.15.0
2500
  mingw* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
2501
    lt_cv_dlopen="LoadLibrary"
2502
    lt_cv_dlopen_libs=
1.1.49 by Jo Shields
Import upstream version 0.15.0
2503
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
2504
2505
  cygwin*)
2506
    lt_cv_dlopen="dlopen"
2507
    lt_cv_dlopen_libs=
1.1.49 by Jo Shields
Import upstream version 0.15.0
2508
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
2509
2510
  darwin*)
2511
  # if libdl is installed we need to link against it
2512
    AC_CHECK_LIB([dl], [dlopen],
2513
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2514
    lt_cv_dlopen="dyld"
2515
    lt_cv_dlopen_libs=
2516
    lt_cv_dlopen_self=yes
2517
    ])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2518
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
2519
2520
  *)
2521
    AC_CHECK_FUNC([shl_load],
2522
	  [lt_cv_dlopen="shl_load"],
2523
      [AC_CHECK_LIB([dld], [shl_load],
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
2524
	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1 by Brandon Hale
Import upstream version 0.2.0
2525
	[AC_CHECK_FUNC([dlopen],
2526
	      [lt_cv_dlopen="dlopen"],
2527
	  [AC_CHECK_LIB([dl], [dlopen],
2528
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2529
	    [AC_CHECK_LIB([svld], [dlopen],
2530
		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2531
	      [AC_CHECK_LIB([dld], [dld_link],
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
2532
		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1 by Brandon Hale
Import upstream version 0.2.0
2533
	      ])
2534
	    ])
2535
	  ])
2536
	])
2537
      ])
2538
    ;;
2539
  esac
2540
2541
  if test "x$lt_cv_dlopen" != xno; then
2542
    enable_dlopen=yes
2543
  else
2544
    enable_dlopen=no
2545
  fi
2546
2547
  case $lt_cv_dlopen in
2548
  dlopen)
2549
    save_CPPFLAGS="$CPPFLAGS"
2550
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2551
2552
    save_LDFLAGS="$LDFLAGS"
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2553
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1 by Brandon Hale
Import upstream version 0.2.0
2554
2555
    save_LIBS="$LIBS"
2556
    LIBS="$lt_cv_dlopen_libs $LIBS"
2557
2558
    AC_CACHE_CHECK([whether a program can dlopen itself],
2559
	  lt_cv_dlopen_self, [dnl
1.1.49 by Jo Shields
Import upstream version 0.15.0
2560
	  _LT_TRY_DLOPEN_SELF(
1 by Brandon Hale
Import upstream version 0.2.0
2561
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2562
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2563
    ])
2564
2565
    if test "x$lt_cv_dlopen_self" = xyes; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2566
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1 by Brandon Hale
Import upstream version 0.2.0
2567
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1.1.49 by Jo Shields
Import upstream version 0.15.0
2568
	  lt_cv_dlopen_self_static, [dnl
2569
	  _LT_TRY_DLOPEN_SELF(
1 by Brandon Hale
Import upstream version 0.2.0
2570
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2571
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2572
      ])
2573
    fi
2574
2575
    CPPFLAGS="$save_CPPFLAGS"
2576
    LDFLAGS="$save_LDFLAGS"
2577
    LIBS="$save_LIBS"
2578
    ;;
2579
  esac
2580
2581
  case $lt_cv_dlopen_self in
2582
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2583
  *) enable_dlopen_self=unknown ;;
2584
  esac
2585
2586
  case $lt_cv_dlopen_self_static in
2587
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2588
  *) enable_dlopen_self_static=unknown ;;
2589
  esac
2590
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2591
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2592
	 [Whether dlopen is supported])
2593
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2594
	 [Whether dlopen of programs is supported])
2595
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2596
	 [Whether dlopen of statically linked programs is supported])
2597
])# LT_SYS_DLOPEN_SELF
2598
2599
# Old name:
2600
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2601
dnl aclocal-1.4 backwards compatibility:
2602
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2603
2604
2605
# _LT_COMPILER_C_O([TAGNAME])
2606
# ---------------------------
2607
# Check to see if options -c and -o are simultaneously supported by compiler.
2608
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2609
m4_defun([_LT_COMPILER_C_O],
2610
[m4_require([_LT_DECL_SED])dnl
2611
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2612
m4_require([_LT_TAG_COMPILER])dnl
1 by Brandon Hale
Import upstream version 0.2.0
2613
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1.1.49 by Jo Shields
Import upstream version 0.15.0
2614
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2615
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2616
   $RM -r conftest 2>/dev/null
1 by Brandon Hale
Import upstream version 0.2.0
2617
   mkdir conftest
2618
   cd conftest
2619
   mkdir out
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2620
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Brandon Hale
Import upstream version 0.2.0
2621
2622
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2623
   # Insert the option either (1) after the last *FLAGS variable, or
2624
   # (2) before a word containing "conftest.", or (3) at the end.
2625
   # Note that $ac_compile itself does not contain backslashes and begins
2626
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2627
   lt_compile=`echo "$ac_compile" | $SED \
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2628
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1 by Brandon Hale
Import upstream version 0.2.0
2629
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2630
   -e 's:$: $lt_compiler_flag:'`
2631
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2632
   (eval "$lt_compile" 2>out/conftest.err)
2633
   ac_status=$?
2634
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2635
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2636
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2637
   then
2638
     # The compiler can only warn and ignore the option if not recognized
2639
     # So say no if there are warnings
1.1.49 by Jo Shields
Import upstream version 0.15.0
2640
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2641
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2642
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
2643
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
2644
     fi
2645
   fi
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2646
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1.1.49 by Jo Shields
Import upstream version 0.15.0
2647
   $RM conftest*
1 by Brandon Hale
Import upstream version 0.2.0
2648
   # SGI C++ compiler will create directory out/ii_files/ for
2649
   # template instantiation
1.1.49 by Jo Shields
Import upstream version 0.15.0
2650
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2651
   $RM out/* && rmdir out
1 by Brandon Hale
Import upstream version 0.2.0
2652
   cd ..
1.1.49 by Jo Shields
Import upstream version 0.15.0
2653
   $RM -r conftest
2654
   $RM conftest*
1 by Brandon Hale
Import upstream version 0.2.0
2655
])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2656
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2657
	[Does compiler simultaneously support -c and -o options?])
2658
])# _LT_COMPILER_C_O
2659
2660
2661
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2662
# ----------------------------------
1 by Brandon Hale
Import upstream version 0.2.0
2663
# Check to see if we can do hard links to lock some files if needed
1.1.49 by Jo Shields
Import upstream version 0.15.0
2664
m4_defun([_LT_COMPILER_FILE_LOCKS],
2665
[m4_require([_LT_ENABLE_LOCK])dnl
2666
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2667
_LT_COMPILER_C_O([$1])
1 by Brandon Hale
Import upstream version 0.2.0
2668
2669
hard_links="nottested"
1.1.49 by Jo Shields
Import upstream version 0.15.0
2670
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1 by Brandon Hale
Import upstream version 0.2.0
2671
  # do not overwrite the value of need_locks provided by the user
2672
  AC_MSG_CHECKING([if we can lock with hard links])
2673
  hard_links=yes
1.1.49 by Jo Shields
Import upstream version 0.15.0
2674
  $RM conftest*
1 by Brandon Hale
Import upstream version 0.2.0
2675
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2676
  touch conftest.a
2677
  ln conftest.a conftest.b 2>&5 || hard_links=no
2678
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2679
  AC_MSG_RESULT([$hard_links])
2680
  if test "$hard_links" = no; then
2681
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2682
    need_locks=warn
2683
  fi
2684
else
2685
  need_locks=no
2686
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2687
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2688
])# _LT_COMPILER_FILE_LOCKS
2689
2690
2691
# _LT_CHECK_OBJDIR
2692
# ----------------
2693
m4_defun([_LT_CHECK_OBJDIR],
1 by Brandon Hale
Import upstream version 0.2.0
2694
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2695
[rm -f .libs 2>/dev/null
2696
mkdir .libs 2>/dev/null
2697
if test -d .libs; then
2698
  lt_cv_objdir=.libs
2699
else
2700
  # MS-DOS does not allow filenames that begin with a dot.
2701
  lt_cv_objdir=_libs
2702
fi
2703
rmdir .libs 2>/dev/null])
2704
objdir=$lt_cv_objdir
1.1.49 by Jo Shields
Import upstream version 0.15.0
2705
_LT_DECL([], [objdir], [0],
2706
         [The name of the directory that contains temporary libtool files])dnl
2707
m4_pattern_allow([LT_OBJDIR])dnl
2708
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2709
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2710
])# _LT_CHECK_OBJDIR
2711
2712
2713
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2714
# --------------------------------------
1 by Brandon Hale
Import upstream version 0.2.0
2715
# Check hardcoding attributes.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2716
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1 by Brandon Hale
Import upstream version 0.2.0
2717
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2718
_LT_TAGVAR(hardcode_action, $1)=
2719
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2720
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2721
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1 by Brandon Hale
Import upstream version 0.2.0
2722
1.1.49 by Jo Shields
Import upstream version 0.15.0
2723
  # We can hardcode non-existent directories.
2724
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1 by Brandon Hale
Import upstream version 0.2.0
2725
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2726
     # have to relink, otherwise we might link with an installed library
2727
     # when we should be linking with a yet-to-be-installed one
1.1.49 by Jo Shields
Import upstream version 0.15.0
2728
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2729
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1 by Brandon Hale
Import upstream version 0.2.0
2730
    # Linking always hardcodes the temporary library directory.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2731
    _LT_TAGVAR(hardcode_action, $1)=relink
1 by Brandon Hale
Import upstream version 0.2.0
2732
  else
2733
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2734
    _LT_TAGVAR(hardcode_action, $1)=immediate
1 by Brandon Hale
Import upstream version 0.2.0
2735
  fi
2736
else
2737
  # We cannot hardcode anything, or else we can only hardcode existing
2738
  # directories.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2739
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1 by Brandon Hale
Import upstream version 0.2.0
2740
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2741
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1 by Brandon Hale
Import upstream version 0.2.0
2742
1.1.49 by Jo Shields
Import upstream version 0.15.0
2743
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2744
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1 by Brandon Hale
Import upstream version 0.2.0
2745
  # Fast installation is not supported
2746
  enable_fast_install=no
2747
elif test "$shlibpath_overrides_runpath" = yes ||
2748
     test "$enable_shared" = no; then
2749
  # Fast installation is not necessary
2750
  enable_fast_install=needless
2751
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2752
_LT_TAGDECL([], [hardcode_action], [0],
2753
    [How to hardcode a shared library path into an executable])
2754
])# _LT_LINKER_HARDCODE_LIBPATH
2755
2756
2757
# _LT_CMD_STRIPLIB
2758
# ----------------
2759
m4_defun([_LT_CMD_STRIPLIB],
2760
[m4_require([_LT_DECL_EGREP])
2761
striplib=
1 by Brandon Hale
Import upstream version 0.2.0
2762
old_striplib=
2763
AC_MSG_CHECKING([whether stripping libraries is possible])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2764
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
2765
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2766
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2767
  AC_MSG_RESULT([yes])
2768
else
2769
# FIXME - insert some real tests, host_os isn't really good enough
2770
  case $host_os in
1.1.49 by Jo Shields
Import upstream version 0.15.0
2771
  darwin*)
2772
    if test -n "$STRIP" ; then
2773
      striplib="$STRIP -x"
2774
      old_striplib="$STRIP -S"
2775
      AC_MSG_RESULT([yes])
2776
    else
2777
      AC_MSG_RESULT([no])
2778
    fi
2779
    ;;
2780
  *)
2781
    AC_MSG_RESULT([no])
1 by Brandon Hale
Import upstream version 0.2.0
2782
    ;;
2783
  esac
2784
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
2785
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2786
_LT_DECL([], [striplib], [1])
2787
])# _LT_CMD_STRIPLIB
2788
2789
2790
# _LT_SYS_DYNAMIC_LINKER([TAG])
1 by Brandon Hale
Import upstream version 0.2.0
2791
# -----------------------------
2792
# PORTME Fill in your ld.so characteristics
1.1.49 by Jo Shields
Import upstream version 0.15.0
2793
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2794
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2795
m4_require([_LT_DECL_EGREP])dnl
2796
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2797
m4_require([_LT_DECL_OBJDUMP])dnl
2798
m4_require([_LT_DECL_SED])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2799
AC_MSG_CHECKING([dynamic linker characteristics])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2800
m4_if([$1],
2801
	[], [
1 by Brandon Hale
Import upstream version 0.2.0
2802
if test "$GCC" = yes; then
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2803
  case $host_os in
2804
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2805
    *) lt_awk_arg="/^libraries:/" ;;
2806
  esac
2807
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.1.49 by Jo Shields
Import upstream version 0.15.0
2808
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1 by Brandon Hale
Import upstream version 0.2.0
2809
    # if the path contains ";" then we assume it to be the separator
2810
    # otherwise default to the standard path separator (i.e. ":") - it is
2811
    # assumed that no part of a normal pathname contains ";" but that should
2812
    # okay in the real world where ";" in dirpaths is itself problematic.
1.1.49 by Jo Shields
Import upstream version 0.15.0
2813
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1 by Brandon Hale
Import upstream version 0.2.0
2814
  else
1.1.49 by Jo Shields
Import upstream version 0.15.0
2815
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Brandon Hale
Import upstream version 0.2.0
2816
  fi
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2817
  # Ok, now we have the path, separated by spaces, we can step through it
2818
  # and add multilib dir if necessary.
2819
  lt_tmp_lt_search_path_spec=
2820
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2821
  for lt_sys_path in $lt_search_path_spec; do
2822
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2823
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2824
    else
2825
      test -d "$lt_sys_path" && \
2826
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2827
    fi
2828
  done
1.1.49 by Jo Shields
Import upstream version 0.15.0
2829
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2830
BEGIN {RS=" "; FS="/|\n";} {
2831
  lt_foo="";
2832
  lt_count=0;
2833
  for (lt_i = NF; lt_i > 0; lt_i--) {
2834
    if ($lt_i != "" && $lt_i != ".") {
2835
      if ($lt_i == "..") {
2836
        lt_count++;
2837
      } else {
2838
        if (lt_count == 0) {
2839
          lt_foo="/" $lt_i lt_foo;
2840
        } else {
2841
          lt_count--;
2842
        }
2843
      }
2844
    }
2845
  }
2846
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2847
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2848
}'`
1.1.49 by Jo Shields
Import upstream version 0.15.0
2849
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1 by Brandon Hale
Import upstream version 0.2.0
2850
else
2851
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
2852
fi])
1.1.49 by Jo Shields
Import upstream version 0.15.0
2853
library_names_spec=
2854
libname_spec='lib$name'
2855
soname_spec=
2856
shrext_cmds=".so"
2857
postinstall_cmds=
2858
postuninstall_cmds=
2859
finish_cmds=
2860
finish_eval=
2861
shlibpath_var=
2862
shlibpath_overrides_runpath=unknown
2863
version_type=none
2864
dynamic_linker="$host_os ld.so"
2865
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1 by Brandon Hale
Import upstream version 0.2.0
2866
need_lib_prefix=unknown
2867
hardcode_into_libs=no
2868
2869
# when you set need_version to no, make sure it does not cause -set_version
2870
# flags to be left without arguments
2871
need_version=unknown
2872
2873
case $host_os in
2874
aix3*)
2875
  version_type=linux
2876
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2877
  shlibpath_var=LIBPATH
2878
2879
  # AIX 3 has no versioning support, so we append a major version to the name.
2880
  soname_spec='${libname}${release}${shared_ext}$major'
2881
  ;;
2882
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
2883
aix[[4-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
2884
  version_type=linux
2885
  need_lib_prefix=no
2886
  need_version=no
2887
  hardcode_into_libs=yes
2888
  if test "$host_cpu" = ia64; then
2889
    # AIX 5 supports IA64
2890
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2891
    shlibpath_var=LD_LIBRARY_PATH
2892
  else
2893
    # With GCC up to 2.95.x, collect2 would create an import file
2894
    # for dependence libraries.  The import file would start with
2895
    # the line `#! .'.  This would cause the generated library to
2896
    # depend on `.', always an invalid library.  This was fixed in
2897
    # development snapshots of GCC prior to 3.0.
2898
    case $host_os in
2899
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2900
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2901
	   echo ' yes '
1.1.49 by Jo Shields
Import upstream version 0.15.0
2902
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
2903
	:
2904
      else
2905
	can_build_shared=no
2906
      fi
2907
      ;;
2908
    esac
2909
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2910
    # soname into executable. Probably we can add versioning support to
2911
    # collect2, so additional links can be useful in future.
2912
    if test "$aix_use_runtimelinking" = yes; then
2913
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2914
      # instead of lib<name>.a to let people know that these are not
2915
      # typical AIX shared libraries.
2916
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2917
    else
2918
      # We preserve .a as extension for shared libraries through AIX4.2
2919
      # and later when we are not doing run time linking.
2920
      library_names_spec='${libname}${release}.a $libname.a'
2921
      soname_spec='${libname}${release}${shared_ext}$major'
2922
    fi
2923
    shlibpath_var=LIBPATH
2924
  fi
2925
  ;;
2926
2927
amigaos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
2928
  case $host_cpu in
2929
  powerpc)
2930
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2931
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2932
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2933
    ;;
2934
  m68k)
2935
    library_names_spec='$libname.ixlibrary $libname.a'
2936
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2937
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2938
    ;;
2939
  esac
1 by Brandon Hale
Import upstream version 0.2.0
2940
  ;;
2941
2942
beos*)
2943
  library_names_spec='${libname}${shared_ext}'
2944
  dynamic_linker="$host_os ld.so"
2945
  shlibpath_var=LIBRARY_PATH
2946
  ;;
2947
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2948
bsdi[[45]]*)
1 by Brandon Hale
Import upstream version 0.2.0
2949
  version_type=linux
2950
  need_version=no
2951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2952
  soname_spec='${libname}${release}${shared_ext}$major'
2953
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2954
  shlibpath_var=LD_LIBRARY_PATH
2955
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2956
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2957
  # the default ld.so.conf also contains /usr/contrib/lib and
2958
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2959
  # libtool to hard-code these into programs
2960
  ;;
2961
1.1.49 by Jo Shields
Import upstream version 0.15.0
2962
cygwin* | mingw* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
2963
  version_type=windows
2964
  shrext_cmds=".dll"
2965
  need_version=no
2966
  need_lib_prefix=no
2967
2968
  case $GCC,$host_os in
1.1.49 by Jo Shields
Import upstream version 0.15.0
2969
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
2970
    library_names_spec='$libname.dll.a'
2971
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2972
    postinstall_cmds='base_file=`basename \${file}`~
1.1.49 by Jo Shields
Import upstream version 0.15.0
2973
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1 by Brandon Hale
Import upstream version 0.2.0
2974
      dldir=$destdir/`dirname \$dlpath`~
2975
      test -d \$dldir || mkdir -p \$dldir~
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
2976
      $install_prog $dir/$dlname \$dldir/$dlname~
1.1.49 by Jo Shields
Import upstream version 0.15.0
2977
      chmod a+x \$dldir/$dlname~
2978
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2979
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2980
      fi'
1 by Brandon Hale
Import upstream version 0.2.0
2981
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2982
      dlpath=$dir/\$dldll~
1.1.49 by Jo Shields
Import upstream version 0.15.0
2983
       $RM \$dlpath'
1 by Brandon Hale
Import upstream version 0.2.0
2984
    shlibpath_overrides_runpath=yes
2985
2986
    case $host_os in
2987
    cygwin*)
2988
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2989
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2990
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2991
      ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
2992
    mingw* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
2993
      # MinGW DLLs use traditional 'lib' prefix
2994
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1.1.49 by Jo Shields
Import upstream version 0.15.0
2995
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2996
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1 by Brandon Hale
Import upstream version 0.2.0
2997
        # It is most probably a Windows format PATH printed by
2998
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2999
        # path with ; separators, and with drive letters. We can handle the
3000
        # drive letters (cygwin fileutils understands them), so leave them,
3001
        # especially as we might pass files found there to a mingw objdump,
3002
        # which wouldn't understand a cygwinified path. Ahh.
1.1.49 by Jo Shields
Import upstream version 0.15.0
3003
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1 by Brandon Hale
Import upstream version 0.2.0
3004
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
3005
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1 by Brandon Hale
Import upstream version 0.2.0
3006
      fi
3007
      ;;
3008
    pw32*)
3009
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3010
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1 by Brandon Hale
Import upstream version 0.2.0
3011
      ;;
3012
    esac
3013
    ;;
3014
3015
  *)
3016
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3017
    ;;
3018
  esac
3019
  dynamic_linker='Win32 ld.exe'
3020
  # FIXME: first we should search . and the directory the executable is in
3021
  shlibpath_var=PATH
3022
  ;;
3023
3024
darwin* | rhapsody*)
3025
  dynamic_linker="$host_os dyld"
3026
  version_type=darwin
3027
  need_lib_prefix=no
3028
  need_version=no
1.1.49 by Jo Shields
Import upstream version 0.15.0
3029
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1 by Brandon Hale
Import upstream version 0.2.0
3030
  soname_spec='${libname}${release}${major}$shared_ext'
3031
  shlibpath_overrides_runpath=yes
3032
  shlibpath_var=DYLD_LIBRARY_PATH
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3033
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1.49 by Jo Shields
Import upstream version 0.15.0
3034
m4_if([$1], [],[
3035
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1 by Brandon Hale
Import upstream version 0.2.0
3036
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3037
  ;;
3038
3039
dgux*)
3040
  version_type=linux
3041
  need_lib_prefix=no
3042
  need_version=no
3043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3044
  soname_spec='${libname}${release}${shared_ext}$major'
3045
  shlibpath_var=LD_LIBRARY_PATH
3046
  ;;
3047
3048
freebsd1*)
3049
  dynamic_linker=no
3050
  ;;
3051
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3052
freebsd* | dragonfly*)
3053
  # DragonFly does not have aout.  When/if they implement a new
3054
  # versioning mechanism, adjust this.
3055
  if test -x /usr/bin/objformat; then
3056
    objformat=`/usr/bin/objformat`
3057
  else
3058
    case $host_os in
3059
    freebsd[[123]]*) objformat=aout ;;
3060
    *) objformat=elf ;;
3061
    esac
3062
  fi
1 by Brandon Hale
Import upstream version 0.2.0
3063
  version_type=freebsd-$objformat
3064
  case $version_type in
3065
    freebsd-elf*)
3066
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3067
      need_version=no
3068
      need_lib_prefix=no
3069
      ;;
3070
    freebsd-*)
3071
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3072
      need_version=yes
3073
      ;;
3074
  esac
3075
  shlibpath_var=LD_LIBRARY_PATH
3076
  case $host_os in
3077
  freebsd2*)
3078
    shlibpath_overrides_runpath=yes
3079
    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3080
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1 by Brandon Hale
Import upstream version 0.2.0
3081
    shlibpath_overrides_runpath=yes
3082
    hardcode_into_libs=yes
3083
    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3084
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3085
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1 by Brandon Hale
Import upstream version 0.2.0
3086
    shlibpath_overrides_runpath=no
3087
    hardcode_into_libs=yes
3088
    ;;
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3089
  *) # from 4.6 on, and DragonFly
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3090
    shlibpath_overrides_runpath=yes
3091
    hardcode_into_libs=yes
3092
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
3093
  esac
3094
  ;;
3095
3096
gnu*)
3097
  version_type=linux
3098
  need_lib_prefix=no
3099
  need_version=no
3100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3101
  soname_spec='${libname}${release}${shared_ext}$major'
3102
  shlibpath_var=LD_LIBRARY_PATH
3103
  hardcode_into_libs=yes
3104
  ;;
3105
3106
hpux9* | hpux10* | hpux11*)
3107
  # Give a soname corresponding to the major version so that dld.sl refuses to
3108
  # link against other versions.
3109
  version_type=sunos
3110
  need_lib_prefix=no
3111
  need_version=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3112
  case $host_cpu in
1 by Brandon Hale
Import upstream version 0.2.0
3113
  ia64*)
3114
    shrext_cmds='.so'
3115
    hardcode_into_libs=yes
3116
    dynamic_linker="$host_os dld.so"
3117
    shlibpath_var=LD_LIBRARY_PATH
3118
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3119
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3120
    soname_spec='${libname}${release}${shared_ext}$major'
3121
    if test "X$HPUX_IA64_MODE" = X32; then
3122
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3123
    else
3124
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3125
    fi
3126
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3127
    ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
3128
  hppa*64*)
3129
    shrext_cmds='.sl'
3130
    hardcode_into_libs=yes
3131
    dynamic_linker="$host_os dld.sl"
3132
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3133
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3134
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3135
    soname_spec='${libname}${release}${shared_ext}$major'
3136
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3137
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3138
    ;;
3139
  *)
1 by Brandon Hale
Import upstream version 0.2.0
3140
    shrext_cmds='.sl'
3141
    dynamic_linker="$host_os dld.sl"
3142
    shlibpath_var=SHLIB_PATH
3143
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3144
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3145
    soname_spec='${libname}${release}${shared_ext}$major'
3146
    ;;
3147
  esac
3148
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3149
  postinstall_cmds='chmod 555 $lib'
3150
  ;;
3151
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3152
interix[[3-9]]*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3153
  version_type=linux
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
  soname_spec='${libname}${release}${shared_ext}$major'
3158
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3159
  shlibpath_var=LD_LIBRARY_PATH
3160
  shlibpath_overrides_runpath=no
3161
  hardcode_into_libs=yes
3162
  ;;
3163
1 by Brandon Hale
Import upstream version 0.2.0
3164
irix5* | irix6* | nonstopux*)
3165
  case $host_os in
3166
    nonstopux*) version_type=nonstopux ;;
3167
    *)
3168
	if test "$lt_cv_prog_gnu_ld" = yes; then
3169
		version_type=linux
3170
	else
3171
		version_type=irix
3172
	fi ;;
3173
  esac
3174
  need_lib_prefix=no
3175
  need_version=no
3176
  soname_spec='${libname}${release}${shared_ext}$major'
3177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3178
  case $host_os in
3179
  irix5* | nonstopux*)
3180
    libsuff= shlibsuff=
3181
    ;;
3182
  *)
3183
    case $LD in # libtool.m4 will add one of these switches to LD
3184
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3185
      libsuff= shlibsuff= libmagic=32-bit;;
3186
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3187
      libsuff=32 shlibsuff=N32 libmagic=N32;;
3188
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3189
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
3190
    *) libsuff= shlibsuff= libmagic=never-match;;
3191
    esac
3192
    ;;
3193
  esac
3194
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3195
  shlibpath_overrides_runpath=no
3196
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3197
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3198
  hardcode_into_libs=yes
3199
  ;;
3200
3201
# No shared lib support for Linux oldld, aout, or coff.
3202
linux*oldld* | linux*aout* | linux*coff*)
3203
  dynamic_linker=no
3204
  ;;
3205
3206
# This must be Linux ELF.
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
3207
linux* | k*bsd*-gnu)
1 by Brandon Hale
Import upstream version 0.2.0
3208
  version_type=linux
3209
  need_lib_prefix=no
3210
  need_version=no
3211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3212
  soname_spec='${libname}${release}${shared_ext}$major'
3213
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3214
  shlibpath_var=LD_LIBRARY_PATH
3215
  shlibpath_overrides_runpath=no
1.1.49 by Jo Shields
Import upstream version 0.15.0
3216
  # Some binutils ld are patched to set DT_RUNPATH
3217
  save_LDFLAGS=$LDFLAGS
3218
  save_libdir=$libdir
3219
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3220
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3221
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3222
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3223
       [shlibpath_overrides_runpath=yes])])
3224
  LDFLAGS=$save_LDFLAGS
3225
  libdir=$save_libdir
3226
1 by Brandon Hale
Import upstream version 0.2.0
3227
  # This implies no fast_install, which is unacceptable.
3228
  # Some rework will be needed to allow for fast_install
3229
  # before this can be enabled.
3230
  hardcode_into_libs=yes
3231
3232
  # Append ld.so.conf contents to the search path
3233
  if test -f /etc/ld.so.conf; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
3234
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1.33 by Pedro Fragoso
Import upstream version 0.9.6
3235
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1 by Brandon Hale
Import upstream version 0.2.0
3236
  fi
3237
3238
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3239
  # powerpc, because MkLinux only supported shared libraries with the
3240
  # GNU dynamic linker.  Since this was broken with cross compilers,
3241
  # most powerpc-linux boxes support dynamic linking these days and
3242
  # people can always --disable-shared, the test was removed, and we
3243
  # assume the GNU/Linux dynamic linker is in use.
3244
  dynamic_linker='GNU/Linux ld.so'
3245
  ;;
3246
3247
netbsd*)
3248
  version_type=sunos
3249
  need_lib_prefix=no
3250
  need_version=no
1.1.49 by Jo Shields
Import upstream version 0.15.0
3251
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
3252
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3253
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3254
    dynamic_linker='NetBSD (a.out) ld.so'
3255
  else
3256
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3257
    soname_spec='${libname}${release}${shared_ext}$major'
3258
    dynamic_linker='NetBSD ld.elf_so'
3259
  fi
3260
  shlibpath_var=LD_LIBRARY_PATH
3261
  shlibpath_overrides_runpath=yes
3262
  hardcode_into_libs=yes
3263
  ;;
3264
3265
newsos6)
3266
  version_type=linux
3267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3268
  shlibpath_var=LD_LIBRARY_PATH
3269
  shlibpath_overrides_runpath=yes
3270
  ;;
3271
1.1.49 by Jo Shields
Import upstream version 0.15.0
3272
*nto* | *qnx*)
3273
  version_type=qnx
1 by Brandon Hale
Import upstream version 0.2.0
3274
  need_lib_prefix=no
3275
  need_version=no
3276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3277
  soname_spec='${libname}${release}${shared_ext}$major'
3278
  shlibpath_var=LD_LIBRARY_PATH
1.1.49 by Jo Shields
Import upstream version 0.15.0
3279
  shlibpath_overrides_runpath=no
3280
  hardcode_into_libs=yes
3281
  dynamic_linker='ldqnx.so'
1 by Brandon Hale
Import upstream version 0.2.0
3282
  ;;
3283
3284
openbsd*)
3285
  version_type=sunos
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3286
  sys_lib_dlsearch_path_spec="/usr/lib"
1 by Brandon Hale
Import upstream version 0.2.0
3287
  need_lib_prefix=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3288
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3289
  case $host_os in
1.1.49 by Jo Shields
Import upstream version 0.15.0
3290
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
3291
    *)				need_version=no  ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3292
  esac
1 by Brandon Hale
Import upstream version 0.2.0
3293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3294
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3295
  shlibpath_var=LD_LIBRARY_PATH
1.1.49 by Jo Shields
Import upstream version 0.15.0
3296
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1 by Brandon Hale
Import upstream version 0.2.0
3297
    case $host_os in
3298
      openbsd2.[[89]] | openbsd2.[[89]].*)
3299
	shlibpath_overrides_runpath=no
3300
	;;
3301
      *)
3302
	shlibpath_overrides_runpath=yes
3303
	;;
3304
      esac
3305
  else
3306
    shlibpath_overrides_runpath=yes
3307
  fi
3308
  ;;
3309
3310
os2*)
3311
  libname_spec='$name'
3312
  shrext_cmds=".dll"
3313
  need_lib_prefix=no
3314
  library_names_spec='$libname${shared_ext} $libname.a'
3315
  dynamic_linker='OS/2 ld.exe'
3316
  shlibpath_var=LIBPATH
3317
  ;;
3318
3319
osf3* | osf4* | osf5*)
3320
  version_type=osf
3321
  need_lib_prefix=no
3322
  need_version=no
3323
  soname_spec='${libname}${release}${shared_ext}$major'
3324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3325
  shlibpath_var=LD_LIBRARY_PATH
3326
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3327
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3328
  ;;
3329
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3330
rdos*)
3331
  dynamic_linker=no
3332
  ;;
3333
1 by Brandon Hale
Import upstream version 0.2.0
3334
solaris*)
3335
  version_type=linux
3336
  need_lib_prefix=no
3337
  need_version=no
3338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3339
  soname_spec='${libname}${release}${shared_ext}$major'
3340
  shlibpath_var=LD_LIBRARY_PATH
3341
  shlibpath_overrides_runpath=yes
3342
  hardcode_into_libs=yes
3343
  # ldd complains unless libraries are executable
3344
  postinstall_cmds='chmod +x $lib'
3345
  ;;
3346
3347
sunos4*)
3348
  version_type=sunos
3349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3350
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3351
  shlibpath_var=LD_LIBRARY_PATH
3352
  shlibpath_overrides_runpath=yes
3353
  if test "$with_gnu_ld" = yes; then
3354
    need_lib_prefix=no
3355
  fi
3356
  need_version=yes
3357
  ;;
3358
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3359
sysv4 | sysv4.3*)
1 by Brandon Hale
Import upstream version 0.2.0
3360
  version_type=linux
3361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3362
  soname_spec='${libname}${release}${shared_ext}$major'
3363
  shlibpath_var=LD_LIBRARY_PATH
3364
  case $host_vendor in
3365
    sni)
3366
      shlibpath_overrides_runpath=no
3367
      need_lib_prefix=no
3368
      runpath_var=LD_RUN_PATH
3369
      ;;
3370
    siemens)
3371
      need_lib_prefix=no
3372
      ;;
3373
    motorola)
3374
      need_lib_prefix=no
3375
      need_version=no
3376
      shlibpath_overrides_runpath=no
3377
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3378
      ;;
3379
  esac
3380
  ;;
3381
3382
sysv4*MP*)
3383
  if test -d /usr/nec ;then
3384
    version_type=linux
3385
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3386
    soname_spec='$libname${shared_ext}.$major'
3387
    shlibpath_var=LD_LIBRARY_PATH
3388
  fi
3389
  ;;
3390
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3391
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3392
  version_type=freebsd-elf
3393
  need_lib_prefix=no
3394
  need_version=no
3395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3396
  soname_spec='${libname}${release}${shared_ext}$major'
3397
  shlibpath_var=LD_LIBRARY_PATH
1.1.49 by Jo Shields
Import upstream version 0.15.0
3398
  shlibpath_overrides_runpath=yes
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3399
  hardcode_into_libs=yes
3400
  if test "$with_gnu_ld" = yes; then
3401
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3402
  else
3403
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3404
    case $host_os in
3405
      sco3.2v5*)
3406
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3407
	;;
3408
    esac
3409
  fi
3410
  sys_lib_dlsearch_path_spec='/usr/lib'
3411
  ;;
3412
1.1.49 by Jo Shields
Import upstream version 0.15.0
3413
tpf*)
3414
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3415
  version_type=linux
3416
  need_lib_prefix=no
3417
  need_version=no
3418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3419
  shlibpath_var=LD_LIBRARY_PATH
3420
  shlibpath_overrides_runpath=no
3421
  hardcode_into_libs=yes
3422
  ;;
3423
1 by Brandon Hale
Import upstream version 0.2.0
3424
uts4*)
3425
  version_type=linux
3426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3427
  soname_spec='${libname}${release}${shared_ext}$major'
3428
  shlibpath_var=LD_LIBRARY_PATH
3429
  ;;
3430
3431
*)
3432
  dynamic_linker=no
3433
  ;;
3434
esac
3435
AC_MSG_RESULT([$dynamic_linker])
3436
test "$dynamic_linker" = no && can_build_shared=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3437
3438
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3439
if test "$GCC" = yes; then
3440
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3441
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
3442
3443
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3444
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3445
fi
3446
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3447
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3448
fi
3449
3450
_LT_DECL([], [variables_saved_for_relink], [1],
3451
    [Variables whose values should be saved in libtool wrapper scripts and
3452
    restored at link time])
3453
_LT_DECL([], [need_lib_prefix], [0],
3454
    [Do we need the "lib" prefix for modules?])
3455
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3456
_LT_DECL([], [version_type], [0], [Library versioning type])
3457
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3458
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3459
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3460
    [Is shlibpath searched before the hard-coded library search path?])
3461
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3462
_LT_DECL([], [library_names_spec], [1],
3463
    [[List of archive names.  First name is the real one, the rest are links.
3464
    The last name is the one that the linker finds with -lNAME]])
3465
_LT_DECL([], [soname_spec], [1],
3466
    [[The coded name of the library, if different from the real name]])
3467
_LT_DECL([], [postinstall_cmds], [2],
3468
    [Command to use after installation of a shared archive])
3469
_LT_DECL([], [postuninstall_cmds], [2],
3470
    [Command to use after uninstallation of a shared archive])
3471
_LT_DECL([], [finish_cmds], [2],
3472
    [Commands used to finish a libtool library installation in a directory])
3473
_LT_DECL([], [finish_eval], [1],
3474
    [[As "finish_cmds", except a single script fragment to be evaled but
3475
    not shown]])
3476
_LT_DECL([], [hardcode_into_libs], [0],
3477
    [Whether we should hardcode library paths into libraries])
3478
_LT_DECL([], [sys_lib_search_path_spec], [2],
3479
    [Compile-time system search path for libraries])
3480
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3481
    [Run-time system search path for libraries])
3482
])# _LT_SYS_DYNAMIC_LINKER
3483
3484
3485
# _LT_PATH_TOOL_PREFIX(TOOL)
1 by Brandon Hale
Import upstream version 0.2.0
3486
# --------------------------
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3487
# find a file program which can recognize shared library
1.1.49 by Jo Shields
Import upstream version 0.15.0
3488
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3489
[m4_require([_LT_DECL_EGREP])dnl
1 by Brandon Hale
Import upstream version 0.2.0
3490
AC_MSG_CHECKING([for $1])
3491
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3492
[case $MAGIC_CMD in
3493
[[\\/*] |  ?:[\\/]*])
3494
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3495
  ;;
3496
*)
3497
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3498
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3499
dnl $ac_dummy forces splitting on constant user-supplied paths.
3500
dnl POSIX.2 word splitting is done only on the output of word expansions,
3501
dnl not every word.  This closes a longstanding sh security hole.
1.1.49 by Jo Shields
Import upstream version 0.15.0
3502
  ac_dummy="m4_if([$2], , $PATH, [$2])"
1 by Brandon Hale
Import upstream version 0.2.0
3503
  for ac_dir in $ac_dummy; do
3504
    IFS="$lt_save_ifs"
3505
    test -z "$ac_dir" && ac_dir=.
3506
    if test -f $ac_dir/$1; then
3507
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3508
      if test -n "$file_magic_test_file"; then
3509
	case $deplibs_check_method in
3510
	"file_magic "*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3511
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1 by Brandon Hale
Import upstream version 0.2.0
3512
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3513
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3514
	    $EGREP "$file_magic_regex" > /dev/null; then
3515
	    :
3516
	  else
1.1.49 by Jo Shields
Import upstream version 0.15.0
3517
	    cat <<_LT_EOF 1>&2
1 by Brandon Hale
Import upstream version 0.2.0
3518
3519
*** Warning: the command libtool uses to detect shared libraries,
3520
*** $file_magic_cmd, produces output that libtool cannot recognize.
3521
*** The result is that libtool may fail to recognize shared libraries
3522
*** as such.  This will affect the creation of libtool libraries that
3523
*** depend on shared libraries, but programs linked with such libtool
3524
*** libraries will work regardless of this problem.  Nevertheless, you
3525
*** may want to report the problem to your system manager and/or to
3526
*** bug-libtool@gnu.org
3527
1.1.49 by Jo Shields
Import upstream version 0.15.0
3528
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
3529
	  fi ;;
3530
	esac
3531
      fi
3532
      break
3533
    fi
3534
  done
3535
  IFS="$lt_save_ifs"
3536
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3537
  ;;
3538
esac])
3539
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3540
if test -n "$MAGIC_CMD"; then
3541
  AC_MSG_RESULT($MAGIC_CMD)
3542
else
3543
  AC_MSG_RESULT(no)
3544
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
3545
_LT_DECL([], [MAGIC_CMD], [0],
3546
	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3547
])# _LT_PATH_TOOL_PREFIX
3548
3549
# Old name:
3550
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3551
dnl aclocal-1.4 backwards compatibility:
3552
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3553
3554
3555
# _LT_PATH_MAGIC
3556
# --------------
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3557
# find a file program which can recognize a shared library
1.1.49 by Jo Shields
Import upstream version 0.15.0
3558
m4_defun([_LT_PATH_MAGIC],
3559
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1 by Brandon Hale
Import upstream version 0.2.0
3560
if test -z "$lt_cv_path_MAGIC_CMD"; then
3561
  if test -n "$ac_tool_prefix"; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
3562
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1 by Brandon Hale
Import upstream version 0.2.0
3563
  else
3564
    MAGIC_CMD=:
3565
  fi
3566
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
3567
])# _LT_PATH_MAGIC
3568
3569
3570
# LT_PATH_LD
1 by Brandon Hale
Import upstream version 0.2.0
3571
# ----------
3572
# find the pathname to the GNU or non-GNU linker
1.1.49 by Jo Shields
Import upstream version 0.15.0
3573
AC_DEFUN([LT_PATH_LD],
3574
[AC_REQUIRE([AC_PROG_CC])dnl
3575
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3576
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3577
m4_require([_LT_DECL_SED])dnl
3578
m4_require([_LT_DECL_EGREP])dnl
3579
3580
AC_ARG_WITH([gnu-ld],
3581
    [AS_HELP_STRING([--with-gnu-ld],
1 by Brandon Hale
Import upstream version 0.2.0
3582
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3583
    [test "$withval" = no || with_gnu_ld=yes],
1.1.49 by Jo Shields
Import upstream version 0.15.0
3584
    [with_gnu_ld=no])dnl
3585
1 by Brandon Hale
Import upstream version 0.2.0
3586
ac_prog=ld
3587
if test "$GCC" = yes; then
3588
  # Check if gcc -print-prog-name=ld gives a path.
3589
  AC_MSG_CHECKING([for ld used by $CC])
3590
  case $host in
3591
  *-*-mingw*)
3592
    # gcc leaves a trailing carriage return which upsets mingw
3593
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3594
  *)
3595
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3596
  esac
3597
  case $ac_prog in
3598
    # Accept absolute paths.
3599
    [[\\/]]* | ?:[[\\/]]*)
3600
      re_direlt='/[[^/]][[^/]]*/\.\./'
3601
      # Canonicalize the pathname of ld
1.1.49 by Jo Shields
Import upstream version 0.15.0
3602
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3603
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3604
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Brandon Hale
Import upstream version 0.2.0
3605
      done
3606
      test -z "$LD" && LD="$ac_prog"
3607
      ;;
3608
  "")
3609
    # If it fails, then pretend we aren't using GCC.
3610
    ac_prog=ld
3611
    ;;
3612
  *)
3613
    # If it is relative, then search for the first ld in PATH.
3614
    with_gnu_ld=unknown
3615
    ;;
3616
  esac
3617
elif test "$with_gnu_ld" = yes; then
3618
  AC_MSG_CHECKING([for GNU ld])
3619
else
3620
  AC_MSG_CHECKING([for non-GNU ld])
3621
fi
3622
AC_CACHE_VAL(lt_cv_path_LD,
3623
[if test -z "$LD"; then
3624
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3625
  for ac_dir in $PATH; do
3626
    IFS="$lt_save_ifs"
3627
    test -z "$ac_dir" && ac_dir=.
3628
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3629
      lt_cv_path_LD="$ac_dir/$ac_prog"
3630
      # Check to see if the program is GNU ld.  I'd rather use --version,
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3631
      # but apparently some variants of GNU ld only accept -v.
1 by Brandon Hale
Import upstream version 0.2.0
3632
      # Break only if it was the GNU/non-GNU ld that we prefer.
3633
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3634
      *GNU* | *'with BFD'*)
3635
	test "$with_gnu_ld" != no && break
3636
	;;
3637
      *)
3638
	test "$with_gnu_ld" != yes && break
3639
	;;
3640
      esac
3641
    fi
3642
  done
3643
  IFS="$lt_save_ifs"
3644
else
3645
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3646
fi])
3647
LD="$lt_cv_path_LD"
3648
if test -n "$LD"; then
3649
  AC_MSG_RESULT($LD)
3650
else
3651
  AC_MSG_RESULT(no)
3652
fi
3653
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1.1.49 by Jo Shields
Import upstream version 0.15.0
3654
_LT_PATH_LD_GNU
3655
AC_SUBST([LD])
3656
3657
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3658
])# LT_PATH_LD
3659
3660
# Old names:
3661
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3662
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3663
dnl aclocal-1.4 backwards compatibility:
3664
dnl AC_DEFUN([AM_PROG_LD], [])
3665
dnl AC_DEFUN([AC_PROG_LD], [])
3666
3667
3668
# _LT_PATH_LD_GNU
3669
#- --------------
3670
m4_defun([_LT_PATH_LD_GNU],
3671
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3672
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1 by Brandon Hale
Import upstream version 0.2.0
3673
case `$LD -v 2>&1 </dev/null` in
3674
*GNU* | *'with BFD'*)
3675
  lt_cv_prog_gnu_ld=yes
3676
  ;;
3677
*)
3678
  lt_cv_prog_gnu_ld=no
3679
  ;;
3680
esac])
3681
with_gnu_ld=$lt_cv_prog_gnu_ld
1.1.49 by Jo Shields
Import upstream version 0.15.0
3682
])# _LT_PATH_LD_GNU
3683
3684
3685
# _LT_CMD_RELOAD
3686
# --------------
1 by Brandon Hale
Import upstream version 0.2.0
3687
# find reload flag for linker
3688
#   -- PORTME Some linkers may need a different reload flag.
1.1.49 by Jo Shields
Import upstream version 0.15.0
3689
m4_defun([_LT_CMD_RELOAD],
1 by Brandon Hale
Import upstream version 0.2.0
3690
[AC_CACHE_CHECK([for $LD option to reload object files],
3691
  lt_cv_ld_reload_flag,
3692
  [lt_cv_ld_reload_flag='-r'])
3693
reload_flag=$lt_cv_ld_reload_flag
3694
case $reload_flag in
3695
"" | " "*) ;;
3696
*) reload_flag=" $reload_flag" ;;
3697
esac
3698
reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3699
case $host_os in
3700
  darwin*)
3701
    if test "$GCC" = yes; then
3702
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3703
    else
3704
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3705
    fi
3706
    ;;
3707
esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
3708
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3709
_LT_DECL([], [reload_cmds], [2])dnl
3710
])# _LT_CMD_RELOAD
3711
3712
3713
# _LT_CHECK_MAGIC_METHOD
3714
# ----------------------
1 by Brandon Hale
Import upstream version 0.2.0
3715
# how to check for library dependencies
3716
#  -- PORTME fill in with the dynamic library characteristics
1.1.49 by Jo Shields
Import upstream version 0.15.0
3717
m4_defun([_LT_CHECK_MAGIC_METHOD],
3718
[m4_require([_LT_DECL_EGREP])
3719
m4_require([_LT_DECL_OBJDUMP])
3720
AC_CACHE_CHECK([how to recognize dependent libraries],
1 by Brandon Hale
Import upstream version 0.2.0
3721
lt_cv_deplibs_check_method,
3722
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3723
lt_cv_file_magic_test_file=
3724
lt_cv_deplibs_check_method='unknown'
3725
# Need to set the preceding variable on all platforms that support
3726
# interlibrary dependencies.
3727
# 'none' -- dependencies not supported.
3728
# `unknown' -- same as none, but documents that we really don't know.
3729
# 'pass_all' -- all dependencies passed with no checks.
3730
# 'test_compile' -- check by making test program.
3731
# 'file_magic [[regex]]' -- check by looking for files in library path
3732
# which responds to the $file_magic_cmd with a given extended regex.
3733
# If you have `file' or equivalent on your system and you're not sure
3734
# whether `pass_all' will *always* work, you probably want this one.
3735
3736
case $host_os in
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
3737
aix[[4-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
3738
  lt_cv_deplibs_check_method=pass_all
3739
  ;;
3740
3741
beos*)
3742
  lt_cv_deplibs_check_method=pass_all
3743
  ;;
3744
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3745
bsdi[[45]]*)
1 by Brandon Hale
Import upstream version 0.2.0
3746
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3747
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3748
  lt_cv_file_magic_test_file=/shlib/libc.so
3749
  ;;
3750
3751
cygwin*)
3752
  # func_win32_libid is a shell function defined in ltmain.sh
3753
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3754
  lt_cv_file_magic_cmd='func_win32_libid'
3755
  ;;
3756
3757
mingw* | pw32*)
3758
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3759
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3760
  # unless we find 'file', for example because we are cross-compiling.
3761
  if ( file / ) >/dev/null 2>&1; then
3762
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3763
    lt_cv_file_magic_cmd='func_win32_libid'
3764
  else
3765
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3766
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3767
  fi
1 by Brandon Hale
Import upstream version 0.2.0
3768
  ;;
3769
1.1.49 by Jo Shields
Import upstream version 0.15.0
3770
cegcc)
3771
  # use the weaker test based on 'objdump'. See mingw*.
3772
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3773
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3774
  ;;
3775
1 by Brandon Hale
Import upstream version 0.2.0
3776
darwin* | rhapsody*)
3777
  lt_cv_deplibs_check_method=pass_all
3778
  ;;
3779
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
3780
freebsd* | dragonfly*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
3781
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
3782
    case $host_cpu in
3783
    i*86 )
3784
      # Not sure whether the presence of OpenBSD here was a mistake.
3785
      # Let's accept both of them until this is cleared up.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3786
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1 by Brandon Hale
Import upstream version 0.2.0
3787
      lt_cv_file_magic_cmd=/usr/bin/file
3788
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3789
      ;;
3790
    esac
3791
  else
3792
    lt_cv_deplibs_check_method=pass_all
3793
  fi
3794
  ;;
3795
3796
gnu*)
3797
  lt_cv_deplibs_check_method=pass_all
3798
  ;;
3799
3800
hpux10.20* | hpux11*)
3801
  lt_cv_file_magic_cmd=/usr/bin/file
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3802
  case $host_cpu in
1 by Brandon Hale
Import upstream version 0.2.0
3803
  ia64*)
3804
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3805
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3806
    ;;
3807
  hppa*64*)
3808
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3809
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3810
    ;;
3811
  *)
3812
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3813
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3814
    ;;
3815
  esac
3816
  ;;
3817
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3818
interix[[3-9]]*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3819
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3820
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3821
  ;;
3822
1 by Brandon Hale
Import upstream version 0.2.0
3823
irix5* | irix6* | nonstopux*)
3824
  case $LD in
3825
  *-32|*"-32 ") libmagic=32-bit;;
3826
  *-n32|*"-n32 ") libmagic=N32;;
3827
  *-64|*"-64 ") libmagic=64-bit;;
3828
  *) libmagic=never-match;;
3829
  esac
3830
  lt_cv_deplibs_check_method=pass_all
3831
  ;;
3832
3833
# This must be Linux ELF.
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
3834
linux* | k*bsd*-gnu)
1 by Brandon Hale
Import upstream version 0.2.0
3835
  lt_cv_deplibs_check_method=pass_all
3836
  ;;
3837
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3838
netbsd*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
3839
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1 by Brandon Hale
Import upstream version 0.2.0
3840
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3841
  else
3842
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3843
  fi
3844
  ;;
3845
3846
newos6*)
3847
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3848
  lt_cv_file_magic_cmd=/usr/bin/file
3849
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3850
  ;;
3851
1.1.49 by Jo Shields
Import upstream version 0.15.0
3852
*nto* | *qnx*)
3853
  lt_cv_deplibs_check_method=pass_all
1 by Brandon Hale
Import upstream version 0.2.0
3854
  ;;
3855
3856
openbsd*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
3857
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3858
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1 by Brandon Hale
Import upstream version 0.2.0
3859
  else
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3860
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1 by Brandon Hale
Import upstream version 0.2.0
3861
  fi
3862
  ;;
3863
3864
osf3* | osf4* | osf5*)
3865
  lt_cv_deplibs_check_method=pass_all
3866
  ;;
3867
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3868
rdos*)
3869
  lt_cv_deplibs_check_method=pass_all
3870
  ;;
3871
1 by Brandon Hale
Import upstream version 0.2.0
3872
solaris*)
3873
  lt_cv_deplibs_check_method=pass_all
3874
  ;;
3875
1.1.49 by Jo Shields
Import upstream version 0.15.0
3876
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3877
  lt_cv_deplibs_check_method=pass_all
3878
  ;;
3879
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3880
sysv4 | sysv4.3*)
1 by Brandon Hale
Import upstream version 0.2.0
3881
  case $host_vendor in
3882
  motorola)
3883
    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]]'
3884
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3885
    ;;
3886
  ncr)
3887
    lt_cv_deplibs_check_method=pass_all
3888
    ;;
3889
  sequent)
3890
    lt_cv_file_magic_cmd='/bin/file'
3891
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3892
    ;;
3893
  sni)
3894
    lt_cv_file_magic_cmd='/bin/file'
3895
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3896
    lt_cv_file_magic_test_file=/lib/libc.so
3897
    ;;
3898
  siemens)
3899
    lt_cv_deplibs_check_method=pass_all
3900
    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3901
  pc)
3902
    lt_cv_deplibs_check_method=pass_all
3903
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
3904
  esac
3905
  ;;
3906
1.1.49 by Jo Shields
Import upstream version 0.15.0
3907
tpf*)
1 by Brandon Hale
Import upstream version 0.2.0
3908
  lt_cv_deplibs_check_method=pass_all
3909
  ;;
3910
esac
3911
])
3912
file_magic_cmd=$lt_cv_file_magic_cmd
3913
deplibs_check_method=$lt_cv_deplibs_check_method
3914
test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.1.49 by Jo Shields
Import upstream version 0.15.0
3915
3916
_LT_DECL([], [deplibs_check_method], [1],
3917
    [Method to check whether dependent libraries are shared objects])
3918
_LT_DECL([], [file_magic_cmd], [1],
3919
    [Command to use when deplibs_check_method == "file_magic"])
3920
])# _LT_CHECK_MAGIC_METHOD
3921
3922
3923
# LT_PATH_NM
1 by Brandon Hale
Import upstream version 0.2.0
3924
# ----------
1.1.49 by Jo Shields
Import upstream version 0.15.0
3925
# find the pathname to a BSD- or MS-compatible name lister
3926
AC_DEFUN([LT_PATH_NM],
3927
[AC_REQUIRE([AC_PROG_CC])dnl
3928
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
1 by Brandon Hale
Import upstream version 0.2.0
3929
[if test -n "$NM"; then
3930
  # Let the user override the test.
3931
  lt_cv_path_NM="$NM"
3932
else
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3933
  lt_nm_to_check="${ac_tool_prefix}nm"
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
3934
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3935
    lt_nm_to_check="$lt_nm_to_check nm"
3936
  fi
3937
  for lt_tmp_nm in $lt_nm_to_check; do
3938
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3939
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3940
      IFS="$lt_save_ifs"
3941
      test -z "$ac_dir" && ac_dir=.
3942
      tmp_nm="$ac_dir/$lt_tmp_nm"
3943
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3944
	# Check to see if the nm accepts a BSD-compat flag.
3945
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3946
	#   nm: unknown option "B" ignored
3947
	# Tru64's nm complains that /dev/null is an invalid object file
3948
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3949
	*/dev/null* | *'Invalid file or object type'*)
3950
	  lt_cv_path_NM="$tmp_nm -B"
1 by Brandon Hale
Import upstream version 0.2.0
3951
	  break
3952
	  ;;
3953
	*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3954
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3955
	  */dev/null*)
3956
	    lt_cv_path_NM="$tmp_nm -p"
3957
	    break
3958
	    ;;
3959
	  *)
3960
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3961
	    continue # so that we can try to find one that supports BSD flags
3962
	    ;;
3963
	  esac
1 by Brandon Hale
Import upstream version 0.2.0
3964
	  ;;
3965
	esac
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
3966
      fi
3967
    done
3968
    IFS="$lt_save_ifs"
1 by Brandon Hale
Import upstream version 0.2.0
3969
  done
1.1.49 by Jo Shields
Import upstream version 0.15.0
3970
  : ${lt_cv_path_NM=no}
1 by Brandon Hale
Import upstream version 0.2.0
3971
fi])
1.1.49 by Jo Shields
Import upstream version 0.15.0
3972
if test "$lt_cv_path_NM" != "no"; then
3973
  NM="$lt_cv_path_NM"
3974
else
3975
  # Didn't find any BSD compatible name lister, look for dumpbin.
3976
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3977
  AC_SUBST([DUMPBIN])
3978
  if test "$DUMPBIN" != ":"; then
3979
    NM="$DUMPBIN"
3980
  fi
3981
fi
3982
test -z "$NM" && NM=nm
3983
AC_SUBST([NM])
3984
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3985
3986
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3987
  [lt_cv_nm_interface="BSD nm"
3988
  echo "int some_variable = 0;" > conftest.$ac_ext
3989
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3990
  (eval "$ac_compile" 2>conftest.err)
3991
  cat conftest.err >&AS_MESSAGE_LOG_FD
3992
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3993
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3994
  cat conftest.err >&AS_MESSAGE_LOG_FD
3995
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3996
  cat conftest.out >&AS_MESSAGE_LOG_FD
3997
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3998
    lt_cv_nm_interface="MS dumpbin"
3999
  fi
4000
  rm -f conftest*])
4001
])# LT_PATH_NM
4002
4003
# Old names:
4004
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4005
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4006
dnl aclocal-1.4 backwards compatibility:
4007
dnl AC_DEFUN([AM_PROG_NM], [])
4008
dnl AC_DEFUN([AC_PROG_NM], [])
4009
4010
4011
# LT_LIB_M
4012
# --------
1 by Brandon Hale
Import upstream version 0.2.0
4013
# check for math library
1.1.49 by Jo Shields
Import upstream version 0.15.0
4014
AC_DEFUN([LT_LIB_M],
1 by Brandon Hale
Import upstream version 0.2.0
4015
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4016
LIBM=
4017
case $host in
4018
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4019
  # These system don't have libm, or don't need it
4020
  ;;
4021
*-ncr-sysv4.3*)
4022
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4023
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4024
  ;;
4025
*)
4026
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4027
  ;;
4028
esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
4029
AC_SUBST([LIBM])
4030
])# LT_LIB_M
4031
4032
# Old name:
4033
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4034
dnl aclocal-1.4 backwards compatibility:
4035
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4036
4037
4038
# _LT_COMPILER_NO_RTTI([TAGNAME])
4039
# -------------------------------
4040
m4_defun([_LT_COMPILER_NO_RTTI],
4041
[m4_require([_LT_TAG_COMPILER])dnl
4042
4043
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
4044
4045
if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4046
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
1 by Brandon Hale
Import upstream version 0.2.0
4047
1.1.49 by Jo Shields
Import upstream version 0.15.0
4048
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
1 by Brandon Hale
Import upstream version 0.2.0
4049
    lt_cv_prog_compiler_rtti_exceptions,
4050
    [-fno-rtti -fno-exceptions], [],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4051
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
1 by Brandon Hale
Import upstream version 0.2.0
4052
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
4053
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4054
	[Compiler flag to turn off builtin functions])
4055
])# _LT_COMPILER_NO_RTTI
4056
4057
4058
# _LT_CMD_GLOBAL_SYMBOLS
4059
# ----------------------
4060
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4061
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4062
AC_REQUIRE([AC_PROG_CC])dnl
4063
AC_REQUIRE([LT_PATH_NM])dnl
4064
AC_REQUIRE([LT_PATH_LD])dnl
4065
m4_require([_LT_DECL_SED])dnl
4066
m4_require([_LT_DECL_EGREP])dnl
4067
m4_require([_LT_TAG_COMPILER])dnl
4068
1 by Brandon Hale
Import upstream version 0.2.0
4069
# Check for command to grab the raw symbol name followed by C symbol from nm.
4070
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4071
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4072
[
4073
# These are sane defaults that work on at least a few old systems.
4074
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4075
4076
# Character class describing NM global symbol codes.
4077
symcode='[[BCDEGRST]]'
4078
4079
# Regexp to match symbols that can be accessed directly from C.
4080
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4081
4082
# Define system-specific variables.
4083
case $host_os in
4084
aix*)
4085
  symcode='[[BCDT]]'
4086
  ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4087
cygwin* | mingw* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4088
  symcode='[[ABCDGISTW]]'
4089
  ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4090
hpux*)
1 by Brandon Hale
Import upstream version 0.2.0
4091
  if test "$host_cpu" = ia64; then
4092
    symcode='[[ABCDEGRST]]'
4093
  fi
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4094
  ;;
1 by Brandon Hale
Import upstream version 0.2.0
4095
irix* | nonstopux*)
4096
  symcode='[[BCDEGRST]]'
4097
  ;;
4098
osf*)
4099
  symcode='[[BCDEGQRST]]'
4100
  ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4101
solaris*)
1 by Brandon Hale
Import upstream version 0.2.0
4102
  symcode='[[BDRT]]'
4103
  ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4104
sco3.2v5*)
4105
  symcode='[[DT]]'
4106
  ;;
4107
sysv4.2uw2*)
4108
  symcode='[[DT]]'
4109
  ;;
4110
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4111
  symcode='[[ABDT]]'
4112
  ;;
1 by Brandon Hale
Import upstream version 0.2.0
4113
sysv4)
4114
  symcode='[[DFNSTU]]'
4115
  ;;
4116
esac
4117
1.1.49 by Jo Shields
Import upstream version 0.15.0
4118
# If we're using GNU nm, then use its standard symbol codes.
4119
case `$NM -V 2>&1` in
4120
*GNU* | *'with BFD'*)
4121
  symcode='[[ABCDGIRSTW]]' ;;
4122
esac
4123
4124
# Transform an extracted symbol line into a proper C declaration.
4125
# Some systems (esp. on ia64) link data and code symbols differently,
4126
# so use this general approach.
4127
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4128
4129
# Transform an extracted symbol line into symbol name and symbol address
4130
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4131
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'"
4132
1 by Brandon Hale
Import upstream version 0.2.0
4133
# Handle CRLF in mingw tool chain
4134
opt_cr=
4135
case $build_os in
4136
mingw*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4137
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1 by Brandon Hale
Import upstream version 0.2.0
4138
  ;;
4139
esac
4140
1.1.49 by Jo Shields
Import upstream version 0.15.0
4141
# Try without a prefix underscore, then with it.
1 by Brandon Hale
Import upstream version 0.2.0
4142
for ac_symprfx in "" "_"; do
4143
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4144
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4145
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4146
1 by Brandon Hale
Import upstream version 0.2.0
4147
  # Write the raw and C identifiers.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4148
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4149
    # Fake it for dumpbin and say T for any non-static function
4150
    # and D for any global variable.
4151
    # Also find C++ and __fastcall symbols from MSVC++,
4152
    # which start with @ or ?.
4153
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4154
"     {last_section=section; section=\$ 3};"\
4155
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4156
"     \$ 0!~/External *\|/{next};"\
4157
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4158
"     {if(hide[section]) next};"\
4159
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4160
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4161
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4162
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4163
"     ' prfx=^$ac_symprfx]"
4164
  else
4165
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4166
  fi
1 by Brandon Hale
Import upstream version 0.2.0
4167
4168
  # Check to see that the pipe works correctly.
4169
  pipe_works=no
4170
4171
  rm -f conftest*
1.1.49 by Jo Shields
Import upstream version 0.15.0
4172
  cat > conftest.$ac_ext <<_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
4173
#ifdef __cplusplus
4174
extern "C" {
4175
#endif
4176
char nm_test_var;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4177
void nm_test_func(void);
4178
void nm_test_func(void){}
1 by Brandon Hale
Import upstream version 0.2.0
4179
#ifdef __cplusplus
4180
}
4181
#endif
4182
int main(){nm_test_var='a';nm_test_func();return(0);}
1.1.49 by Jo Shields
Import upstream version 0.15.0
4183
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
4184
4185
  if AC_TRY_EVAL(ac_compile); then
4186
    # Now try to grab the symbols.
4187
    nlist=conftest.nm
4188
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4189
      # Try sorting and uniquifying the output.
4190
      if sort "$nlist" | uniq > "$nlist"T; then
4191
	mv -f "$nlist"T "$nlist"
4192
      else
4193
	rm -f "$nlist"T
4194
      fi
4195
4196
      # Make sure that we snagged all the symbols we need.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4197
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4198
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4199
	  cat <<_LT_EOF > conftest.$ac_ext
1 by Brandon Hale
Import upstream version 0.2.0
4200
#ifdef __cplusplus
4201
extern "C" {
4202
#endif
4203
1.1.49 by Jo Shields
Import upstream version 0.15.0
4204
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
4205
	  # Now generate the symbol file.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4206
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4207
4208
	  cat <<_LT_EOF >> conftest.$ac_ext
4209
4210
/* The mapping between symbol names and symbols.  */
1 by Brandon Hale
Import upstream version 0.2.0
4211
const struct {
4212
  const char *name;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4213
  void       *address;
1 by Brandon Hale
Import upstream version 0.2.0
4214
}
1.1.49 by Jo Shields
Import upstream version 0.15.0
4215
lt__PROGRAM__LTX_preloaded_symbols[[]] =
1 by Brandon Hale
Import upstream version 0.2.0
4216
{
1.1.49 by Jo Shields
Import upstream version 0.15.0
4217
  { "@PROGRAM@", (void *) 0 },
4218
_LT_EOF
4219
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4220
	  cat <<\_LT_EOF >> conftest.$ac_ext
4221
  {0, (void *) 0}
1 by Brandon Hale
Import upstream version 0.2.0
4222
};
4223
1.1.49 by Jo Shields
Import upstream version 0.15.0
4224
/* This works around a problem in FreeBSD linker */
4225
#ifdef FREEBSD_WORKAROUND
4226
static const void *lt_preloaded_setup() {
4227
  return lt__PROGRAM__LTX_preloaded_symbols;
4228
}
4229
#endif
4230
1 by Brandon Hale
Import upstream version 0.2.0
4231
#ifdef __cplusplus
4232
}
4233
#endif
1.1.49 by Jo Shields
Import upstream version 0.15.0
4234
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
4235
	  # Now try linking the two files.
4236
	  mv conftest.$ac_objext conftstm.$ac_objext
4237
	  lt_save_LIBS="$LIBS"
4238
	  lt_save_CFLAGS="$CFLAGS"
4239
	  LIBS="conftstm.$ac_objext"
1.1.49 by Jo Shields
Import upstream version 0.15.0
4240
	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
1 by Brandon Hale
Import upstream version 0.2.0
4241
	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4242
	    pipe_works=yes
4243
	  fi
4244
	  LIBS="$lt_save_LIBS"
4245
	  CFLAGS="$lt_save_CFLAGS"
4246
	else
4247
	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4248
	fi
4249
      else
4250
	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4251
      fi
4252
    else
4253
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4254
    fi
4255
  else
4256
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4257
    cat conftest.$ac_ext >&5
4258
  fi
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4259
  rm -rf conftest* conftst*
1 by Brandon Hale
Import upstream version 0.2.0
4260
4261
  # Do not use the global_symbol_pipe unless it works.
4262
  if test "$pipe_works" = yes; then
4263
    break
4264
  else
4265
    lt_cv_sys_global_symbol_pipe=
4266
  fi
4267
done
4268
])
4269
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4270
  lt_cv_sys_global_symbol_to_cdecl=
4271
fi
4272
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4273
  AC_MSG_RESULT(failed)
4274
else
4275
  AC_MSG_RESULT(ok)
4276
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
4277
4278
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4279
    [Take the output of nm and produce a listing of raw symbols and C names])
4280
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4281
    [Transform the output of nm in a proper C declaration])
4282
_LT_DECL([global_symbol_to_c_name_address],
4283
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4284
    [Transform the output of nm in a C name address pair])
4285
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4286
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4287
    [Transform the output of nm in a C name address pair when lib prefix is needed])
4288
]) # _LT_CMD_GLOBAL_SYMBOLS
4289
4290
4291
# _LT_COMPILER_PIC([TAGNAME])
4292
# ---------------------------
4293
m4_defun([_LT_COMPILER_PIC],
4294
[m4_require([_LT_TAG_COMPILER])dnl
4295
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4296
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4297
_LT_TAGVAR(lt_prog_compiler_static, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
4298
4299
AC_MSG_CHECKING([for $compiler option to produce PIC])
1.1.49 by Jo Shields
Import upstream version 0.15.0
4300
m4_if([$1], [CXX], [
1 by Brandon Hale
Import upstream version 0.2.0
4301
  # C++ specific cases for pic, static, wl, etc.
4302
  if test "$GXX" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4303
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4304
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Brandon Hale
Import upstream version 0.2.0
4305
4306
    case $host_os in
4307
    aix*)
4308
      # All AIX code is PIC.
4309
      if test "$host_cpu" = ia64; then
4310
	# AIX 5 now supports IA64 processor
1.1.49 by Jo Shields
Import upstream version 0.15.0
4311
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4312
      fi
4313
      ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4314
1 by Brandon Hale
Import upstream version 0.2.0
4315
    amigaos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4316
      case $host_cpu in
4317
      powerpc)
4318
            # see comment about AmigaOS4 .so support
4319
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4320
        ;;
4321
      m68k)
4322
            # FIXME: we need at least 68020 code to build shared libraries, but
4323
            # adding the `-m68020' flag to GCC prevents building anything better,
4324
            # like `-m68040'.
4325
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4326
        ;;
4327
      esac
1 by Brandon Hale
Import upstream version 0.2.0
4328
      ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4329
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4330
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Brandon Hale
Import upstream version 0.2.0
4331
      # PIC is the default for these OSes.
4332
      ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4333
    mingw* | cygwin* | os2* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4334
      # This hack is so that the source file can tell whether it is being
4335
      # built for inclusion in a dll (and should export symbols for example).
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4336
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4337
      # (--disable-auto-import) libraries
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4338
      m4_if([$1], [GCJ], [],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4339
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Brandon Hale
Import upstream version 0.2.0
4340
      ;;
4341
    darwin* | rhapsody*)
4342
      # PIC is the default on this platform
4343
      # Common symbols not allowed in MH_DYLIB files
1.1.49 by Jo Shields
Import upstream version 0.15.0
4344
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1 by Brandon Hale
Import upstream version 0.2.0
4345
      ;;
4346
    *djgpp*)
4347
      # DJGPP does not support shared libraries at all
1.1.49 by Jo Shields
Import upstream version 0.15.0
4348
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
4349
      ;;
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4350
    interix[[3-9]]*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4351
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4352
      # Instead, we relocate shared libraries at runtime.
4353
      ;;
1 by Brandon Hale
Import upstream version 0.2.0
4354
    sysv4*MP*)
4355
      if test -d /usr/nec; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4356
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1 by Brandon Hale
Import upstream version 0.2.0
4357
      fi
4358
      ;;
4359
    hpux*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4360
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4361
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4362
      # sets the default TLS model and affects inlining.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4363
      case $host_cpu in
1.1.49 by Jo Shields
Import upstream version 0.15.0
4364
      hppa*64*)
1 by Brandon Hale
Import upstream version 0.2.0
4365
	;;
4366
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4367
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Brandon Hale
Import upstream version 0.2.0
4368
	;;
4369
      esac
4370
      ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4371
    *qnx* | *nto*)
4372
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4373
      # it will coredump.
4374
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4375
      ;;
1 by Brandon Hale
Import upstream version 0.2.0
4376
    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4377
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Brandon Hale
Import upstream version 0.2.0
4378
      ;;
4379
    esac
4380
  else
4381
    case $host_os in
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4382
      aix[[4-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
4383
	# All AIX code is PIC.
4384
	if test "$host_cpu" = ia64; then
4385
	  # AIX 5 now supports IA64 processor
1.1.49 by Jo Shields
Import upstream version 0.15.0
4386
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4387
	else
1.1.49 by Jo Shields
Import upstream version 0.15.0
4388
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1 by Brandon Hale
Import upstream version 0.2.0
4389
	fi
4390
	;;
4391
      chorus*)
4392
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4393
	cxch68*)
1 by Brandon Hale
Import upstream version 0.2.0
4394
	  # Green Hills C++ Compiler
1.1.49 by Jo Shields
Import upstream version 0.15.0
4395
	  # _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 Brandon Hale
Import upstream version 0.2.0
4396
	  ;;
4397
	esac
4398
	;;
4399
      dgux*)
4400
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4401
	  ec++*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4402
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1 by Brandon Hale
Import upstream version 0.2.0
4403
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4404
	  ghcx*)
1 by Brandon Hale
Import upstream version 0.2.0
4405
	    # Green Hills C++ Compiler
1.1.49 by Jo Shields
Import upstream version 0.15.0
4406
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Brandon Hale
Import upstream version 0.2.0
4407
	    ;;
4408
	  *)
4409
	    ;;
4410
	esac
4411
	;;
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
4412
      freebsd* | dragonfly*)
1 by Brandon Hale
Import upstream version 0.2.0
4413
	# FreeBSD uses GNU C++
4414
	;;
4415
      hpux9* | hpux10* | hpux11*)
4416
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4417
	  CC*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4418
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4419
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1 by Brandon Hale
Import upstream version 0.2.0
4420
	    if test "$host_cpu" != ia64; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4421
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Brandon Hale
Import upstream version 0.2.0
4422
	    fi
4423
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4424
	  aCC*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4425
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4426
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4427
	    case $host_cpu in
1 by Brandon Hale
Import upstream version 0.2.0
4428
	    hppa*64*|ia64*)
4429
	      # +Z the default
4430
	      ;;
4431
	    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4432
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Brandon Hale
Import upstream version 0.2.0
4433
	      ;;
4434
	    esac
4435
	    ;;
4436
	  *)
4437
	    ;;
4438
	esac
4439
	;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4440
      interix*)
4441
	# This is c89, which is MS Visual C++ (no shared libs)
4442
	# Anyone wants to do a port?
4443
	;;
1 by Brandon Hale
Import upstream version 0.2.0
4444
      irix5* | irix6* | nonstopux*)
4445
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4446
	  CC*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4447
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4448
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Brandon Hale
Import upstream version 0.2.0
4449
	    # CC pic flag -KPIC is the default.
4450
	    ;;
4451
	  *)
4452
	    ;;
4453
	esac
4454
	;;
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
4455
      linux* | k*bsd*-gnu)
1 by Brandon Hale
Import upstream version 0.2.0
4456
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4457
	  KCC*)
1 by Brandon Hale
Import upstream version 0.2.0
4458
	    # KAI C++ Compiler
1.1.49 by Jo Shields
Import upstream version 0.15.0
4459
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4460
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4461
	    ;;
4462
	  ecpc* )
4463
	    # old Intel C++ for x86_64 which still supported -KPIC.
4464
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4465
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4466
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4467
	    ;;
4468
	  icpc* )
4469
	    # Intel C++, used to be incompatible with GCC.
4470
	    # ICC 10 doesn't accept -KPIC any more.
4471
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4472
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4473
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Brandon Hale
Import upstream version 0.2.0
4474
	    ;;
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4475
	  pgCC* | pgcpp*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4476
	    # Portland Group C++ compiler
4477
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4478
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4479
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4480
	    ;;
4481
	  cxx*)
1 by Brandon Hale
Import upstream version 0.2.0
4482
	    # Compaq C++
4483
	    # Make sure the PIC flag is empty.  It appears that all Alpha
4484
	    # Linux and Compaq Tru64 Unix objects are PIC.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4485
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4486
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4487
	    ;;
4488
	  xlc* | xlC*)
4489
	    # IBM XL 8.0 on PPC
4490
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4491
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4492
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
1 by Brandon Hale
Import upstream version 0.2.0
4493
	    ;;
4494
	  *)
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4495
	    case `$CC -V 2>&1 | sed 5q` in
4496
	    *Sun\ C*)
4497
	      # Sun C++ 5.9
1.1.49 by Jo Shields
Import upstream version 0.15.0
4498
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4499
	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4500
	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4501
	      ;;
4502
	    esac
1 by Brandon Hale
Import upstream version 0.2.0
4503
	    ;;
4504
	esac
4505
	;;
4506
      lynxos*)
4507
	;;
4508
      m88k*)
4509
	;;
4510
      mvs*)
4511
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4512
	  cxx*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4513
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
1 by Brandon Hale
Import upstream version 0.2.0
4514
	    ;;
4515
	  *)
4516
	    ;;
4517
	esac
4518
	;;
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4519
      netbsd*)
1 by Brandon Hale
Import upstream version 0.2.0
4520
	;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4521
      *qnx* | *nto*)
4522
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4523
        # it will coredump.
4524
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4525
        ;;
1 by Brandon Hale
Import upstream version 0.2.0
4526
      osf3* | osf4* | osf5*)
4527
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4528
	  KCC*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4529
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4530
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4531
	  RCC*)
1 by Brandon Hale
Import upstream version 0.2.0
4532
	    # Rational C++ 2.4.1
1.1.49 by Jo Shields
Import upstream version 0.15.0
4533
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Brandon Hale
Import upstream version 0.2.0
4534
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4535
	  cxx*)
1 by Brandon Hale
Import upstream version 0.2.0
4536
	    # Digital/Compaq C++
1.1.49 by Jo Shields
Import upstream version 0.15.0
4537
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4538
	    # Make sure the PIC flag is empty.  It appears that all Alpha
4539
	    # Linux and Compaq Tru64 Unix objects are PIC.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4540
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4541
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Brandon Hale
Import upstream version 0.2.0
4542
	    ;;
4543
	  *)
4544
	    ;;
4545
	esac
4546
	;;
4547
      psos*)
4548
	;;
4549
      solaris*)
4550
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4551
	  CC*)
1 by Brandon Hale
Import upstream version 0.2.0
4552
	    # Sun C++ 4.2, 5.x and Centerline C++
1.1.49 by Jo Shields
Import upstream version 0.15.0
4553
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4554
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4555
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1 by Brandon Hale
Import upstream version 0.2.0
4556
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4557
	  gcx*)
1 by Brandon Hale
Import upstream version 0.2.0
4558
	    # Green Hills C++ Compiler
1.1.49 by Jo Shields
Import upstream version 0.15.0
4559
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
1 by Brandon Hale
Import upstream version 0.2.0
4560
	    ;;
4561
	  *)
4562
	    ;;
4563
	esac
4564
	;;
4565
      sunos4*)
4566
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4567
	  CC*)
1 by Brandon Hale
Import upstream version 0.2.0
4568
	    # Sun C++ 4.x
1.1.49 by Jo Shields
Import upstream version 0.15.0
4569
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4570
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4571
	    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4572
	  lcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4573
	    # Lucid
1.1.49 by Jo Shields
Import upstream version 0.15.0
4574
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1 by Brandon Hale
Import upstream version 0.2.0
4575
	    ;;
4576
	  *)
4577
	    ;;
4578
	esac
4579
	;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4580
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4581
	case $cc_basename in
4582
	  CC*)
4583
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4584
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4585
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4586
	    ;;
4587
	esac
4588
	;;
1 by Brandon Hale
Import upstream version 0.2.0
4589
      tandem*)
4590
	case $cc_basename in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4591
	  NCC*)
1 by Brandon Hale
Import upstream version 0.2.0
4592
	    # NonStop-UX NCC 3.20
1.1.49 by Jo Shields
Import upstream version 0.15.0
4593
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1 by Brandon Hale
Import upstream version 0.2.0
4594
	    ;;
4595
	  *)
4596
	    ;;
4597
	esac
4598
	;;
4599
      vxworks*)
4600
	;;
4601
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4602
	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
4603
	;;
4604
    esac
4605
  fi
4606
],
4607
[
4608
  if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4609
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4610
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
1 by Brandon Hale
Import upstream version 0.2.0
4611
4612
    case $host_os in
4613
      aix*)
4614
      # All AIX code is PIC.
4615
      if test "$host_cpu" = ia64; then
4616
	# AIX 5 now supports IA64 processor
1.1.49 by Jo Shields
Import upstream version 0.15.0
4617
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4618
      fi
4619
      ;;
4620
4621
    amigaos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4622
      case $host_cpu in
4623
      powerpc)
4624
            # see comment about AmigaOS4 .so support
4625
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4626
        ;;
4627
      m68k)
4628
            # FIXME: we need at least 68020 code to build shared libraries, but
4629
            # adding the `-m68020' flag to GCC prevents building anything better,
4630
            # like `-m68040'.
4631
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4632
        ;;
4633
      esac
1 by Brandon Hale
Import upstream version 0.2.0
4634
      ;;
4635
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4636
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1 by Brandon Hale
Import upstream version 0.2.0
4637
      # PIC is the default for these OSes.
4638
      ;;
4639
1.1.49 by Jo Shields
Import upstream version 0.15.0
4640
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4641
      # This hack is so that the source file can tell whether it is being
4642
      # built for inclusion in a dll (and should export symbols for example).
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4643
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4644
      # (--disable-auto-import) libraries
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4645
      m4_if([$1], [GCJ], [],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4646
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Brandon Hale
Import upstream version 0.2.0
4647
      ;;
4648
4649
    darwin* | rhapsody*)
4650
      # PIC is the default on this platform
4651
      # Common symbols not allowed in MH_DYLIB files
1.1.49 by Jo Shields
Import upstream version 0.15.0
4652
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4653
      ;;
4654
4655
    hpux*)
4656
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4657
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4658
      # sets the default TLS model and affects inlining.
4659
      case $host_cpu in
4660
      hppa*64*)
4661
	# +Z the default
4662
	;;
4663
      *)
4664
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4665
	;;
4666
      esac
1 by Brandon Hale
Import upstream version 0.2.0
4667
      ;;
4668
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4669
    interix[[3-9]]*)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4670
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4671
      # Instead, we relocate shared libraries at runtime.
4672
      ;;
4673
1 by Brandon Hale
Import upstream version 0.2.0
4674
    msdosdjgpp*)
4675
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4676
      # on systems that don't support them.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4677
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
4678
      enable_shared=no
4679
      ;;
4680
1.1.49 by Jo Shields
Import upstream version 0.15.0
4681
    *nto* | *qnx*)
4682
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4683
      # it will coredump.
4684
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4685
      ;;
4686
1 by Brandon Hale
Import upstream version 0.2.0
4687
    sysv4*MP*)
4688
      if test -d /usr/nec; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4689
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1 by Brandon Hale
Import upstream version 0.2.0
4690
      fi
4691
      ;;
4692
4693
    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4694
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1 by Brandon Hale
Import upstream version 0.2.0
4695
      ;;
4696
    esac
4697
  else
4698
    # PORTME Check for flag to pass linker flags through the system compiler.
4699
    case $host_os in
4700
    aix*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4701
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4702
      if test "$host_cpu" = ia64; then
4703
	# AIX 5 now supports IA64 processor
1.1.49 by Jo Shields
Import upstream version 0.15.0
4704
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4705
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
4706
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1 by Brandon Hale
Import upstream version 0.2.0
4707
      fi
4708
      ;;
4709
1.1.49 by Jo Shields
Import upstream version 0.15.0
4710
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4711
      # This hack is so that the source file can tell whether it is being
4712
      # built for inclusion in a dll (and should export symbols for example).
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4713
      m4_if([$1], [GCJ], [],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4714
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
1 by Brandon Hale
Import upstream version 0.2.0
4715
      ;;
4716
4717
    hpux9* | hpux10* | hpux11*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4718
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4719
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4720
      # not for PA HP-UX.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4721
      case $host_cpu in
1 by Brandon Hale
Import upstream version 0.2.0
4722
      hppa*64*|ia64*)
4723
	# +Z the default
4724
	;;
4725
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4726
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1 by Brandon Hale
Import upstream version 0.2.0
4727
	;;
4728
      esac
4729
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.1.49 by Jo Shields
Import upstream version 0.15.0
4730
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1 by Brandon Hale
Import upstream version 0.2.0
4731
      ;;
4732
4733
    irix5* | irix6* | nonstopux*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4734
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4735
      # PIC (with -KPIC) is the default.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4736
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Brandon Hale
Import upstream version 0.2.0
4737
      ;;
4738
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
4739
    linux* | k*bsd*-gnu)
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4740
      case $cc_basename in
1.1.49 by Jo Shields
Import upstream version 0.15.0
4741
      # old Intel for x86_64 which still supported -KPIC.
4742
      ecc*)
4743
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4745
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4746
        ;;
4747
      # icc used to be incompatible with GCC.
4748
      # ICC 10 doesn't accept -KPIC any more.
4749
      icc* | ifort*)
4750
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4752
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4753
        ;;
4754
      # Lahey Fortran 8.1.
4755
      lf95*)
4756
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4757
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4758
	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4759
	;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4760
      pgcc* | pgf77* | pgf90* | pgf95*)
4761
        # Portland Group compilers (*not* the Pentium gcc compiler,
4762
	# which looks to be a dead project)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4763
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4764
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4765
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4766
        ;;
1 by Brandon Hale
Import upstream version 0.2.0
4767
      ccc*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4768
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4769
        # All Alpha code is PIC.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4770
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Brandon Hale
Import upstream version 0.2.0
4771
        ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4772
      xl*)
4773
	# IBM XL C 8.0/Fortran 10.1 on PPC
4774
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4775
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4776
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4777
	;;
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4778
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4779
	case `$CC -V 2>&1 | sed 5q` in
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4780
	*Sun\ C*)
4781
	  # Sun C 5.9
1.1.49 by Jo Shields
Import upstream version 0.15.0
4782
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4783
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4784
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4785
	  ;;
4786
	*Sun\ F*)
4787
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
1.1.49 by Jo Shields
Import upstream version 0.15.0
4788
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4789
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4790
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4791
	  ;;
4792
	esac
4793
	;;
1 by Brandon Hale
Import upstream version 0.2.0
4794
      esac
4795
      ;;
4796
1.1.49 by Jo Shields
Import upstream version 0.15.0
4797
    newsos6)
4798
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4799
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4800
      ;;
4801
4802
    *nto* | *qnx*)
4803
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4804
      # it will coredump.
4805
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4806
      ;;
4807
1 by Brandon Hale
Import upstream version 0.2.0
4808
    osf3* | osf4* | osf5*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4809
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1 by Brandon Hale
Import upstream version 0.2.0
4810
      # All OSF/1 code is PIC.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4811
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1 by Brandon Hale
Import upstream version 0.2.0
4812
      ;;
4813
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4814
    rdos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4815
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4816
      ;;
4817
1 by Brandon Hale
Import upstream version 0.2.0
4818
    solaris*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4819
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4820
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4821
      case $cc_basename in
4822
      f77* | f90* | f95*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4823
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4824
      *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4825
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4826
      esac
1 by Brandon Hale
Import upstream version 0.2.0
4827
      ;;
4828
4829
    sunos4*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4830
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4831
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4832
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4833
      ;;
4834
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4835
    sysv4 | sysv4.2uw2* | sysv4.3*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4836
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4837
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4838
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4839
      ;;
4840
4841
    sysv4*MP*)
4842
      if test -d /usr/nec ;then
1.1.49 by Jo Shields
Import upstream version 0.15.0
4843
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4844
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4845
      fi
4846
      ;;
4847
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4848
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4849
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4851
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4852
      ;;
4853
4854
    unicos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4855
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4856
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4857
      ;;
4858
1 by Brandon Hale
Import upstream version 0.2.0
4859
    uts4*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4860
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4861
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1 by Brandon Hale
Import upstream version 0.2.0
4862
      ;;
4863
4864
    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4865
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
4866
      ;;
4867
    esac
4868
  fi
4869
])
1.1.49 by Jo Shields
Import upstream version 0.15.0
4870
case $host_os in
4871
  # For platforms which do not support PIC, -DPIC is meaningless:
4872
  *djgpp*)
4873
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4874
    ;;
4875
  *)
4876
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4877
    ;;
4878
esac
4879
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4880
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4881
	[How to pass a linker flag through the compiler])
1 by Brandon Hale
Import upstream version 0.2.0
4882
4883
#
4884
# Check to make sure the PIC flag actually works.
4885
#
1.1.49 by Jo Shields
Import upstream version 0.15.0
4886
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4887
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4888
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4889
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4890
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
1 by Brandon Hale
Import upstream version 0.2.0
4891
     "" | " "*) ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4892
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
1 by Brandon Hale
Import upstream version 0.2.0
4893
     esac],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4894
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4895
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1 by Brandon Hale
Import upstream version 0.2.0
4896
fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
4897
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4898
	[Additional compiler flags for building library objects])
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4899
4900
#
4901
# Check to make sure the static flag actually works.
4902
#
1.1.49 by Jo Shields
Import upstream version 0.15.0
4903
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4904
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4905
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
4906
  $lt_tmp_static_flag,
4907
  [],
1.1.49 by Jo Shields
Import upstream version 0.15.0
4908
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4909
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4910
	[Compiler flag to prevent dynamic linking])
4911
])# _LT_COMPILER_PIC
4912
4913
4914
# _LT_LINKER_SHLIBS([TAGNAME])
4915
# ----------------------------
1 by Brandon Hale
Import upstream version 0.2.0
4916
# See if the linker supports building shared libraries.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4917
m4_defun([_LT_LINKER_SHLIBS],
4918
[AC_REQUIRE([LT_PATH_LD])dnl
4919
AC_REQUIRE([LT_PATH_NM])dnl
4920
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4921
m4_require([_LT_DECL_EGREP])dnl
4922
m4_require([_LT_DECL_SED])dnl
4923
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4924
m4_require([_LT_TAG_COMPILER])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
4925
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
1.1.49 by Jo Shields
Import upstream version 0.15.0
4926
m4_if([$1], [CXX], [
4927
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1 by Brandon Hale
Import upstream version 0.2.0
4928
  case $host_os in
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4929
  aix[[4-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
4930
    # If we're using GNU nm, then we don't want the "-C" option.
4931
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.1.49 by Jo Shields
Import upstream version 0.15.0
4932
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4933
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Brandon Hale
Import upstream version 0.2.0
4934
    else
1.1.49 by Jo Shields
Import upstream version 0.15.0
4935
      _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 Brandon Hale
Import upstream version 0.2.0
4936
    fi
4937
    ;;
4938
  pw32*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4939
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
1 by Brandon Hale
Import upstream version 0.2.0
4940
  ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
4941
  cygwin* | mingw* | cegcc*)
4942
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
4943
  ;;
1 by Brandon Hale
Import upstream version 0.2.0
4944
  *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
4945
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1 by Brandon Hale
Import upstream version 0.2.0
4946
  ;;
4947
  esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
4948
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4949
], [
1 by Brandon Hale
Import upstream version 0.2.0
4950
  runpath_var=
1.1.49 by Jo Shields
Import upstream version 0.15.0
4951
  _LT_TAGVAR(allow_undefined_flag, $1)=
4952
  _LT_TAGVAR(always_export_symbols, $1)=no
4953
  _LT_TAGVAR(archive_cmds, $1)=
4954
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4955
  _LT_TAGVAR(compiler_needs_object, $1)=no
4956
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4957
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4958
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4959
  _LT_TAGVAR(hardcode_automatic, $1)=no
4960
  _LT_TAGVAR(hardcode_direct, $1)=no
4961
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4962
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4963
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4964
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4965
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4966
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4967
  _LT_TAGVAR(inherit_rpath, $1)=no
4968
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4969
  _LT_TAGVAR(module_cmds, $1)=
4970
  _LT_TAGVAR(module_expsym_cmds, $1)=
4971
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4972
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4973
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4974
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
4975
  # include_expsyms should be a list of space-separated symbols to be *always*
4976
  # included in the symbol list
1.1.49 by Jo Shields
Import upstream version 0.15.0
4977
  _LT_TAGVAR(include_expsyms, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
4978
  # exclude_expsyms can be an extended regexp of symbols to exclude
4979
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4980
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4981
  # as well as any symbol that contains `d'.
1.1.49 by Jo Shields
Import upstream version 0.15.0
4982
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
1 by Brandon Hale
Import upstream version 0.2.0
4983
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4984
  # platforms (ab)use it in PIC code, but their linkers get confused if
4985
  # the symbol is explicitly referenced.  Since portable code cannot
4986
  # rely on this symbol name, it's probably fine to never include it in
4987
  # preloaded symbol tables.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
4988
  # Exclude shared library initialization/finalization symbols.
4989
dnl Note also adjust exclude_expsyms for C++ above.
1 by Brandon Hale
Import upstream version 0.2.0
4990
  extract_expsyms_cmds=
1.1.49 by Jo Shields
Import upstream version 0.15.0
4991
1 by Brandon Hale
Import upstream version 0.2.0
4992
  case $host_os in
1.1.49 by Jo Shields
Import upstream version 0.15.0
4993
  cygwin* | mingw* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
4994
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4995
    # When not using gcc, we currently assume that we are using
4996
    # Microsoft Visual C++.
4997
    if test "$GCC" != yes; then
4998
      with_gnu_ld=no
4999
    fi
5000
    ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5001
  interix*)
5002
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5003
    with_gnu_ld=yes
5004
    ;;
1 by Brandon Hale
Import upstream version 0.2.0
5005
  openbsd*)
5006
    with_gnu_ld=no
5007
    ;;
5008
  esac
5009
1.1.49 by Jo Shields
Import upstream version 0.15.0
5010
  _LT_TAGVAR(ld_shlibs, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5011
  if test "$with_gnu_ld" = yes; then
5012
    # If archive_cmds runs LD, not CC, wlarc should be empty
5013
    wlarc='${wl}'
5014
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5015
    # Set some defaults for GNU ld with shared library support. These
5016
    # are reset later if shared libraries are not supported. Putting them
5017
    # here allows them to be overridden if necessary.
5018
    runpath_var=LD_RUN_PATH
1.1.49 by Jo Shields
Import upstream version 0.15.0
5019
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5020
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5021
    # ancient GNU ld didn't support --whole-archive et. al.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5022
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5023
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5024
    else
5025
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5026
    fi
5027
    supports_anon_versioning=no
1.1.49 by Jo Shields
Import upstream version 0.15.0
5028
    case `$LD -v 2>&1` in
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5029
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5030
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5031
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5032
      *\ 2.11.*) ;; # other 2.11 versions
5033
      *) supports_anon_versioning=yes ;;
5034
    esac
5035
1 by Brandon Hale
Import upstream version 0.2.0
5036
    # See if GNU ld supports shared libraries.
5037
    case $host_os in
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
5038
    aix[[3-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
5039
      # On AIX/PPC, the GNU linker is very broken
5040
      if test "$host_cpu" != ia64; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5041
	_LT_TAGVAR(ld_shlibs, $1)=no
5042
	cat <<_LT_EOF 1>&2
1 by Brandon Hale
Import upstream version 0.2.0
5043
5044
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5045
*** to be unable to reliably create shared libraries on AIX.
5046
*** Therefore, libtool is disabling shared libraries support.  If you
5047
*** really care for shared libraries, you may want to modify your PATH
5048
*** so that a non-GNU linker is found, and then restart.
5049
1.1.49 by Jo Shields
Import upstream version 0.15.0
5050
_LT_EOF
1 by Brandon Hale
Import upstream version 0.2.0
5051
      fi
5052
      ;;
5053
5054
    amigaos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5055
      case $host_cpu in
5056
      powerpc)
5057
            # see comment about AmigaOS4 .so support
5058
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5059
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5060
        ;;
5061
      m68k)
5062
            _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)'
5063
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5064
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5065
        ;;
5066
      esac
1 by Brandon Hale
Import upstream version 0.2.0
5067
      ;;
5068
5069
    beos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5070
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5071
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
1 by Brandon Hale
Import upstream version 0.2.0
5072
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5073
	# support --undefined.  This deserves some investigation.  FIXME
1.1.49 by Jo Shields
Import upstream version 0.15.0
5074
	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5075
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5076
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5077
      fi
5078
      ;;
5079
1.1.49 by Jo Shields
Import upstream version 0.15.0
5080
    cygwin* | mingw* | pw32* | cegcc*)
5081
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1 by Brandon Hale
Import upstream version 0.2.0
5082
      # as there is no search path for DLLs.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5083
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5084
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5085
      _LT_TAGVAR(always_export_symbols, $1)=no
5086
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5087
      _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'
1 by Brandon Hale
Import upstream version 0.2.0
5088
1.1.49 by Jo Shields
Import upstream version 0.15.0
5089
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5090
        _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 Brandon Hale
Import upstream version 0.2.0
5091
	# If the export-symbols file already is a .def file (1st line
5092
	# is EXPORTS), use it as is; otherwise, prepend...
1.1.49 by Jo Shields
Import upstream version 0.15.0
5093
	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1 by Brandon Hale
Import upstream version 0.2.0
5094
	  cp $export_symbols $output_objdir/$soname.def;
5095
	else
5096
	  echo EXPORTS > $output_objdir/$soname.def;
5097
	  cat $export_symbols >> $output_objdir/$soname.def;
5098
	fi~
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5099
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5100
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5101
	_LT_TAGVAR(ld_shlibs, $1)=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5102
      fi
5103
      ;;
5104
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5105
    interix[[3-9]]*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5106
      _LT_TAGVAR(hardcode_direct, $1)=no
5107
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5108
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5109
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5110
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5111
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5112
      # default) and relocated if they conflict, which is a slow very memory
5113
      # consuming and fragmenting process.  To avoid this, we pick a random,
5114
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5115
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5116
      _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'
5117
      _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.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5118
      ;;
5119
1.1.49 by Jo Shields
Import upstream version 0.15.0
5120
    gnu* | linux* | tpf* | k*bsd*-gnu)
5121
      tmp_diet=no
5122
      if test "$host_os" = linux-dietlibc; then
5123
	case $cc_basename in
5124
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
5125
	esac
5126
      fi
5127
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5128
	 && test "$tmp_diet" = no
5129
      then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5130
	tmp_addflag=
1.1.49 by Jo Shields
Import upstream version 0.15.0
5131
	tmp_sharedflag='-shared'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5132
	case $cc_basename,$host_cpu in
1.1.49 by Jo Shields
Import upstream version 0.15.0
5133
        pgcc*)				# Portland Group C compiler
5134
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5135
	  tmp_addflag=' $pic_flag'
5136
	  ;;
5137
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
1.1.49 by Jo Shields
Import upstream version 0.15.0
5138
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5139
	  tmp_addflag=' $pic_flag -Mnomain' ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
5140
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5141
	  tmp_addflag=' -i_dynamic' ;;
5142
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
5143
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
5144
	ifc* | ifort*)			# Intel Fortran compiler
5145
	  tmp_addflag=' -nofor_main' ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
5146
	lf95*)				# Lahey Fortran 8.1
5147
	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5148
	  tmp_sharedflag='--shared' ;;
5149
	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
5150
	  tmp_sharedflag='-qmkshrobj'
5151
	  tmp_addflag= ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5152
	esac
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5153
	case `$CC -V 2>&1 | sed 5q` in
5154
	*Sun\ C*)			# Sun C 5.9
1.1.49 by Jo Shields
Import upstream version 0.15.0
5155
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5156
	  _LT_TAGVAR(compiler_needs_object, $1)=yes
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5157
	  tmp_sharedflag='-G' ;;
5158
	*Sun\ F*)			# Sun Fortran 8.3
5159
	  tmp_sharedflag='-G' ;;
1.1.49 by Jo Shields
Import upstream version 0.15.0
5160
	esac
5161
	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5162
5163
        if test "x$supports_anon_versioning" = xyes; then
5164
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5165
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5166
	    echo "local: *; };" >> $output_objdir/$libname.ver~
5167
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5168
        fi
5169
5170
	case $cc_basename in
5171
	xlf*)
5172
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5173
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5174
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5175
	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5176
	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5177
	  if test "x$supports_anon_versioning" = xyes; then
5178
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5179
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5180
	      echo "local: *; };" >> $output_objdir/$libname.ver~
5181
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5182
	  fi
5183
	  ;;
5184
	esac
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5185
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5186
        _LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5187
      fi
5188
      ;;
5189
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5190
    netbsd*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5191
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5192
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5193
	wlarc=
5194
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5195
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5196
	_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 by Brandon Hale
Import upstream version 0.2.0
5197
      fi
5198
      ;;
5199
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5200
    solaris*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5201
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5202
	_LT_TAGVAR(ld_shlibs, $1)=no
5203
	cat <<_LT_EOF 1>&2
1 by Brandon Hale
Import upstream version 0.2.0
5204
5205
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5206
*** create shared libraries on Solaris systems.  Therefore, libtool
5207
*** is disabling shared libraries support.  We urge you to upgrade GNU
5208
*** binutils to release 2.9.1 or newer.  Another option is to modify
5209
*** your PATH or compiler configuration so that the native linker is
5210
*** used, and then restart.
5211
1.1.49 by Jo Shields
Import upstream version 0.15.0
5212
_LT_EOF
5213
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5214
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5215
	_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 by Brandon Hale
Import upstream version 0.2.0
5216
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5217
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5218
      fi
5219
      ;;
5220
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5221
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5222
      case `$LD -v 2>&1` in
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5223
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5224
	_LT_TAGVAR(ld_shlibs, $1)=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5225
	cat <<_LT_EOF 1>&2
5226
5227
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5228
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5229
*** is disabling shared libraries support.  We urge you to upgrade GNU
5230
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5231
*** your PATH or compiler configuration so that the native linker is
5232
*** used, and then restart.
5233
5234
_LT_EOF
5235
	;;
5236
	*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5237
	  # For security reasons, it is highly recommended that you always
5238
	  # use absolute paths for naming shared libraries, and exclude the
5239
	  # DT_RUNPATH tag from executables and libraries.  But doing so
5240
	  # requires that you compile everything twice, which is a pain.
5241
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5242
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5243
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5244
	    _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.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5245
	  else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5246
	    _LT_TAGVAR(ld_shlibs, $1)=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5247
	  fi
5248
	;;
5249
      esac
5250
      ;;
5251
1 by Brandon Hale
Import upstream version 0.2.0
5252
    sunos4*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5253
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5254
      wlarc=
1.1.49 by Jo Shields
Import upstream version 0.15.0
5255
      _LT_TAGVAR(hardcode_direct, $1)=yes
5256
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5257
      ;;
5258
5259
    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5260
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5261
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5262
	_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 by Brandon Hale
Import upstream version 0.2.0
5263
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5264
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5265
      fi
5266
      ;;
5267
    esac
5268
1.1.49 by Jo Shields
Import upstream version 0.15.0
5269
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5270
      runpath_var=
1.1.49 by Jo Shields
Import upstream version 0.15.0
5271
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5272
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5273
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
5274
    fi
5275
  else
5276
    # PORTME fill in a description of your system's linker (not GNU ld)
5277
    case $host_os in
5278
    aix3*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5279
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5280
      _LT_TAGVAR(always_export_symbols, $1)=yes
5281
      _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 Brandon Hale
Import upstream version 0.2.0
5282
      # Note: this linker hardcodes the directories in LIBPATH if there
5283
      # are no directories specified by -L.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5284
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5285
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1 by Brandon Hale
Import upstream version 0.2.0
5286
	# Neither direct hardcoding nor static linking is supported with a
5287
	# broken collect2.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5288
	_LT_TAGVAR(hardcode_direct, $1)=unsupported
1 by Brandon Hale
Import upstream version 0.2.0
5289
      fi
5290
      ;;
5291
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
5292
    aix[[4-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
5293
      if test "$host_cpu" = ia64; then
5294
	# On IA64, the linker does run time linking by default, so we don't
5295
	# have to do anything special.
5296
	aix_use_runtimelinking=no
5297
	exp_sym_flag='-Bexport'
5298
	no_entry_flag=""
5299
      else
5300
	# If we're using GNU nm, then we don't want the "-C" option.
5301
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1.1.49 by Jo Shields
Import upstream version 0.15.0
5302
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5303
	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1 by Brandon Hale
Import upstream version 0.2.0
5304
	else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5305
	  _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 Brandon Hale
Import upstream version 0.2.0
5306
	fi
5307
	aix_use_runtimelinking=no
5308
5309
	# Test if we are trying to use run time linking or normal
5310
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5311
	# need to do runtime linking.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
5312
	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
1 by Brandon Hale
Import upstream version 0.2.0
5313
	  for ld_flag in $LDFLAGS; do
1.1.49 by Jo Shields
Import upstream version 0.15.0
5314
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5315
	    aix_use_runtimelinking=yes
5316
	    break
5317
	  fi
1 by Brandon Hale
Import upstream version 0.2.0
5318
	  done
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5319
	  ;;
1 by Brandon Hale
Import upstream version 0.2.0
5320
	esac
5321
5322
	exp_sym_flag='-bexport'
5323
	no_entry_flag='-bnoentry'
5324
      fi
5325
5326
      # When large executables or shared objects are built, AIX ld can
5327
      # have problems creating the table of contents.  If linking a library
5328
      # or program results in "error TOC overflow" add -mminimal-toc to
5329
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5330
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5331
1.1.49 by Jo Shields
Import upstream version 0.15.0
5332
      _LT_TAGVAR(archive_cmds, $1)=''
5333
      _LT_TAGVAR(hardcode_direct, $1)=yes
5334
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5335
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5336
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5337
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
1 by Brandon Hale
Import upstream version 0.2.0
5338
5339
      if test "$GCC" = yes; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5340
	case $host_os in aix4.[[012]]|aix4.[[012]].*)
1 by Brandon Hale
Import upstream version 0.2.0
5341
	# We only want to do this on AIX 4.2 and lower, the check
5342
	# below for broken collect2 doesn't work under 4.3+
5343
	  collect2name=`${CC} -print-prog-name=collect2`
1.1.49 by Jo Shields
Import upstream version 0.15.0
5344
	  if test -f "$collect2name" &&
5345
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1 by Brandon Hale
Import upstream version 0.2.0
5346
	  then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5347
	  # We have reworked collect2
5348
	  :
1 by Brandon Hale
Import upstream version 0.2.0
5349
	  else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5350
	  # We have old collect2
5351
	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
5352
	  # It fails to find uninstalled libraries when the uninstalled
5353
	  # path is not listed in the libpath.  Setting hardcode_minus_L
5354
	  # to unsupported forces relinking
5355
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5356
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5357
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
1 by Brandon Hale
Import upstream version 0.2.0
5358
	  fi
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5359
	  ;;
1 by Brandon Hale
Import upstream version 0.2.0
5360
	esac
5361
	shared_flag='-shared'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5362
	if test "$aix_use_runtimelinking" = yes; then
5363
	  shared_flag="$shared_flag "'${wl}-G'
5364
	fi
1 by Brandon Hale
Import upstream version 0.2.0
5365
      else
5366
	# not using gcc
5367
	if test "$host_cpu" = ia64; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5368
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5369
	# chokes on -Wl,-G. The following line is correct:
1 by Brandon Hale
Import upstream version 0.2.0
5370
	  shared_flag='-G'
5371
	else
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5372
	  if test "$aix_use_runtimelinking" = yes; then
1 by Brandon Hale
Import upstream version 0.2.0
5373
	    shared_flag='${wl}-G'
5374
	  else
5375
	    shared_flag='${wl}-bM:SRE'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5376
	  fi
1 by Brandon Hale
Import upstream version 0.2.0
5377
	fi
5378
      fi
5379
1.1.49 by Jo Shields
Import upstream version 0.15.0
5380
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
1 by Brandon Hale
Import upstream version 0.2.0
5381
      # It seems that -bexpall does not export symbols beginning with
5382
      # underscore (_), so it is better to generate a list of symbols to export.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5383
      _LT_TAGVAR(always_export_symbols, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5384
      if test "$aix_use_runtimelinking" = yes; then
5385
	# Warning - without using the other runtime loading flags (-brtl),
5386
	# -berok will link without error, but may produce a broken library.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5387
	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5388
        # Determine the default libpath from the value encoded in an
5389
        # empty executable.
5390
        _LT_SYS_MODULE_PATH_AIX
5391
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5392
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5393
      else
1 by Brandon Hale
Import upstream version 0.2.0
5394
	if test "$host_cpu" = ia64; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5395
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5396
	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5397
	  _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 Brandon Hale
Import upstream version 0.2.0
5398
	else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5399
	 # Determine the default libpath from the value encoded in an
5400
	 # empty executable.
5401
	 _LT_SYS_MODULE_PATH_AIX
5402
	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1 by Brandon Hale
Import upstream version 0.2.0
5403
	  # Warning - without using the other run time loading flags,
5404
	  # -berok will link without error, but may produce a broken library.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5405
	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5406
	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1 by Brandon Hale
Import upstream version 0.2.0
5407
	  # Exported symbols can be pulled into shared objects from archives
1.1.49 by Jo Shields
Import upstream version 0.15.0
5408
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5409
	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5410
	  # This is similar to how AIX traditionally builds its shared libraries.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5411
	  _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 Brandon Hale
Import upstream version 0.2.0
5412
	fi
5413
      fi
5414
      ;;
5415
5416
    amigaos*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5417
      case $host_cpu in
5418
      powerpc)
5419
            # see comment about AmigaOS4 .so support
5420
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5421
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5422
        ;;
5423
      m68k)
5424
            _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)'
5425
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5426
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5427
        ;;
5428
      esac
1 by Brandon Hale
Import upstream version 0.2.0
5429
      ;;
5430
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5431
    bsdi[[45]]*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5432
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
1 by Brandon Hale
Import upstream version 0.2.0
5433
      ;;
5434
1.1.49 by Jo Shields
Import upstream version 0.15.0
5435
    cygwin* | mingw* | pw32* | cegcc*)
1 by Brandon Hale
Import upstream version 0.2.0
5436
      # When not using gcc, we currently assume that we are using
5437
      # Microsoft Visual C++.
5438
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5439
      # no search path for DLLs.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5440
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5441
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
1 by Brandon Hale
Import upstream version 0.2.0
5442
      # Tell ltmain to make .lib files, not .a files.
5443
      libext=lib
5444
      # Tell ltmain to make .dll files, not .so files.
5445
      shrext_cmds=".dll"
5446
      # FIXME: Setting linknames here is a bad hack.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5447
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1 by Brandon Hale
Import upstream version 0.2.0
5448
      # The linker will automatically build a .lib file if we build a DLL.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5449
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
1 by Brandon Hale
Import upstream version 0.2.0
5450
      # FIXME: Should let the user specify the lib program.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5451
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5452
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5453
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5454
      ;;
5455
5456
    darwin* | rhapsody*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5457
      _LT_DARWIN_LINKER_FEATURES($1)
1 by Brandon Hale
Import upstream version 0.2.0
5458
      ;;
5459
5460
    dgux*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5461
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5462
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5463
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5464
      ;;
5465
5466
    freebsd1*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5467
      _LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5468
      ;;
5469
5470
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5471
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5472
    # does not break anything, and helps significantly (at the cost of a little
5473
    # extra space).
5474
    freebsd2.2*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5475
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5476
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5477
      _LT_TAGVAR(hardcode_direct, $1)=yes
5478
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5479
      ;;
5480
5481
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5482
    freebsd2*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5483
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5484
      _LT_TAGVAR(hardcode_direct, $1)=yes
5485
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5486
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5487
      ;;
5488
5489
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
5490
    freebsd* | dragonfly*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5491
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5492
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5493
      _LT_TAGVAR(hardcode_direct, $1)=yes
5494
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5495
      ;;
5496
5497
    hpux9*)
5498
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5499
	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5500
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5501
	_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 Brandon Hale
Import upstream version 0.2.0
5502
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5503
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5504
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5505
      _LT_TAGVAR(hardcode_direct, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5506
5507
      # hardcode_minus_L: Not really in the search PATH,
5508
      # but as the default location of the library.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5509
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5510
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1 by Brandon Hale
Import upstream version 0.2.0
5511
      ;;
5512
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5513
    hpux10*)
5514
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5515
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5516
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5517
	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5518
      fi
5519
      if test "$with_gnu_ld" = no; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5520
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5521
	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5522
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5523
	_LT_TAGVAR(hardcode_direct, $1)=yes
5524
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5525
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5526
	# hardcode_minus_L: Not really in the search PATH,
5527
	# but as the default location of the library.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5528
	_LT_TAGVAR(hardcode_minus_L, $1)=yes
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5529
      fi
5530
      ;;
5531
5532
    hpux11*)
5533
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5534
	case $host_cpu in
5535
	hppa*64*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5536
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5537
	  ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5538
	ia64*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5539
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5540
	  ;;
1 by Brandon Hale
Import upstream version 0.2.0
5541
	*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5542
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5543
	  ;;
5544
	esac
5545
      else
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5546
	case $host_cpu in
5547
	hppa*64*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5548
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5549
	  ;;
5550
	ia64*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5551
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5552
	  ;;
5553
	*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5554
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5555
	  ;;
5556
	esac
5557
      fi
5558
      if test "$with_gnu_ld" = no; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5559
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5560
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5561
5562
	case $host_cpu in
5563
	hppa*64*|ia64*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5564
	  _LT_TAGVAR(hardcode_direct, $1)=no
5565
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5566
	  ;;
5567
	*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5568
	  _LT_TAGVAR(hardcode_direct, $1)=yes
5569
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5570
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1 by Brandon Hale
Import upstream version 0.2.0
5571
5572
	  # hardcode_minus_L: Not really in the search PATH,
5573
	  # but as the default location of the library.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5574
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5575
	  ;;
5576
	esac
5577
      fi
5578
      ;;
5579
5580
    irix5* | irix6* | nonstopux*)
5581
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5582
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5583
	# Try to use the -exported_symbol ld option, if it does not
5584
	# work, assume that -exports_file does not work either and
5585
	# implicitly export all symbols.
5586
        save_LDFLAGS="$LDFLAGS"
5587
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5588
        AC_LINK_IFELSE(int foo(void) {},
5589
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5590
        )
5591
        LDFLAGS="$save_LDFLAGS"
1 by Brandon Hale
Import upstream version 0.2.0
5592
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5593
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5594
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5595
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5596
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5597
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5598
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5599
      _LT_TAGVAR(inherit_rpath, $1)=yes
5600
      _LT_TAGVAR(link_all_deplibs, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5601
      ;;
5602
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5603
    netbsd*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5604
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5605
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
1 by Brandon Hale
Import upstream version 0.2.0
5606
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5607
	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
1 by Brandon Hale
Import upstream version 0.2.0
5608
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5609
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5610
      _LT_TAGVAR(hardcode_direct, $1)=yes
5611
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5612
      ;;
5613
5614
    newsos6)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5615
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616
      _LT_TAGVAR(hardcode_direct, $1)=yes
5617
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5618
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5619
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5620
      ;;
5621
5622
    *nto* | *qnx*)
1 by Brandon Hale
Import upstream version 0.2.0
5623
      ;;
5624
5625
    openbsd*)
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5626
      if test -f /usr/libexec/ld.so; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5627
	_LT_TAGVAR(hardcode_direct, $1)=yes
5628
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5629
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5630
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5632
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5633
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5634
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5635
	else
5636
	  case $host_os in
5637
	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5638
	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5639
	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5640
	     ;;
5641
	   *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5642
	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5643
	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5644
	     ;;
5645
	  esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
5646
	fi
1 by Brandon Hale
Import upstream version 0.2.0
5647
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5648
	_LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5649
      fi
5650
      ;;
5651
5652
    os2*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5653
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5654
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5655
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5656
      _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'
5657
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1 by Brandon Hale
Import upstream version 0.2.0
5658
      ;;
5659
5660
    osf3*)
5661
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5662
	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5663
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5664
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5665
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5666
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
1 by Brandon Hale
Import upstream version 0.2.0
5667
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5668
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5669
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5670
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
1 by Brandon Hale
Import upstream version 0.2.0
5671
      ;;
5672
5673
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5674
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5675
	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5676
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5677
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1 by Brandon Hale
Import upstream version 0.2.0
5678
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5679
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5680
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5681
	_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~
5682
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1 by Brandon Hale
Import upstream version 0.2.0
5683
5684
	# Both c and cxx compiler support -rpath directly
1.1.49 by Jo Shields
Import upstream version 0.15.0
5685
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1 by Brandon Hale
Import upstream version 0.2.0
5686
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5687
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5688
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
1 by Brandon Hale
Import upstream version 0.2.0
5689
      ;;
5690
5691
    solaris*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5692
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
1 by Brandon Hale
Import upstream version 0.2.0
5693
      if test "$GCC" = yes; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5694
	wlarc='${wl}'
1.1.49 by Jo Shields
Import upstream version 0.15.0
5695
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5696
	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5697
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1 by Brandon Hale
Import upstream version 0.2.0
5698
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5699
	case `$CC -V 2>&1` in
5700
	*"Compilers 5.0"*)
5701
	  wlarc=''
5702
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5704
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5705
	  ;;
5706
	*)
5707
	  wlarc='${wl}'
5708
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5709
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5710
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5711
	  ;;
5712
	esac
1 by Brandon Hale
Import upstream version 0.2.0
5713
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5714
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5715
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5716
      case $host_os in
5717
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5718
      *)
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5719
	# The compiler driver will combine and reorder linker options,
5720
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
5721
	# but is careful enough not to reorder.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5722
	# Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5723
	if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5724
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5725
	else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5726
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5727
	fi
5728
	;;
1 by Brandon Hale
Import upstream version 0.2.0
5729
      esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
5730
      _LT_TAGVAR(link_all_deplibs, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5731
      ;;
5732
5733
    sunos4*)
5734
      if test "x$host_vendor" = xsequent; then
5735
	# Use $CC to link under sequent, because it throws in some extra .o
5736
	# files that make .init and .fini sections work.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5737
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5738
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5739
	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1 by Brandon Hale
Import upstream version 0.2.0
5740
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5741
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5742
      _LT_TAGVAR(hardcode_direct, $1)=yes
5743
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5744
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5745
      ;;
5746
5747
    sysv4)
5748
      case $host_vendor in
5749
	sni)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5750
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751
	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
1 by Brandon Hale
Import upstream version 0.2.0
5752
	;;
5753
	siemens)
5754
	  ## LD is ld it makes a PLAMLIB
5755
	  ## CC just makes a GrossModule.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5756
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5757
	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5758
	  _LT_TAGVAR(hardcode_direct, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5759
        ;;
5760
	motorola)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5761
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5762
	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
1 by Brandon Hale
Import upstream version 0.2.0
5763
	;;
5764
      esac
5765
      runpath_var='LD_RUN_PATH'
1.1.49 by Jo Shields
Import upstream version 0.15.0
5766
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5767
      ;;
5768
5769
    sysv4.3*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5770
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5771
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5772
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
1 by Brandon Hale
Import upstream version 0.2.0
5773
      ;;
5774
5775
    sysv4*MP*)
5776
      if test -d /usr/nec; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5777
	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5778
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5779
	runpath_var=LD_RUN_PATH
5780
	hardcode_runpath_var=yes
1.1.49 by Jo Shields
Import upstream version 0.15.0
5781
	_LT_TAGVAR(ld_shlibs, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5782
      fi
5783
      ;;
5784
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5785
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5786
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5787
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5788
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5789
      runpath_var='LD_RUN_PATH'
5790
5791
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5792
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5793
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5794
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5795
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5796
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5797
      fi
5798
      ;;
5799
5800
    sysv5* | sco3.2v5* | sco5v6*)
5801
      # Note: We can NOT use -z defs as we might desire, because we do not
5802
      # link with -lc, and that would cause any symbols used from libc to
5803
      # always be unresolved, which means just about no library would
5804
      # ever link correctly.  If we're not using GNU ld we use -z text
5805
      # though, which does catch some bad symbols but isn't as heavy-handed
5806
      # as -z defs.
1.1.49 by Jo Shields
Import upstream version 0.15.0
5807
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5808
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5809
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5810
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5811
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5812
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5813
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5814
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5815
      runpath_var='LD_RUN_PATH'
5816
5817
      if test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5818
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5819
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5820
      else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5821
	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5822
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
5823
      fi
1 by Brandon Hale
Import upstream version 0.2.0
5824
      ;;
5825
5826
    uts4*)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5827
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5828
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5829
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5830
      ;;
5831
5832
    *)
1.1.49 by Jo Shields
Import upstream version 0.15.0
5833
      _LT_TAGVAR(ld_shlibs, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5834
      ;;
5835
    esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
5836
5837
    if test x$host_vendor = xsni; then
5838
      case $host in
5839
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5840
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5841
	;;
5842
      esac
5843
    fi
1 by Brandon Hale
Import upstream version 0.2.0
5844
  fi
5845
])
1.1.49 by Jo Shields
Import upstream version 0.15.0
5846
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5847
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5848
5849
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5850
5851
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5852
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5853
_LT_DECL([], [extract_expsyms_cmds], [2],
5854
    [The commands to extract the exported symbol list from a shared archive])
1 by Brandon Hale
Import upstream version 0.2.0
5855
5856
#
5857
# Do we need to explicitly link libc?
5858
#
1.1.49 by Jo Shields
Import upstream version 0.15.0
5859
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
1 by Brandon Hale
Import upstream version 0.2.0
5860
x|xyes)
5861
  # Assume -lc should be added
1.1.49 by Jo Shields
Import upstream version 0.15.0
5862
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5863
5864
  if test "$enable_shared" = yes && test "$GCC" = yes; then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5865
    case $_LT_TAGVAR(archive_cmds, $1) in
1 by Brandon Hale
Import upstream version 0.2.0
5866
    *'~'*)
5867
      # FIXME: we may have to deal with multi-command sequences.
5868
      ;;
5869
    '$CC '*)
5870
      # Test whether the compiler implicitly links with -lc since on some
5871
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5872
      # to ld, don't add -lc before -lgcc.
5873
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
1.1.49 by Jo Shields
Import upstream version 0.15.0
5874
      $RM conftest*
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
5875
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1 by Brandon Hale
Import upstream version 0.2.0
5876
5877
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5878
        soname=conftest
5879
        lib=conftest
5880
        libobjs=conftest.$ac_objext
5881
        deplibs=
1.1.49 by Jo Shields
Import upstream version 0.15.0
5882
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5883
	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
1 by Brandon Hale
Import upstream version 0.2.0
5884
        compiler_flags=-v
5885
        linker_flags=-v
5886
        verstring=
5887
        output_objdir=.
5888
        libname=conftest
1.1.49 by Jo Shields
Import upstream version 0.15.0
5889
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5890
        _LT_TAGVAR(allow_undefined_flag, $1)=
5891
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
1 by Brandon Hale
Import upstream version 0.2.0
5892
        then
1.1.49 by Jo Shields
Import upstream version 0.15.0
5893
	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1 by Brandon Hale
Import upstream version 0.2.0
5894
        else
1.1.49 by Jo Shields
Import upstream version 0.15.0
5895
	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
1 by Brandon Hale
Import upstream version 0.2.0
5896
        fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5897
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
1 by Brandon Hale
Import upstream version 0.2.0
5898
      else
5899
        cat conftest.err 1>&5
5900
      fi
1.1.49 by Jo Shields
Import upstream version 0.15.0
5901
      $RM conftest*
5902
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
1 by Brandon Hale
Import upstream version 0.2.0
5903
      ;;
5904
    esac
5905
  fi
5906
  ;;
5907
esac
1.1.49 by Jo Shields
Import upstream version 0.15.0
5908
5909
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5910
    [Whether or not to add -lc for building shared libraries])
5911
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5912
    [enable_shared_with_static_runtimes], [0],
5913
    [Whether or not to disallow shared libs when runtime libs are static])
5914
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5915
    [Compiler flag to allow reflexive dlopens])
5916
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5917
    [Compiler flag to generate shared objects directly from archives])
5918
_LT_TAGDECL([], [compiler_needs_object], [1],
5919
    [Whether the compiler copes with passing no objects directly])
5920
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5921
    [Create an old-style archive from a shared archive])
5922
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5923
    [Create a temporary old-style archive to link instead of a shared archive])
5924
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5925
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5926
_LT_TAGDECL([], [module_cmds], [2],
5927
    [Commands used to build a loadable module if different from building
5928
    a shared archive.])
5929
_LT_TAGDECL([], [module_expsym_cmds], [2])
5930
_LT_TAGDECL([], [with_gnu_ld], [1],
5931
    [Whether we are building with GNU ld or not])
5932
_LT_TAGDECL([], [allow_undefined_flag], [1],
5933
    [Flag that allows shared libraries with undefined symbols to be built])
5934
_LT_TAGDECL([], [no_undefined_flag], [1],
5935
    [Flag that enforces no undefined symbols])
5936
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5937
    [Flag to hardcode $libdir into a binary during linking.
5938
    This must work even if $libdir does not exist])
5939
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5940
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5941
    during linking.  This must work even if $libdir does not exist]])
5942
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5943
    [Whether we need a single "-rpath" flag with a separated argument])
5944
_LT_TAGDECL([], [hardcode_direct], [0],
5945
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5946
    DIR into the resulting binary])
5947
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5948
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5949
    DIR into the resulting binary and the resulting library dependency is
5950
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5951
    library is relocated])
5952
_LT_TAGDECL([], [hardcode_minus_L], [0],
5953
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5954
    into the resulting binary])
5955
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5956
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5957
    into the resulting binary])
5958
_LT_TAGDECL([], [hardcode_automatic], [0],
5959
    [Set to "yes" if building a shared library automatically hardcodes DIR
5960
    into the library and all subsequent libraries and executables linked
5961
    against it])
5962
_LT_TAGDECL([], [inherit_rpath], [0],
5963
    [Set to yes if linker adds runtime paths of dependent libraries
5964
    to runtime path list])
5965
_LT_TAGDECL([], [link_all_deplibs], [0],
5966
    [Whether libtool must link a program against all its dependency libraries])
5967
_LT_TAGDECL([], [fix_srcfile_path], [1],
5968
    [Fix the shell variable $srcfile for the compiler])
5969
_LT_TAGDECL([], [always_export_symbols], [0],
5970
    [Set to "yes" if exported symbols are required])
5971
_LT_TAGDECL([], [export_symbols_cmds], [2],
5972
    [The commands to list exported symbols])
5973
_LT_TAGDECL([], [exclude_expsyms], [1],
5974
    [Symbols that should not be listed in the preloaded symbols])
5975
_LT_TAGDECL([], [include_expsyms], [1],
5976
    [Symbols that must always be exported])
5977
_LT_TAGDECL([], [prelink_cmds], [2],
5978
    [Commands necessary for linking programs (against libraries) with templates])
5979
_LT_TAGDECL([], [file_list_spec], [1],
5980
    [Specify filename containing input files])
5981
dnl FIXME: Not yet implemented
5982
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5983
dnl    [Compiler flag to generate thread safe objects])
5984
])# _LT_LINKER_SHLIBS
5985
5986
5987
# _LT_LANG_C_CONFIG([TAG])
5988
# ------------------------
5989
# Ensure that the configuration variables for a C compiler are suitably
5990
# defined.  These variables are subsequently used by _LT_CONFIG to write
5991
# the compiler configuration to `libtool'.
5992
m4_defun([_LT_LANG_C_CONFIG],
5993
[m4_require([_LT_DECL_EGREP])dnl
5994
lt_save_CC="$CC"
5995
AC_LANG_PUSH(C)
5996
5997
# Source file extension for C test sources.
5998
ac_ext=c
5999
6000
# Object file extension for compiled C test sources.
6001
objext=o
6002
_LT_TAGVAR(objext, $1)=$objext
6003
6004
# Code to be used in simple compile tests
6005
lt_simple_compile_test_code="int some_variable = 0;"
6006
6007
# Code to be used in simple link tests
6008
lt_simple_link_test_code='int main(){return(0);}'
6009
6010
_LT_TAG_COMPILER
6011
# Save the default compiler, since it gets overwritten when the other
6012
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6013
compiler_DEFAULT=$CC
6014
6015
# save warnings/boilerplate of simple test code
6016
_LT_COMPILER_BOILERPLATE
6017
_LT_LINKER_BOILERPLATE
6018
6019
if test -n "$compiler"; then
6020
  _LT_COMPILER_NO_RTTI($1)
6021
  _LT_COMPILER_PIC($1)
6022
  _LT_COMPILER_C_O($1)
6023
  _LT_COMPILER_FILE_LOCKS($1)
6024
  _LT_LINKER_SHLIBS($1)
6025
  _LT_SYS_DYNAMIC_LINKER($1)
6026
  _LT_LINKER_HARDCODE_LIBPATH($1)
6027
  LT_SYS_DLOPEN_SELF
6028
  _LT_CMD_STRIPLIB
6029
6030
  # Report which library types will actually be built
6031
  AC_MSG_CHECKING([if libtool supports shared libraries])
6032
  AC_MSG_RESULT([$can_build_shared])
6033
6034
  AC_MSG_CHECKING([whether to build shared libraries])
6035
  test "$can_build_shared" = "no" && enable_shared=no
6036
6037
  # On AIX, shared libraries and static libraries use the same namespace, and
6038
  # are all built from PIC.
6039
  case $host_os in
6040
  aix3*)
6041
    test "$enable_shared" = yes && enable_static=no
6042
    if test -n "$RANLIB"; then
6043
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6044
      postinstall_cmds='$RANLIB $lib'
6045
    fi
6046
    ;;
6047
6048
  aix[[4-9]]*)
6049
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6050
      test "$enable_shared" = yes && enable_static=no
6051
    fi
6052
    ;;
6053
  esac
6054
  AC_MSG_RESULT([$enable_shared])
6055
6056
  AC_MSG_CHECKING([whether to build static libraries])
6057
  # Make sure either enable_shared or enable_static is yes.
6058
  test "$enable_shared" = yes || enable_static=yes
6059
  AC_MSG_RESULT([$enable_static])
6060
6061
  _LT_CONFIG($1)
6062
fi
6063
AC_LANG_POP
6064
CC="$lt_save_CC"
6065
])# _LT_LANG_C_CONFIG
6066
6067
6068
# _LT_PROG_CXX
6069
# ------------
6070
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6071
# compiler, we have our own version here.
6072
m4_defun([_LT_PROG_CXX],
6073
[
6074
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6075
AC_PROG_CXX
6076
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6077
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6078
    (test "X$CXX" != "Xg++"))) ; then
6079
  AC_PROG_CXXCPP
6080
else
6081
  _lt_caught_CXX_error=yes
6082
fi
6083
popdef([AC_MSG_ERROR])
6084
])# _LT_PROG_CXX
6085
6086
dnl aclocal-1.4 backwards compatibility:
6087
dnl AC_DEFUN([_LT_PROG_CXX], [])
6088
6089
6090
# _LT_LANG_CXX_CONFIG([TAG])
6091
# --------------------------
6092
# Ensure that the configuration variables for a C++ compiler are suitably
6093
# defined.  These variables are subsequently used by _LT_CONFIG to write
6094
# the compiler configuration to `libtool'.
6095
m4_defun([_LT_LANG_CXX_CONFIG],
6096
[AC_REQUIRE([_LT_PROG_CXX])dnl
6097
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6098
m4_require([_LT_DECL_EGREP])dnl
6099
6100
AC_LANG_PUSH(C++)
6101
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6102
_LT_TAGVAR(allow_undefined_flag, $1)=
6103
_LT_TAGVAR(always_export_symbols, $1)=no
6104
_LT_TAGVAR(archive_expsym_cmds, $1)=
6105
_LT_TAGVAR(compiler_needs_object, $1)=no
6106
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6107
_LT_TAGVAR(hardcode_direct, $1)=no
6108
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6109
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6110
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6111
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6112
_LT_TAGVAR(hardcode_minus_L, $1)=no
6113
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6114
_LT_TAGVAR(hardcode_automatic, $1)=no
6115
_LT_TAGVAR(inherit_rpath, $1)=no
6116
_LT_TAGVAR(module_cmds, $1)=
6117
_LT_TAGVAR(module_expsym_cmds, $1)=
6118
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6119
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6120
_LT_TAGVAR(no_undefined_flag, $1)=
6121
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6122
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6123
6124
# Source file extension for C++ test sources.
6125
ac_ext=cpp
6126
6127
# Object file extension for compiled C++ test sources.
6128
objext=o
6129
_LT_TAGVAR(objext, $1)=$objext
6130
6131
# No sense in running all these tests if we already determined that
6132
# the CXX compiler isn't working.  Some variables (like enable_shared)
6133
# are currently assumed to apply to all compilers on this platform,
6134
# and will be corrupted by setting them based on a non-working compiler.
6135
if test "$_lt_caught_CXX_error" != yes; then
6136
  # Code to be used in simple compile tests
6137
  lt_simple_compile_test_code="int some_variable = 0;"
6138
6139
  # Code to be used in simple link tests
6140
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6141
6142
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6143
  _LT_TAG_COMPILER
6144
6145
  # save warnings/boilerplate of simple test code
6146
  _LT_COMPILER_BOILERPLATE
6147
  _LT_LINKER_BOILERPLATE
6148
6149
  # Allow CC to be a program name with arguments.
6150
  lt_save_CC=$CC
6151
  lt_save_LD=$LD
6152
  lt_save_GCC=$GCC
6153
  GCC=$GXX
6154
  lt_save_with_gnu_ld=$with_gnu_ld
6155
  lt_save_path_LD=$lt_cv_path_LD
6156
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6157
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6158
  else
6159
    $as_unset lt_cv_prog_gnu_ld
6160
  fi
6161
  if test -n "${lt_cv_path_LDCXX+set}"; then
6162
    lt_cv_path_LD=$lt_cv_path_LDCXX
6163
  else
6164
    $as_unset lt_cv_path_LD
6165
  fi
6166
  test -z "${LDCXX+set}" || LD=$LDCXX
6167
  CC=${CXX-"c++"}
6168
  compiler=$CC
6169
  _LT_TAGVAR(compiler, $1)=$CC
6170
  _LT_CC_BASENAME([$compiler])
6171
6172
  if test -n "$compiler"; then
6173
    # We don't want -fno-exception when compiling C++ code, so set the
6174
    # no_builtin_flag separately
6175
    if test "$GXX" = yes; then
6176
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6177
    else
6178
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6179
    fi
6180
6181
    if test "$GXX" = yes; then
6182
      # Set up default GNU C++ configuration
6183
6184
      LT_PATH_LD
6185
6186
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6187
      # archiving commands below assume that GNU ld is being used.
6188
      if test "$with_gnu_ld" = yes; then
6189
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6190
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6191
6192
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6193
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6194
6195
        # If archive_cmds runs LD, not CC, wlarc should be empty
6196
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6197
        #     investigate it a little bit more. (MM)
6198
        wlarc='${wl}'
6199
6200
        # ancient GNU ld didn't support --whole-archive et. al.
6201
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6202
	  $GREP 'no-whole-archive' > /dev/null; then
6203
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6204
        else
6205
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6206
        fi
6207
      else
6208
        with_gnu_ld=no
6209
        wlarc=
6210
6211
        # A generic and very simple default shared library creation
6212
        # command for GNU C++ for the case where it uses the native
6213
        # linker, instead of GNU ld.  If possible, this setting should
6214
        # overridden to take advantage of the native linker features on
6215
        # the platform it is being used on.
6216
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6217
      fi
6218
6219
      # Commands to make compiler produce verbose output that lists
6220
      # what "hidden" libraries, object files and flags are used when
6221
      # linking a shared library.
6222
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6223
6224
    else
6225
      GXX=no
6226
      with_gnu_ld=no
6227
      wlarc=
6228
    fi
6229
6230
    # PORTME: fill in a description of your system's C++ link characteristics
6231
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6232
    _LT_TAGVAR(ld_shlibs, $1)=yes
6233
    case $host_os in
6234
      aix3*)
6235
        # FIXME: insert proper C++ library support
6236
        _LT_TAGVAR(ld_shlibs, $1)=no
6237
        ;;
6238
      aix[[4-9]]*)
6239
        if test "$host_cpu" = ia64; then
6240
          # On IA64, the linker does run time linking by default, so we don't
6241
          # have to do anything special.
6242
          aix_use_runtimelinking=no
6243
          exp_sym_flag='-Bexport'
6244
          no_entry_flag=""
6245
        else
6246
          aix_use_runtimelinking=no
6247
6248
          # Test if we are trying to use run time linking or normal
6249
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6250
          # need to do runtime linking.
6251
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6252
	    for ld_flag in $LDFLAGS; do
6253
	      case $ld_flag in
6254
	      *-brtl*)
6255
	        aix_use_runtimelinking=yes
6256
	        break
6257
	        ;;
6258
	      esac
6259
	    done
6260
	    ;;
6261
          esac
6262
6263
          exp_sym_flag='-bexport'
6264
          no_entry_flag='-bnoentry'
6265
        fi
6266
6267
        # When large executables or shared objects are built, AIX ld can
6268
        # have problems creating the table of contents.  If linking a library
6269
        # or program results in "error TOC overflow" add -mminimal-toc to
6270
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6271
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6272
6273
        _LT_TAGVAR(archive_cmds, $1)=''
6274
        _LT_TAGVAR(hardcode_direct, $1)=yes
6275
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6276
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6277
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6278
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6279
6280
        if test "$GXX" = yes; then
6281
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6282
          # We only want to do this on AIX 4.2 and lower, the check
6283
          # below for broken collect2 doesn't work under 4.3+
6284
	  collect2name=`${CC} -print-prog-name=collect2`
6285
	  if test -f "$collect2name" &&
6286
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6287
	  then
6288
	    # We have reworked collect2
6289
	    :
6290
	  else
6291
	    # We have old collect2
6292
	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
6293
	    # It fails to find uninstalled libraries when the uninstalled
6294
	    # path is not listed in the libpath.  Setting hardcode_minus_L
6295
	    # to unsupported forces relinking
6296
	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
6297
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6298
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
6299
	  fi
6300
          esac
6301
          shared_flag='-shared'
6302
	  if test "$aix_use_runtimelinking" = yes; then
6303
	    shared_flag="$shared_flag "'${wl}-G'
6304
	  fi
6305
        else
6306
          # not using gcc
6307
          if test "$host_cpu" = ia64; then
6308
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6309
	  # chokes on -Wl,-G. The following line is correct:
6310
	  shared_flag='-G'
6311
          else
6312
	    if test "$aix_use_runtimelinking" = yes; then
6313
	      shared_flag='${wl}-G'
6314
	    else
6315
	      shared_flag='${wl}-bM:SRE'
6316
	    fi
6317
          fi
6318
        fi
6319
6320
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6321
        # It seems that -bexpall does not export symbols beginning with
6322
        # underscore (_), so it is better to generate a list of symbols to
6323
	# export.
6324
        _LT_TAGVAR(always_export_symbols, $1)=yes
6325
        if test "$aix_use_runtimelinking" = yes; then
6326
          # Warning - without using the other runtime loading flags (-brtl),
6327
          # -berok will link without error, but may produce a broken library.
6328
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6329
          # Determine the default libpath from the value encoded in an empty
6330
          # executable.
6331
          _LT_SYS_MODULE_PATH_AIX
6332
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6333
6334
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6335
        else
6336
          if test "$host_cpu" = ia64; then
6337
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6338
	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6339
	    _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"
6340
          else
6341
	    # Determine the default libpath from the value encoded in an
6342
	    # empty executable.
6343
	    _LT_SYS_MODULE_PATH_AIX
6344
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6345
	    # Warning - without using the other run time loading flags,
6346
	    # -berok will link without error, but may produce a broken library.
6347
	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6348
	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6349
	    # Exported symbols can be pulled into shared objects from archives
6350
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6351
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6352
	    # This is similar to how AIX traditionally builds its shared
6353
	    # libraries.
6354
	    _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'
6355
          fi
6356
        fi
6357
        ;;
6358
6359
      beos*)
6360
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6361
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6362
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6363
	  # support --undefined.  This deserves some investigation.  FIXME
6364
	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6365
	else
6366
	  _LT_TAGVAR(ld_shlibs, $1)=no
6367
	fi
6368
	;;
6369
6370
      chorus*)
6371
        case $cc_basename in
6372
          *)
6373
	  # FIXME: insert proper C++ library support
6374
	  _LT_TAGVAR(ld_shlibs, $1)=no
6375
	  ;;
6376
        esac
6377
        ;;
6378
6379
      cygwin* | mingw* | pw32* | cegcc*)
6380
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6381
        # as there is no search path for DLLs.
6382
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6383
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6384
        _LT_TAGVAR(always_export_symbols, $1)=no
6385
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6386
6387
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6388
          _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'
6389
          # If the export-symbols file already is a .def file (1st line
6390
          # is EXPORTS), use it as is; otherwise, prepend...
6391
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6392
	    cp $export_symbols $output_objdir/$soname.def;
6393
          else
6394
	    echo EXPORTS > $output_objdir/$soname.def;
6395
	    cat $export_symbols >> $output_objdir/$soname.def;
6396
          fi~
6397
          $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'
6398
        else
6399
          _LT_TAGVAR(ld_shlibs, $1)=no
6400
        fi
6401
        ;;
6402
      darwin* | rhapsody*)
6403
        _LT_DARWIN_LINKER_FEATURES($1)
6404
	;;
6405
6406
      dgux*)
6407
        case $cc_basename in
6408
          ec++*)
6409
	    # FIXME: insert proper C++ library support
6410
	    _LT_TAGVAR(ld_shlibs, $1)=no
6411
	    ;;
6412
          ghcx*)
6413
	    # Green Hills C++ Compiler
6414
	    # FIXME: insert proper C++ library support
6415
	    _LT_TAGVAR(ld_shlibs, $1)=no
6416
	    ;;
6417
          *)
6418
	    # FIXME: insert proper C++ library support
6419
	    _LT_TAGVAR(ld_shlibs, $1)=no
6420
	    ;;
6421
        esac
6422
        ;;
6423
6424
      freebsd[[12]]*)
6425
        # C++ shared libraries reported to be fairly broken before
6426
	# switch to ELF
6427
        _LT_TAGVAR(ld_shlibs, $1)=no
6428
        ;;
6429
6430
      freebsd-elf*)
6431
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6432
        ;;
6433
6434
      freebsd* | dragonfly*)
6435
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6436
        # conventions
6437
        _LT_TAGVAR(ld_shlibs, $1)=yes
6438
        ;;
6439
6440
      gnu*)
6441
        ;;
6442
6443
      hpux9*)
6444
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6445
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6446
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6447
        _LT_TAGVAR(hardcode_direct, $1)=yes
6448
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6449
				             # but as the default
6450
				             # location of the library.
6451
6452
        case $cc_basename in
6453
          CC*)
6454
            # FIXME: insert proper C++ library support
6455
            _LT_TAGVAR(ld_shlibs, $1)=no
6456
            ;;
6457
          aCC*)
6458
            _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'
6459
            # Commands to make compiler produce verbose output that lists
6460
            # what "hidden" libraries, object files and flags are used when
6461
            # linking a shared library.
6462
            #
6463
            # There doesn't appear to be a way to prevent this compiler from
6464
            # explicitly linking system object files so we need to strip them
6465
            # from the output so that they don't get included in the library
6466
            # dependencies.
6467
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6468
            ;;
6469
          *)
6470
            if test "$GXX" = yes; then
6471
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6472
            else
6473
              # FIXME: insert proper C++ library support
6474
              _LT_TAGVAR(ld_shlibs, $1)=no
6475
            fi
6476
            ;;
6477
        esac
6478
        ;;
6479
6480
      hpux10*|hpux11*)
6481
        if test $with_gnu_ld = no; then
6482
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6483
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6484
6485
          case $host_cpu in
6486
            hppa*64*|ia64*)
6487
              ;;
6488
            *)
6489
	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6490
              ;;
6491
          esac
6492
        fi
6493
        case $host_cpu in
6494
          hppa*64*|ia64*)
6495
            _LT_TAGVAR(hardcode_direct, $1)=no
6496
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6497
            ;;
6498
          *)
6499
            _LT_TAGVAR(hardcode_direct, $1)=yes
6500
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6501
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6502
					         # but as the default
6503
					         # location of the library.
6504
            ;;
6505
        esac
6506
6507
        case $cc_basename in
6508
          CC*)
6509
	    # FIXME: insert proper C++ library support
6510
	    _LT_TAGVAR(ld_shlibs, $1)=no
6511
	    ;;
6512
          aCC*)
6513
	    case $host_cpu in
6514
	      hppa*64*)
6515
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6516
	        ;;
6517
	      ia64*)
6518
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6519
	        ;;
6520
	      *)
6521
	        _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'
6522
	        ;;
6523
	    esac
6524
	    # Commands to make compiler produce verbose output that lists
6525
	    # what "hidden" libraries, object files and flags are used when
6526
	    # linking a shared library.
6527
	    #
6528
	    # There doesn't appear to be a way to prevent this compiler from
6529
	    # explicitly linking system object files so we need to strip them
6530
	    # from the output so that they don't get included in the library
6531
	    # dependencies.
6532
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6533
	    ;;
6534
          *)
6535
	    if test "$GXX" = yes; then
6536
	      if test $with_gnu_ld = no; then
6537
	        case $host_cpu in
6538
	          hppa*64*)
6539
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6540
	            ;;
6541
	          ia64*)
6542
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6543
	            ;;
6544
	          *)
6545
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6546
	            ;;
6547
	        esac
6548
	      fi
6549
	    else
6550
	      # FIXME: insert proper C++ library support
6551
	      _LT_TAGVAR(ld_shlibs, $1)=no
6552
	    fi
6553
	    ;;
6554
        esac
6555
        ;;
6556
6557
      interix[[3-9]]*)
6558
	_LT_TAGVAR(hardcode_direct, $1)=no
6559
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6560
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6561
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6562
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6563
	# Instead, shared libraries are loaded at an image base (0x10000000 by
6564
	# default) and relocated if they conflict, which is a slow very memory
6565
	# consuming and fragmenting process.  To avoid this, we pick a random,
6566
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6567
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6568
	_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'
6569
	_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'
6570
	;;
6571
      irix5* | irix6*)
6572
        case $cc_basename in
6573
          CC*)
6574
	    # SGI C++
6575
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6576
6577
	    # Archives containing C++ object files must be created using
6578
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6579
	    # necessary to make sure instantiated templates are included
6580
	    # in the archive.
6581
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6582
	    ;;
6583
          *)
6584
	    if test "$GXX" = yes; then
6585
	      if test "$with_gnu_ld" = no; then
6586
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6587
	      else
6588
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6589
	      fi
6590
	    fi
6591
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6592
	    ;;
6593
        esac
6594
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6595
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6596
        _LT_TAGVAR(inherit_rpath, $1)=yes
6597
        ;;
6598
6599
      linux* | k*bsd*-gnu)
6600
        case $cc_basename in
6601
          KCC*)
6602
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6603
6604
	    # KCC will only create a shared library if the output file
6605
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6606
	    # to its proper name (with version) after linking.
6607
	    _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'
6608
	    _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'
6609
	    # Commands to make compiler produce verbose output that lists
6610
	    # what "hidden" libraries, object files and flags are used when
6611
	    # linking a shared library.
6612
	    #
6613
	    # There doesn't appear to be a way to prevent this compiler from
6614
	    # explicitly linking system object files so we need to strip them
6615
	    # from the output so that they don't get included in the library
6616
	    # dependencies.
6617
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6618
6619
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6620
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6621
6622
	    # Archives containing C++ object files must be created using
6623
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6624
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6625
	    ;;
6626
	  icpc* | ecpc* )
6627
	    # Intel C++
6628
	    with_gnu_ld=yes
6629
	    # version 8.0 and above of icpc choke on multiply defined symbols
6630
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
6631
	    # earlier do not add the objects themselves.
6632
	    case `$CC -V 2>&1` in
6633
	      *"Version 7."*)
6634
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635
		_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'
6636
		;;
6637
	      *)  # Version 8.0 or newer
6638
	        tmp_idyn=
6639
	        case $host_cpu in
6640
		  ia64*) tmp_idyn=' -i_dynamic';;
6641
		esac
6642
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643
		_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'
6644
		;;
6645
	    esac
6646
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6647
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6648
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6649
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6650
	    ;;
6651
          pgCC* | pgcpp*)
6652
            # Portland Group C++ compiler
6653
	    case `$CC -V` in
6654
	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6655
	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6656
		rm -rf $tpldir~
6657
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6658
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6659
	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6660
		rm -rf $tpldir~
6661
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6662
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6663
		$RANLIB $oldlib'
6664
	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6665
		rm -rf $tpldir~
6666
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6667
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6668
	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6669
		rm -rf $tpldir~
6670
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6671
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6672
	      ;;
6673
	    *) # Version 6 will use weak symbols
6674
	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6675
	      _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'
6676
	      ;;
6677
	    esac
6678
6679
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6680
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6681
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6682
            ;;
6683
	  cxx*)
6684
	    # Compaq C++
6685
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6686
	    _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'
6687
6688
	    runpath_var=LD_RUN_PATH
6689
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6690
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6691
6692
	    # Commands to make compiler produce verbose output that lists
6693
	    # what "hidden" libraries, object files and flags are used when
6694
	    # linking a shared library.
6695
	    #
6696
	    # There doesn't appear to be a way to prevent this compiler from
6697
	    # explicitly linking system object files so we need to strip them
6698
	    # from the output so that they don't get included in the library
6699
	    # dependencies.
6700
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6701
	    ;;
6702
	  xl*)
6703
	    # IBM XL 8.0 on PPC, with GNU ld
6704
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6705
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6706
	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707
	    if test "x$supports_anon_versioning" = xyes; then
6708
	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6709
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6710
		echo "local: *; };" >> $output_objdir/$libname.ver~
6711
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6712
	    fi
6713
	    ;;
6714
	  *)
6715
	    case `$CC -V 2>&1 | sed 5q` in
6716
	    *Sun\ C*)
6717
	      # Sun C++ 5.9
6718
	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6719
	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6720
	      _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'
6721
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6722
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6723
	      _LT_TAGVAR(compiler_needs_object, $1)=yes
6724
6725
	      # Not sure whether something based on
6726
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6727
	      # would be better.
6728
	      output_verbose_link_cmd='echo'
6729
6730
	      # Archives containing C++ object files must be created using
6731
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6732
	      # necessary to make sure instantiated templates are included
6733
	      # in the archive.
6734
	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6735
	      ;;
6736
	    esac
6737
	    ;;
6738
	esac
6739
	;;
6740
6741
      lynxos*)
6742
        # FIXME: insert proper C++ library support
6743
	_LT_TAGVAR(ld_shlibs, $1)=no
6744
	;;
6745
6746
      m88k*)
6747
        # FIXME: insert proper C++ library support
6748
        _LT_TAGVAR(ld_shlibs, $1)=no
6749
	;;
6750
6751
      mvs*)
6752
        case $cc_basename in
6753
          cxx*)
6754
	    # FIXME: insert proper C++ library support
6755
	    _LT_TAGVAR(ld_shlibs, $1)=no
6756
	    ;;
6757
	  *)
6758
	    # FIXME: insert proper C++ library support
6759
	    _LT_TAGVAR(ld_shlibs, $1)=no
6760
	    ;;
6761
	esac
6762
	;;
6763
6764
      netbsd*)
6765
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6766
	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6767
	  wlarc=
6768
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6769
	  _LT_TAGVAR(hardcode_direct, $1)=yes
6770
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6771
	fi
6772
	# Workaround some broken pre-1.5 toolchains
6773
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6774
	;;
6775
6776
      *nto* | *qnx*)
6777
        _LT_TAGVAR(ld_shlibs, $1)=yes
6778
	;;
6779
6780
      openbsd2*)
6781
        # C++ shared libraries are fairly broken
6782
	_LT_TAGVAR(ld_shlibs, $1)=no
6783
	;;
6784
6785
      openbsd*)
6786
	if test -f /usr/libexec/ld.so; then
6787
	  _LT_TAGVAR(hardcode_direct, $1)=yes
6788
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6789
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6790
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6791
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6792
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6793
	    _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'
6794
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6795
	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6796
	  fi
6797
	  output_verbose_link_cmd=echo
6798
	else
6799
	  _LT_TAGVAR(ld_shlibs, $1)=no
6800
	fi
6801
	;;
6802
6803
      osf3* | osf4* | osf5*)
6804
        case $cc_basename in
6805
          KCC*)
6806
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6807
6808
	    # KCC will only create a shared library if the output file
6809
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6810
	    # to its proper name (with version) after linking.
6811
	    _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'
6812
6813
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6814
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6815
6816
	    # Archives containing C++ object files must be created using
6817
	    # the KAI C++ compiler.
6818
	    case $host in
6819
	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6820
	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6821
	    esac
6822
	    ;;
6823
          RCC*)
6824
	    # Rational C++ 2.4.1
6825
	    # FIXME: insert proper C++ library support
6826
	    _LT_TAGVAR(ld_shlibs, $1)=no
6827
	    ;;
6828
          cxx*)
6829
	    case $host in
6830
	      osf3*)
6831
	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6832
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6833
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6834
		;;
6835
	      *)
6836
	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6837
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6838
	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6839
	          echo "-hidden">> $lib.exp~
6840
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6841
	          $RM $lib.exp'
6842
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6843
		;;
6844
	    esac
6845
6846
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6847
6848
	    # Commands to make compiler produce verbose output that lists
6849
	    # what "hidden" libraries, object files and flags are used when
6850
	    # linking a shared library.
6851
	    #
6852
	    # There doesn't appear to be a way to prevent this compiler from
6853
	    # explicitly linking system object files so we need to strip them
6854
	    # from the output so that they don't get included in the library
6855
	    # dependencies.
6856
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6857
	    ;;
6858
	  *)
6859
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6860
	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6861
	      case $host in
6862
	        osf3*)
6863
	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6864
		  ;;
6865
	        *)
6866
	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6867
		  ;;
6868
	      esac
6869
6870
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6871
	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6872
6873
	      # Commands to make compiler produce verbose output that lists
6874
	      # what "hidden" libraries, object files and flags are used when
6875
	      # linking a shared library.
6876
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6877
6878
	    else
6879
	      # FIXME: insert proper C++ library support
6880
	      _LT_TAGVAR(ld_shlibs, $1)=no
6881
	    fi
6882
	    ;;
6883
        esac
6884
        ;;
6885
6886
      psos*)
6887
        # FIXME: insert proper C++ library support
6888
        _LT_TAGVAR(ld_shlibs, $1)=no
6889
        ;;
6890
6891
      sunos4*)
6892
        case $cc_basename in
6893
          CC*)
6894
	    # Sun C++ 4.x
6895
	    # FIXME: insert proper C++ library support
6896
	    _LT_TAGVAR(ld_shlibs, $1)=no
6897
	    ;;
6898
          lcc*)
6899
	    # Lucid
6900
	    # FIXME: insert proper C++ library support
6901
	    _LT_TAGVAR(ld_shlibs, $1)=no
6902
	    ;;
6903
          *)
6904
	    # FIXME: insert proper C++ library support
6905
	    _LT_TAGVAR(ld_shlibs, $1)=no
6906
	    ;;
6907
        esac
6908
        ;;
6909
6910
      solaris*)
6911
        case $cc_basename in
6912
          CC*)
6913
	    # Sun C++ 4.2, 5.x and Centerline C++
6914
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6915
	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6916
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6917
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6918
	      $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'
6919
6920
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6921
	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6922
	    case $host_os in
6923
	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6924
	      *)
6925
		# The compiler driver will combine and reorder linker options,
6926
		# but understands `-z linker_flag'.
6927
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
6928
		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6929
	        ;;
6930
	    esac
6931
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6932
6933
	    output_verbose_link_cmd='echo'
6934
6935
	    # Archives containing C++ object files must be created using
6936
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6937
	    # necessary to make sure instantiated templates are included
6938
	    # in the archive.
6939
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6940
	    ;;
6941
          gcx*)
6942
	    # Green Hills C++ Compiler
6943
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6944
6945
	    # The C++ compiler must be used to create the archive.
6946
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6947
	    ;;
6948
          *)
6949
	    # GNU C++ compiler with Solaris linker
6950
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6951
	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6952
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6953
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6954
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6955
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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.
6960
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6961
	      else
6962
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
6963
	        # platform.
6964
	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6965
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6966
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6967
6968
	        # Commands to make compiler produce verbose output that lists
6969
	        # what "hidden" libraries, object files and flags are used when
6970
	        # linking a shared library.
6971
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6972
	      fi
6973
6974
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6975
	      case $host_os in
6976
		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6977
		*)
6978
		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6979
		  ;;
6980
	      esac
6981
	    fi
6982
	    ;;
6983
        esac
6984
        ;;
6985
6986
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6987
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6988
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6989
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6990
      runpath_var='LD_RUN_PATH'
6991
6992
      case $cc_basename in
6993
        CC*)
6994
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6995
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6996
	  ;;
6997
	*)
6998
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6999
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7000
	  ;;
7001
      esac
7002
      ;;
7003
7004
      sysv5* | sco3.2v5* | sco5v6*)
7005
	# Note: We can NOT use -z defs as we might desire, because we do not
7006
	# link with -lc, and that would cause any symbols used from libc to
7007
	# always be unresolved, which means just about no library would
7008
	# ever link correctly.  If we're not using GNU ld we use -z text
7009
	# though, which does catch some bad symbols but isn't as heavy-handed
7010
	# as -z defs.
7011
	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7012
	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7013
	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7014
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7015
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7016
	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7017
	_LT_TAGVAR(link_all_deplibs, $1)=yes
7018
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7019
	runpath_var='LD_RUN_PATH'
7020
7021
	case $cc_basename in
7022
          CC*)
7023
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7024
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7025
	    ;;
7026
	  *)
7027
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7028
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7029
	    ;;
7030
	esac
7031
      ;;
7032
7033
      tandem*)
7034
        case $cc_basename in
7035
          NCC*)
7036
	    # NonStop-UX NCC 3.20
7037
	    # FIXME: insert proper C++ library support
7038
	    _LT_TAGVAR(ld_shlibs, $1)=no
7039
	    ;;
7040
          *)
7041
	    # FIXME: insert proper C++ library support
7042
	    _LT_TAGVAR(ld_shlibs, $1)=no
7043
	    ;;
7044
        esac
7045
        ;;
7046
7047
      vxworks*)
7048
        # FIXME: insert proper C++ library support
7049
        _LT_TAGVAR(ld_shlibs, $1)=no
7050
        ;;
7051
7052
      *)
7053
        # FIXME: insert proper C++ library support
7054
        _LT_TAGVAR(ld_shlibs, $1)=no
7055
        ;;
7056
    esac
7057
7058
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7059
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7060
7061
    _LT_TAGVAR(GCC, $1)="$GXX"
7062
    _LT_TAGVAR(LD, $1)="$LD"
7063
7064
    ## CAVEAT EMPTOR:
7065
    ## There is no encapsulation within the following macros, do not change
7066
    ## the running order or otherwise move them around unless you know exactly
7067
    ## what you are doing...
7068
    _LT_SYS_HIDDEN_LIBDEPS($1)
7069
    _LT_COMPILER_PIC($1)
7070
    _LT_COMPILER_C_O($1)
7071
    _LT_COMPILER_FILE_LOCKS($1)
7072
    _LT_LINKER_SHLIBS($1)
7073
    _LT_SYS_DYNAMIC_LINKER($1)
7074
    _LT_LINKER_HARDCODE_LIBPATH($1)
7075
7076
    _LT_CONFIG($1)
7077
  fi # test -n "$compiler"
7078
7079
  CC=$lt_save_CC
7080
  LDCXX=$LD
7081
  LD=$lt_save_LD
7082
  GCC=$lt_save_GCC
7083
  with_gnu_ld=$lt_save_with_gnu_ld
7084
  lt_cv_path_LDCXX=$lt_cv_path_LD
7085
  lt_cv_path_LD=$lt_save_path_LD
7086
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7087
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7088
fi # test "$_lt_caught_CXX_error" != yes
7089
7090
AC_LANG_POP
7091
])# _LT_LANG_CXX_CONFIG
7092
7093
7094
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1 by Brandon Hale
Import upstream version 0.2.0
7095
# ---------------------------------
1.1.49 by Jo Shields
Import upstream version 0.15.0
7096
# Figure out "hidden" library dependencies from verbose
7097
# compiler output when linking a shared library.
7098
# Parse the compiler output and extract the necessary
7099
# objects, libraries and library flags.
7100
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7101
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7102
# Dependencies to place before and after the object being linked:
7103
_LT_TAGVAR(predep_objects, $1)=
7104
_LT_TAGVAR(postdep_objects, $1)=
7105
_LT_TAGVAR(predeps, $1)=
7106
_LT_TAGVAR(postdeps, $1)=
7107
_LT_TAGVAR(compiler_lib_search_path, $1)=
7108
7109
dnl we can't use the lt_simple_compile_test_code here,
7110
dnl because it contains code intended for an executable,
7111
dnl not a library.  It's possible we should let each
7112
dnl tag define a new lt_????_link_test_code variable,
7113
dnl but it's only used here...
7114
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7115
int a;
7116
void foo (void) { a = 0; }
7117
_LT_EOF
7118
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7119
class Foo
7120
{
7121
public:
7122
  Foo (void) { a = 0; }
7123
private:
7124
  int a;
7125
};
7126
_LT_EOF
7127
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7128
      subroutine foo
7129
      implicit none
7130
      integer*4 a
7131
      a=0
7132
      return
7133
      end
7134
_LT_EOF
7135
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7136
      subroutine foo
7137
      implicit none
7138
      integer a
7139
      a=0
7140
      return
7141
      end
7142
_LT_EOF
7143
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7144
public class foo {
7145
  private int a;
7146
  public void bar (void) {
7147
    a = 0;
7148
  }
7149
};
7150
_LT_EOF
7151
])
7152
dnl Parse the compiler output and extract the necessary
7153
dnl objects, libraries and library flags.
7154
if AC_TRY_EVAL(ac_compile); then
7155
  # Parse the compiler output and extract the necessary
7156
  # objects, libraries and library flags.
7157
7158
  # Sentinel used to keep track of whether or not we are before
7159
  # the conftest object file.
7160
  pre_test_object_deps_done=no
7161
7162
  for p in `eval "$output_verbose_link_cmd"`; do
7163
    case $p in
7164
7165
    -L* | -R* | -l*)
7166
       # Some compilers place space between "-{L,R}" and the path.
7167
       # Remove the space.
7168
       if test $p = "-L" ||
7169
          test $p = "-R"; then
7170
	 prev=$p
7171
	 continue
7172
       else
7173
	 prev=
7174
       fi
7175
7176
       if test "$pre_test_object_deps_done" = no; then
7177
	 case $p in
7178
	 -L* | -R*)
7179
	   # Internal compiler library paths should come after those
7180
	   # provided the user.  The postdeps already come after the
7181
	   # user supplied libs so there is no need to process them.
7182
	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7183
	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7184
	   else
7185
	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7186
	   fi
7187
	   ;;
7188
	 # The "-l" case would never come before the object being
7189
	 # linked, so don't bother handling this case.
7190
	 esac
7191
       else
7192
	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7193
	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7194
	 else
7195
	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7196
	 fi
7197
       fi
7198
       ;;
7199
7200
    *.$objext)
7201
       # This assumes that the test object file only shows up
7202
       # once in the compiler output.
7203
       if test "$p" = "conftest.$objext"; then
7204
	 pre_test_object_deps_done=yes
7205
	 continue
7206
       fi
7207
7208
       if test "$pre_test_object_deps_done" = no; then
7209
	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7210
	   _LT_TAGVAR(predep_objects, $1)="$p"
7211
	 else
7212
	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7213
	 fi
7214
       else
7215
	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7216
	   _LT_TAGVAR(postdep_objects, $1)="$p"
7217
	 else
7218
	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7219
	 fi
7220
       fi
7221
       ;;
7222
7223
    *) ;; # Ignore the rest.
7224
7225
    esac
7226
  done
7227
7228
  # Clean up.
7229
  rm -f a.out a.exe
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
7230
else
1.1.49 by Jo Shields
Import upstream version 0.15.0
7231
  echo "libtool.m4: error: problem compiling $1 test program"
7232
fi
7233
7234
$RM -f confest.$objext
7235
7236
# PORTME: override above test on systems where it is broken
7237
m4_if([$1], [CXX],
7238
[case $host_os in
7239
interix[[3-9]]*)
7240
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7241
  # hack all around it, let's just trust "g++" to DTRT.
7242
  _LT_TAGVAR(predep_objects,$1)=
7243
  _LT_TAGVAR(postdep_objects,$1)=
7244
  _LT_TAGVAR(postdeps,$1)=
7245
  ;;
7246
7247
linux*)
7248
  case `$CC -V 2>&1 | sed 5q` in
7249
  *Sun\ C*)
7250
    # Sun C++ 5.9
7251
7252
    # The more standards-conforming stlport4 library is
7253
    # incompatible with the Cstd library. Avoid specifying
7254
    # it if it's in CXXFLAGS. Ignore libCrun as
7255
    # -library=stlport4 depends on it.
7256
    case " $CXX $CXXFLAGS " in
7257
    *" -library=stlport4 "*)
7258
      solaris_use_stlport4=yes
7259
      ;;
7260
    esac
7261
7262
    if test "$solaris_use_stlport4" != yes; then
7263
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7264
    fi
7265
    ;;
7266
  esac
7267
  ;;
7268
7269
solaris*)
7270
  case $cc_basename in
7271
  CC*)
7272
    # The more standards-conforming stlport4 library is
7273
    # incompatible with the Cstd library. Avoid specifying
7274
    # it if it's in CXXFLAGS. Ignore libCrun as
7275
    # -library=stlport4 depends on it.
7276
    case " $CXX $CXXFLAGS " in
7277
    *" -library=stlport4 "*)
7278
      solaris_use_stlport4=yes
7279
      ;;
7280
    esac
7281
7282
    # Adding this requires a known-good setup of shared libraries for
7283
    # Sun compiler versions before 5.6, else PIC objects from an old
7284
    # archive will be linked into the output, leading to subtle bugs.
7285
    if test "$solaris_use_stlport4" != yes; then
7286
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7287
    fi
7288
    ;;
7289
  esac
7290
  ;;
7291
esac
7292
])
7293
7294
case " $_LT_TAGVAR(postdeps, $1) " in
7295
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7296
esac
7297
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7298
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7299
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7300
fi
7301
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7302
    [The directories searched by this compiler when creating a shared library])
7303
_LT_TAGDECL([], [predep_objects], [1],
7304
    [Dependencies to place before and after the objects being linked to
7305
    create a shared library])
7306
_LT_TAGDECL([], [postdep_objects], [1])
7307
_LT_TAGDECL([], [predeps], [1])
7308
_LT_TAGDECL([], [postdeps], [1])
7309
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7310
    [The library search path used internally by the compiler when linking
7311
    a shared library])
7312
])# _LT_SYS_HIDDEN_LIBDEPS
7313
7314
7315
# _LT_PROG_F77
7316
# ------------
7317
# Since AC_PROG_F77 is broken, in that it returns the empty string
7318
# if there is no fortran compiler, we have our own version here.
7319
m4_defun([_LT_PROG_F77],
7320
[
7321
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7322
AC_PROG_F77
7323
if test -z "$F77" || test "X$F77" = "Xno"; then
7324
  _lt_disable_F77=yes
7325
fi
7326
popdef([AC_MSG_ERROR])
7327
])# _LT_PROG_F77
7328
7329
dnl aclocal-1.4 backwards compatibility:
7330
dnl AC_DEFUN([_LT_PROG_F77], [])
7331
7332
7333
# _LT_LANG_F77_CONFIG([TAG])
7334
# --------------------------
7335
# Ensure that the configuration variables for a Fortran 77 compiler are
7336
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7337
# to write the compiler configuration to `libtool'.
7338
m4_defun([_LT_LANG_F77_CONFIG],
7339
[AC_REQUIRE([_LT_PROG_F77])dnl
7340
AC_LANG_PUSH(Fortran 77)
7341
7342
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7343
_LT_TAGVAR(allow_undefined_flag, $1)=
7344
_LT_TAGVAR(always_export_symbols, $1)=no
7345
_LT_TAGVAR(archive_expsym_cmds, $1)=
7346
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7347
_LT_TAGVAR(hardcode_direct, $1)=no
7348
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7349
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7350
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7351
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7352
_LT_TAGVAR(hardcode_minus_L, $1)=no
7353
_LT_TAGVAR(hardcode_automatic, $1)=no
7354
_LT_TAGVAR(inherit_rpath, $1)=no
7355
_LT_TAGVAR(module_cmds, $1)=
7356
_LT_TAGVAR(module_expsym_cmds, $1)=
7357
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7358
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7359
_LT_TAGVAR(no_undefined_flag, $1)=
7360
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7361
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7362
7363
# Source file extension for f77 test sources.
7364
ac_ext=f
7365
7366
# Object file extension for compiled f77 test sources.
7367
objext=o
7368
_LT_TAGVAR(objext, $1)=$objext
7369
7370
# No sense in running all these tests if we already determined that
7371
# the F77 compiler isn't working.  Some variables (like enable_shared)
7372
# are currently assumed to apply to all compilers on this platform,
7373
# and will be corrupted by setting them based on a non-working compiler.
7374
if test "$_lt_disable_F77" != yes; then
7375
  # Code to be used in simple compile tests
7376
  lt_simple_compile_test_code="\
7377
      subroutine t
7378
      return
7379
      end
7380
"
7381
7382
  # Code to be used in simple link tests
7383
  lt_simple_link_test_code="\
7384
      program t
7385
      end
7386
"
7387
7388
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7389
  _LT_TAG_COMPILER
7390
7391
  # save warnings/boilerplate of simple test code
7392
  _LT_COMPILER_BOILERPLATE
7393
  _LT_LINKER_BOILERPLATE
7394
7395
  # Allow CC to be a program name with arguments.
7396
  lt_save_CC="$CC"
7397
  lt_save_GCC=$GCC
7398
  CC=${F77-"f77"}
7399
  compiler=$CC
7400
  _LT_TAGVAR(compiler, $1)=$CC
7401
  _LT_CC_BASENAME([$compiler])
7402
  GCC=$G77
7403
  if test -n "$compiler"; then
7404
    AC_MSG_CHECKING([if libtool supports shared libraries])
7405
    AC_MSG_RESULT([$can_build_shared])
7406
7407
    AC_MSG_CHECKING([whether to build shared libraries])
7408
    test "$can_build_shared" = "no" && enable_shared=no
7409
7410
    # On AIX, shared libraries and static libraries use the same namespace, and
7411
    # are all built from PIC.
7412
    case $host_os in
7413
      aix3*)
7414
        test "$enable_shared" = yes && enable_static=no
7415
        if test -n "$RANLIB"; then
7416
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7417
          postinstall_cmds='$RANLIB $lib'
7418
        fi
7419
        ;;
7420
      aix[[4-9]]*)
7421
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7422
	  test "$enable_shared" = yes && enable_static=no
7423
	fi
7424
        ;;
7425
    esac
7426
    AC_MSG_RESULT([$enable_shared])
7427
7428
    AC_MSG_CHECKING([whether to build static libraries])
7429
    # Make sure either enable_shared or enable_static is yes.
7430
    test "$enable_shared" = yes || enable_static=yes
7431
    AC_MSG_RESULT([$enable_static])
7432
7433
    _LT_TAGVAR(GCC, $1)="$G77"
7434
    _LT_TAGVAR(LD, $1)="$LD"
7435
7436
    ## CAVEAT EMPTOR:
7437
    ## There is no encapsulation within the following macros, do not change
7438
    ## the running order or otherwise move them around unless you know exactly
7439
    ## what you are doing...
7440
    _LT_COMPILER_PIC($1)
7441
    _LT_COMPILER_C_O($1)
7442
    _LT_COMPILER_FILE_LOCKS($1)
7443
    _LT_LINKER_SHLIBS($1)
7444
    _LT_SYS_DYNAMIC_LINKER($1)
7445
    _LT_LINKER_HARDCODE_LIBPATH($1)
7446
7447
    _LT_CONFIG($1)
7448
  fi # test -n "$compiler"
7449
7450
  GCC=$lt_save_GCC
7451
  CC="$lt_save_CC"
7452
fi # test "$_lt_disable_F77" != yes
7453
7454
AC_LANG_POP
7455
])# _LT_LANG_F77_CONFIG
7456
7457
7458
# _LT_PROG_FC
7459
# -----------
7460
# Since AC_PROG_FC is broken, in that it returns the empty string
7461
# if there is no fortran compiler, we have our own version here.
7462
m4_defun([_LT_PROG_FC],
7463
[
7464
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7465
AC_PROG_FC
7466
if test -z "$FC" || test "X$FC" = "Xno"; then
7467
  _lt_disable_FC=yes
7468
fi
7469
popdef([AC_MSG_ERROR])
7470
])# _LT_PROG_FC
7471
7472
dnl aclocal-1.4 backwards compatibility:
7473
dnl AC_DEFUN([_LT_PROG_FC], [])
7474
7475
7476
# _LT_LANG_FC_CONFIG([TAG])
7477
# -------------------------
7478
# Ensure that the configuration variables for a Fortran compiler are
7479
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7480
# to write the compiler configuration to `libtool'.
7481
m4_defun([_LT_LANG_FC_CONFIG],
7482
[AC_REQUIRE([_LT_PROG_FC])dnl
7483
AC_LANG_PUSH(Fortran)
7484
7485
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7486
_LT_TAGVAR(allow_undefined_flag, $1)=
7487
_LT_TAGVAR(always_export_symbols, $1)=no
7488
_LT_TAGVAR(archive_expsym_cmds, $1)=
7489
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7490
_LT_TAGVAR(hardcode_direct, $1)=no
7491
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7492
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7493
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7494
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7495
_LT_TAGVAR(hardcode_minus_L, $1)=no
7496
_LT_TAGVAR(hardcode_automatic, $1)=no
7497
_LT_TAGVAR(inherit_rpath, $1)=no
7498
_LT_TAGVAR(module_cmds, $1)=
7499
_LT_TAGVAR(module_expsym_cmds, $1)=
7500
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7501
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7502
_LT_TAGVAR(no_undefined_flag, $1)=
7503
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7504
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7505
7506
# Source file extension for fc test sources.
7507
ac_ext=${ac_fc_srcext-f}
7508
7509
# Object file extension for compiled fc test sources.
7510
objext=o
7511
_LT_TAGVAR(objext, $1)=$objext
7512
7513
# No sense in running all these tests if we already determined that
7514
# the FC compiler isn't working.  Some variables (like enable_shared)
7515
# are currently assumed to apply to all compilers on this platform,
7516
# and will be corrupted by setting them based on a non-working compiler.
7517
if test "$_lt_disable_FC" != yes; then
7518
  # Code to be used in simple compile tests
7519
  lt_simple_compile_test_code="\
7520
      subroutine t
7521
      return
7522
      end
7523
"
7524
7525
  # Code to be used in simple link tests
7526
  lt_simple_link_test_code="\
7527
      program t
7528
      end
7529
"
7530
7531
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7532
  _LT_TAG_COMPILER
7533
7534
  # save warnings/boilerplate of simple test code
7535
  _LT_COMPILER_BOILERPLATE
7536
  _LT_LINKER_BOILERPLATE
7537
7538
  # Allow CC to be a program name with arguments.
7539
  lt_save_CC="$CC"
7540
  lt_save_GCC=$GCC
7541
  CC=${FC-"f95"}
7542
  compiler=$CC
7543
  GCC=$ac_cv_fc_compiler_gnu
7544
7545
  _LT_TAGVAR(compiler, $1)=$CC
7546
  _LT_CC_BASENAME([$compiler])
7547
7548
  if test -n "$compiler"; then
7549
    AC_MSG_CHECKING([if libtool supports shared libraries])
7550
    AC_MSG_RESULT([$can_build_shared])
7551
7552
    AC_MSG_CHECKING([whether to build shared libraries])
7553
    test "$can_build_shared" = "no" && enable_shared=no
7554
7555
    # On AIX, shared libraries and static libraries use the same namespace, and
7556
    # are all built from PIC.
7557
    case $host_os in
7558
      aix3*)
7559
        test "$enable_shared" = yes && enable_static=no
7560
        if test -n "$RANLIB"; then
7561
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7562
          postinstall_cmds='$RANLIB $lib'
7563
        fi
7564
        ;;
7565
      aix[[4-9]]*)
7566
	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7567
	  test "$enable_shared" = yes && enable_static=no
7568
	fi
7569
        ;;
7570
    esac
7571
    AC_MSG_RESULT([$enable_shared])
7572
7573
    AC_MSG_CHECKING([whether to build static libraries])
7574
    # Make sure either enable_shared or enable_static is yes.
7575
    test "$enable_shared" = yes || enable_static=yes
7576
    AC_MSG_RESULT([$enable_static])
7577
7578
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7579
    _LT_TAGVAR(LD, $1)="$LD"
7580
7581
    ## CAVEAT EMPTOR:
7582
    ## There is no encapsulation within the following macros, do not change
7583
    ## the running order or otherwise move them around unless you know exactly
7584
    ## what you are doing...
7585
    _LT_SYS_HIDDEN_LIBDEPS($1)
7586
    _LT_COMPILER_PIC($1)
7587
    _LT_COMPILER_C_O($1)
7588
    _LT_COMPILER_FILE_LOCKS($1)
7589
    _LT_LINKER_SHLIBS($1)
7590
    _LT_SYS_DYNAMIC_LINKER($1)
7591
    _LT_LINKER_HARDCODE_LIBPATH($1)
7592
7593
    _LT_CONFIG($1)
7594
  fi # test -n "$compiler"
7595
7596
  GCC=$lt_save_GCC
7597
  CC="$lt_save_CC"
7598
fi # test "$_lt_disable_FC" != yes
7599
7600
AC_LANG_POP
7601
])# _LT_LANG_FC_CONFIG
7602
7603
7604
# _LT_LANG_GCJ_CONFIG([TAG])
7605
# --------------------------
7606
# Ensure that the configuration variables for the GNU Java Compiler compiler
7607
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7608
# to write the compiler configuration to `libtool'.
7609
m4_defun([_LT_LANG_GCJ_CONFIG],
7610
[AC_REQUIRE([LT_PROG_GCJ])dnl
7611
AC_LANG_SAVE
7612
7613
# Source file extension for Java test sources.
7614
ac_ext=java
7615
7616
# Object file extension for compiled Java test sources.
7617
objext=o
7618
_LT_TAGVAR(objext, $1)=$objext
7619
7620
# Code to be used in simple compile tests
7621
lt_simple_compile_test_code="class foo {}"
7622
7623
# Code to be used in simple link tests
7624
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7625
7626
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7627
_LT_TAG_COMPILER
7628
7629
# save warnings/boilerplate of simple test code
7630
_LT_COMPILER_BOILERPLATE
7631
_LT_LINKER_BOILERPLATE
7632
7633
# Allow CC to be a program name with arguments.
7634
lt_save_CC="$CC"
7635
lt_save_GCC=$GCC
7636
GCC=yes
7637
CC=${GCJ-"gcj"}
7638
compiler=$CC
7639
_LT_TAGVAR(compiler, $1)=$CC
7640
_LT_TAGVAR(LD, $1)="$LD"
7641
_LT_CC_BASENAME([$compiler])
7642
7643
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7644
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7645
7646
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7647
7648
if test -n "$compiler"; then
7649
  _LT_COMPILER_NO_RTTI($1)
7650
  _LT_COMPILER_PIC($1)
7651
  _LT_COMPILER_C_O($1)
7652
  _LT_COMPILER_FILE_LOCKS($1)
7653
  _LT_LINKER_SHLIBS($1)
7654
  _LT_LINKER_HARDCODE_LIBPATH($1)
7655
7656
  _LT_CONFIG($1)
7657
fi
7658
7659
AC_LANG_RESTORE
7660
7661
GCC=$lt_save_GCC
7662
CC="$lt_save_CC"
7663
])# _LT_LANG_GCJ_CONFIG
7664
7665
7666
# _LT_LANG_RC_CONFIG([TAG])
7667
# -------------------------
7668
# Ensure that the configuration variables for the Windows resource compiler
7669
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7670
# to write the compiler configuration to `libtool'.
7671
m4_defun([_LT_LANG_RC_CONFIG],
7672
[AC_REQUIRE([LT_PROG_RC])dnl
7673
AC_LANG_SAVE
7674
7675
# Source file extension for RC test sources.
7676
ac_ext=rc
7677
7678
# Object file extension for compiled RC test sources.
7679
objext=o
7680
_LT_TAGVAR(objext, $1)=$objext
7681
7682
# Code to be used in simple compile tests
7683
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7684
7685
# Code to be used in simple link tests
7686
lt_simple_link_test_code="$lt_simple_compile_test_code"
7687
7688
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7689
_LT_TAG_COMPILER
7690
7691
# save warnings/boilerplate of simple test code
7692
_LT_COMPILER_BOILERPLATE
7693
_LT_LINKER_BOILERPLATE
7694
7695
# Allow CC to be a program name with arguments.
7696
lt_save_CC="$CC"
7697
lt_save_GCC=$GCC
7698
GCC=
7699
CC=${RC-"windres"}
7700
compiler=$CC
7701
_LT_TAGVAR(compiler, $1)=$CC
7702
_LT_CC_BASENAME([$compiler])
7703
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7704
7705
if test -n "$compiler"; then
7706
  :
7707
  _LT_CONFIG($1)
7708
fi
7709
7710
GCC=$lt_save_GCC
7711
AC_LANG_RESTORE
7712
CC="$lt_save_CC"
7713
])# _LT_LANG_RC_CONFIG
7714
7715
7716
# LT_PROG_GCJ
7717
# -----------
7718
AC_DEFUN([LT_PROG_GCJ],
7719
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7720
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7721
    [AC_CHECK_TOOL(GCJ, gcj,)
7722
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7723
      AC_SUBST(GCJFLAGS)])])[]dnl
7724
])
7725
7726
# Old name:
7727
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7728
dnl aclocal-1.4 backwards compatibility:
7729
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7730
7731
7732
# LT_PROG_RC
7733
# ----------
7734
AC_DEFUN([LT_PROG_RC],
7735
[AC_CHECK_TOOL(RC, windres,)
7736
])
7737
7738
# Old name:
7739
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7740
dnl aclocal-1.4 backwards compatibility:
7741
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7742
7743
7744
# _LT_DECL_EGREP
7745
# --------------
7746
# If we don't have a new enough Autoconf to choose the best grep
7747
# available, choose the one first in the user's PATH.
7748
m4_defun([_LT_DECL_EGREP],
7749
[AC_REQUIRE([AC_PROG_EGREP])dnl
7750
AC_REQUIRE([AC_PROG_FGREP])dnl
7751
test -z "$GREP" && GREP=grep
7752
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7753
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7754
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7755
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7756
AC_SUBST([GREP])
7757
])
7758
7759
7760
# _LT_DECL_OBJDUMP
7761
# --------------
7762
# If we don't have a new enough Autoconf to choose the best objdump
7763
# available, choose the one first in the user's PATH.
7764
m4_defun([_LT_DECL_OBJDUMP],
7765
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7766
test -z "$OBJDUMP" && OBJDUMP=objdump
7767
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7768
AC_SUBST([OBJDUMP])
7769
])
7770
7771
7772
# _LT_DECL_SED
7773
# ------------
7774
# Check for a fully-functional sed program, that truncates
7775
# as few characters as possible.  Prefer GNU sed if found.
7776
m4_defun([_LT_DECL_SED],
7777
[AC_PROG_SED
7778
test -z "$SED" && SED=sed
7779
Xsed="$SED -e 1s/^X//"
7780
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7781
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7782
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7783
])# _LT_DECL_SED
7784
7785
m4_ifndef([AC_PROG_SED], [
1 by Brandon Hale
Import upstream version 0.2.0
7786
# NOTE: This macro has been submitted for inclusion into   #
7787
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7788
#  a released version of Autoconf we should remove this    #
7789
#  macro and use it instead.                               #
1.1.49 by Jo Shields
Import upstream version 0.15.0
7790
7791
m4_defun([AC_PROG_SED],
1 by Brandon Hale
Import upstream version 0.2.0
7792
[AC_MSG_CHECKING([for a sed that does not truncate output])
7793
AC_CACHE_VAL(lt_cv_path_SED,
7794
[# Loop through the user's path and test for sed and gsed.
7795
# Then use that list of sed's as ones to test for truncation.
7796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797
for as_dir in $PATH
7798
do
7799
  IFS=$as_save_IFS
7800
  test -z "$as_dir" && as_dir=.
7801
  for lt_ac_prog in sed gsed; do
7802
    for ac_exec_ext in '' $ac_executable_extensions; do
1.1.49 by Jo Shields
Import upstream version 0.15.0
7803
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
1 by Brandon Hale
Import upstream version 0.2.0
7804
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7805
      fi
7806
    done
7807
  done
7808
done
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
7809
IFS=$as_save_IFS
1 by Brandon Hale
Import upstream version 0.2.0
7810
lt_ac_max=0
7811
lt_ac_count=0
7812
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7813
# along with /bin/sed that truncates output.
7814
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
7815
  test ! -f $lt_ac_sed && continue
1 by Brandon Hale
Import upstream version 0.2.0
7816
  cat /dev/null > conftest.in
7817
  lt_ac_count=0
7818
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7819
  # Check for GNU sed and select it if it is found.
7820
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7821
    lt_cv_path_SED=$lt_ac_sed
7822
    break
7823
  fi
7824
  while true; do
7825
    cat conftest.in conftest.in >conftest.tmp
7826
    mv conftest.tmp conftest.in
7827
    cp conftest.in conftest.nl
7828
    echo >>conftest.nl
7829
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7830
    cmp -s conftest.out conftest.nl || break
7831
    # 10000 chars as input seems more than enough
7832
    test $lt_ac_count -gt 10 && break
7833
    lt_ac_count=`expr $lt_ac_count + 1`
7834
    if test $lt_ac_count -gt $lt_ac_max; then
7835
      lt_ac_max=$lt_ac_count
7836
      lt_cv_path_SED=$lt_ac_sed
7837
    fi
7838
  done
7839
done
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
7840
])
1 by Brandon Hale
Import upstream version 0.2.0
7841
SED=$lt_cv_path_SED
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
7842
AC_SUBST([SED])
1 by Brandon Hale
Import upstream version 0.2.0
7843
AC_MSG_RESULT([$SED])
1.1.49 by Jo Shields
Import upstream version 0.15.0
7844
])#AC_PROG_SED
7845
])#m4_ifndef
7846
7847
# Old name:
7848
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7849
dnl aclocal-1.4 backwards compatibility:
7850
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7851
7852
7853
# _LT_CHECK_SHELL_FEATURES
7854
# ------------------------
7855
# Find out whether the shell is Bourne or XSI compatible,
7856
# or has some other useful features.
7857
m4_defun([_LT_CHECK_SHELL_FEATURES],
7858
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7859
# Try some XSI features
7860
xsi_shell=no
7861
( _lt_dummy="a/b/c"
7862
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7863
      = c,a/b,, \
7864
    && eval 'test $(( 1 + 1 )) -eq 2 \
7865
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7866
  && xsi_shell=yes
7867
AC_MSG_RESULT([$xsi_shell])
7868
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7869
7870
AC_MSG_CHECKING([whether the shell understands "+="])
7871
lt_shell_append=no
7872
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7873
    >/dev/null 2>&1 \
7874
  && lt_shell_append=yes
7875
AC_MSG_RESULT([$lt_shell_append])
7876
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7877
7878
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7879
  lt_unset=unset
7880
else
7881
  lt_unset=false
7882
fi
7883
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7884
7885
# test EBCDIC or ASCII
7886
case `echo X|tr X '\101'` in
7887
 A) # ASCII based system
7888
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7889
  lt_SP2NL='tr \040 \012'
7890
  lt_NL2SP='tr \015\012 \040\040'
7891
  ;;
7892
 *) # EBCDIC based system
7893
  lt_SP2NL='tr \100 \n'
7894
  lt_NL2SP='tr \r\n \100\100'
7895
  ;;
7896
esac
7897
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7898
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7899
])# _LT_CHECK_SHELL_FEATURES
7900
7901
7902
# _LT_PROG_XSI_SHELLFNS
7903
# ---------------------
7904
# Bourne and XSI compatible variants of some useful shell functions.
7905
m4_defun([_LT_PROG_XSI_SHELLFNS],
7906
[case $xsi_shell in
7907
  yes)
7908
    cat << \_LT_EOF >> "$cfgfile"
7909
7910
# func_dirname file append nondir_replacement
7911
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7912
# otherwise set result to NONDIR_REPLACEMENT.
7913
func_dirname ()
7914
{
7915
  case ${1} in
7916
    */*) func_dirname_result="${1%/*}${2}" ;;
7917
    *  ) func_dirname_result="${3}" ;;
7918
  esac
7919
}
7920
7921
# func_basename file
7922
func_basename ()
7923
{
7924
  func_basename_result="${1##*/}"
7925
}
7926
7927
# func_dirname_and_basename file append nondir_replacement
7928
# perform func_basename and func_dirname in a single function
7929
# call:
7930
#   dirname:  Compute the dirname of FILE.  If nonempty,
7931
#             add APPEND to the result, otherwise set result
7932
#             to NONDIR_REPLACEMENT.
7933
#             value returned in "$func_dirname_result"
7934
#   basename: Compute filename of FILE.
7935
#             value retuned in "$func_basename_result"
7936
# Implementation must be kept synchronized with func_dirname
7937
# and func_basename. For efficiency, we do not delegate to
7938
# those functions but instead duplicate the functionality here.
7939
func_dirname_and_basename ()
7940
{
7941
  case ${1} in
7942
    */*) func_dirname_result="${1%/*}${2}" ;;
7943
    *  ) func_dirname_result="${3}" ;;
7944
  esac
7945
  func_basename_result="${1##*/}"
7946
}
7947
7948
# func_stripname prefix suffix name
7949
# strip PREFIX and SUFFIX off of NAME.
7950
# PREFIX and SUFFIX must not contain globbing or regex special
7951
# characters, hashes, percent signs, but SUFFIX may contain a leading
7952
# dot (in which case that matches only a dot).
7953
func_stripname ()
7954
{
7955
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7956
  # positional parameters, so assign one to ordinary parameter first.
7957
  func_stripname_result=${3}
7958
  func_stripname_result=${func_stripname_result#"${1}"}
7959
  func_stripname_result=${func_stripname_result%"${2}"}
7960
}
7961
7962
# func_opt_split
7963
func_opt_split ()
7964
{
7965
  func_opt_split_opt=${1%%=*}
7966
  func_opt_split_arg=${1#*=}
7967
}
7968
7969
# func_lo2o object
7970
func_lo2o ()
7971
{
7972
  case ${1} in
7973
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7974
    *)    func_lo2o_result=${1} ;;
7975
  esac
7976
}
7977
7978
# func_xform libobj-or-source
7979
func_xform ()
7980
{
7981
  func_xform_result=${1%.*}.lo
7982
}
7983
7984
# func_arith arithmetic-term...
7985
func_arith ()
7986
{
7987
  func_arith_result=$(( $[*] ))
7988
}
7989
7990
# func_len string
7991
# STRING may not start with a hyphen.
7992
func_len ()
7993
{
7994
  func_len_result=${#1}
7995
}
7996
7997
_LT_EOF
7998
    ;;
7999
  *) # Bourne compatible functions.
8000
    cat << \_LT_EOF >> "$cfgfile"
8001
8002
# func_dirname file append nondir_replacement
8003
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8004
# otherwise set result to NONDIR_REPLACEMENT.
8005
func_dirname ()
8006
{
8007
  # Extract subdirectory from the argument.
8008
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8009
  if test "X$func_dirname_result" = "X${1}"; then
8010
    func_dirname_result="${3}"
8011
  else
8012
    func_dirname_result="$func_dirname_result${2}"
8013
  fi
8014
}
8015
8016
# func_basename file
8017
func_basename ()
8018
{
8019
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8020
}
8021
8022
dnl func_dirname_and_basename
8023
dnl A portable version of this function is already defined in general.m4sh
8024
dnl so there is no need for it here.
8025
8026
# func_stripname prefix suffix name
8027
# strip PREFIX and SUFFIX off of NAME.
8028
# PREFIX and SUFFIX must not contain globbing or regex special
8029
# characters, hashes, percent signs, but SUFFIX may contain a leading
8030
# dot (in which case that matches only a dot).
8031
# func_strip_suffix prefix name
8032
func_stripname ()
8033
{
8034
  case ${2} in
8035
    .*) func_stripname_result=`$ECHO "X${3}" \
8036
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8037
    *)  func_stripname_result=`$ECHO "X${3}" \
8038
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8039
  esac
8040
}
8041
8042
# sed scripts:
8043
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8044
my_sed_long_arg='1s/^-[[^=]]*=//'
8045
8046
# func_opt_split
8047
func_opt_split ()
8048
{
8049
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8050
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8051
}
8052
8053
# func_lo2o object
8054
func_lo2o ()
8055
{
8056
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8057
}
8058
8059
# func_xform libobj-or-source
8060
func_xform ()
8061
{
8062
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8063
}
8064
8065
# func_arith arithmetic-term...
8066
func_arith ()
8067
{
8068
  func_arith_result=`expr "$[@]"`
8069
}
8070
8071
# func_len string
8072
# STRING may not start with a hyphen.
8073
func_len ()
8074
{
8075
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8076
}
8077
8078
_LT_EOF
8079
esac
8080
8081
case $lt_shell_append in
8082
  yes)
8083
    cat << \_LT_EOF >> "$cfgfile"
8084
8085
# func_append var value
8086
# Append VALUE to the end of shell variable VAR.
8087
func_append ()
8088
{
8089
  eval "$[1]+=\$[2]"
8090
}
8091
_LT_EOF
8092
    ;;
8093
  *)
8094
    cat << \_LT_EOF >> "$cfgfile"
8095
8096
# func_append var value
8097
# Append VALUE to the end of shell variable VAR.
8098
func_append ()
8099
{
8100
  eval "$[1]=\$$[1]\$[2]"
8101
}
8102
8103
_LT_EOF
8104
    ;;
8105
  esac
8106
])
8107
8108
# Helper functions for option handling.                    -*- Autoconf -*-
8109
#
8110
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8111
#   Written by Gary V. Vaughan, 2004
8112
#
8113
# This file is free software; the Free Software Foundation gives
8114
# unlimited permission to copy and/or distribute it, with or without
8115
# modifications, as long as this notice is preserved.
8116
8117
# serial 6 ltoptions.m4
8118
8119
# This is to help aclocal find these macros, as it can't see m4_define.
8120
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8121
8122
8123
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8124
# ------------------------------------------
8125
m4_define([_LT_MANGLE_OPTION],
8126
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8127
8128
8129
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8130
# ---------------------------------------
8131
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8132
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8133
# saved as a flag.
8134
m4_define([_LT_SET_OPTION],
8135
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8136
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8137
        _LT_MANGLE_DEFUN([$1], [$2]),
8138
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8139
])
8140
8141
8142
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8143
# ------------------------------------------------------------
8144
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8145
m4_define([_LT_IF_OPTION],
8146
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8147
8148
8149
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8150
# -------------------------------------------------------
8151
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8152
# are set.
8153
m4_define([_LT_UNLESS_OPTIONS],
8154
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8155
	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8156
		      [m4_define([$0_found])])])[]dnl
8157
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8158
])[]dnl
8159
])
8160
8161
8162
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8163
# ----------------------------------------
8164
# OPTION-LIST is a space-separated list of Libtool options associated
8165
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8166
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8167
# the unknown option and exit.
8168
m4_defun([_LT_SET_OPTIONS],
8169
[# Set options
8170
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8171
    [_LT_SET_OPTION([$1], _LT_Option)])
8172
8173
m4_if([$1],[LT_INIT],[
8174
  dnl
8175
  dnl Simply set some default values (i.e off) if boolean options were not
8176
  dnl specified:
8177
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8178
  ])
8179
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8180
  ])
8181
  dnl
8182
  dnl If no reference was made to various pairs of opposing options, then
8183
  dnl we run the default mode handler for the pair.  For example, if neither
8184
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8185
  dnl archives by default:
8186
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8187
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8188
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8189
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8190
  		   [_LT_ENABLE_FAST_INSTALL])
8191
  ])
8192
])# _LT_SET_OPTIONS
8193
8194
8195
8196
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8197
# -----------------------------------------
8198
m4_define([_LT_MANGLE_DEFUN],
8199
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8200
8201
8202
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8203
# -----------------------------------------------
8204
m4_define([LT_OPTION_DEFINE],
8205
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8206
])# LT_OPTION_DEFINE
8207
8208
8209
# dlopen
8210
# ------
8211
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8212
])
8213
8214
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8215
[_LT_SET_OPTION([LT_INIT], [dlopen])
8216
AC_DIAGNOSE([obsolete],
8217
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8218
put the `dlopen' option into LT_INIT's first parameter.])
8219
])
8220
8221
dnl aclocal-1.4 backwards compatibility:
8222
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8223
8224
8225
# win32-dll
8226
# ---------
8227
# Declare package support for building win32 dll's.
8228
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8229
[enable_win32_dll=yes
8230
8231
case $host in
8232
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8233
  AC_CHECK_TOOL(AS, as, false)
8234
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8235
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8236
  ;;
8237
esac
8238
8239
test -z "$AS" && AS=as
8240
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8241
8242
test -z "$DLLTOOL" && DLLTOOL=dlltool
8243
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8244
8245
test -z "$OBJDUMP" && OBJDUMP=objdump
8246
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8247
])# win32-dll
8248
8249
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8250
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8251
_LT_SET_OPTION([LT_INIT], [win32-dll])
8252
AC_DIAGNOSE([obsolete],
8253
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8254
put the `win32-dll' option into LT_INIT's first parameter.])
8255
])
8256
8257
dnl aclocal-1.4 backwards compatibility:
8258
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8259
8260
8261
# _LT_ENABLE_SHARED([DEFAULT])
8262
# ----------------------------
8263
# implement the --enable-shared flag, and supports the `shared' and
8264
# `disable-shared' LT_INIT options.
8265
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8266
m4_define([_LT_ENABLE_SHARED],
8267
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8268
AC_ARG_ENABLE([shared],
8269
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8270
	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8271
    [p=${PACKAGE-default}
8272
    case $enableval in
8273
    yes) enable_shared=yes ;;
8274
    no) enable_shared=no ;;
8275
    *)
8276
      enable_shared=no
8277
      # Look at the argument we got.  We use all the common list separators.
8278
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8279
      for pkg in $enableval; do
8280
	IFS="$lt_save_ifs"
8281
	if test "X$pkg" = "X$p"; then
8282
	  enable_shared=yes
8283
	fi
8284
      done
8285
      IFS="$lt_save_ifs"
8286
      ;;
8287
    esac],
8288
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8289
8290
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8291
	[Whether or not to build shared libraries])
8292
])# _LT_ENABLE_SHARED
8293
8294
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8295
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8296
8297
# Old names:
8298
AC_DEFUN([AC_ENABLE_SHARED],
8299
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8300
])
8301
8302
AC_DEFUN([AC_DISABLE_SHARED],
8303
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8304
])
8305
8306
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8307
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8308
8309
dnl aclocal-1.4 backwards compatibility:
8310
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8311
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8312
8313
8314
8315
# _LT_ENABLE_STATIC([DEFAULT])
8316
# ----------------------------
8317
# implement the --enable-static flag, and support the `static' and
8318
# `disable-static' LT_INIT options.
8319
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8320
m4_define([_LT_ENABLE_STATIC],
8321
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8322
AC_ARG_ENABLE([static],
8323
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8324
	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8325
    [p=${PACKAGE-default}
8326
    case $enableval in
8327
    yes) enable_static=yes ;;
8328
    no) enable_static=no ;;
8329
    *)
8330
     enable_static=no
8331
      # Look at the argument we got.  We use all the common list separators.
8332
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8333
      for pkg in $enableval; do
8334
	IFS="$lt_save_ifs"
8335
	if test "X$pkg" = "X$p"; then
8336
	  enable_static=yes
8337
	fi
8338
      done
8339
      IFS="$lt_save_ifs"
8340
      ;;
8341
    esac],
8342
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8343
8344
    _LT_DECL([build_old_libs], [enable_static], [0],
8345
	[Whether or not to build static libraries])
8346
])# _LT_ENABLE_STATIC
8347
8348
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8349
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8350
8351
# Old names:
8352
AC_DEFUN([AC_ENABLE_STATIC],
8353
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8354
])
8355
8356
AC_DEFUN([AC_DISABLE_STATIC],
8357
[_LT_SET_OPTION([LT_INIT], [disable-static])
8358
])
8359
8360
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8361
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8362
8363
dnl aclocal-1.4 backwards compatibility:
8364
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8365
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8366
8367
8368
8369
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8370
# ----------------------------------
8371
# implement the --enable-fast-install flag, and support the `fast-install'
8372
# and `disable-fast-install' LT_INIT options.
8373
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8374
m4_define([_LT_ENABLE_FAST_INSTALL],
8375
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8376
AC_ARG_ENABLE([fast-install],
8377
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8378
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8379
    [p=${PACKAGE-default}
8380
    case $enableval in
8381
    yes) enable_fast_install=yes ;;
8382
    no) enable_fast_install=no ;;
8383
    *)
8384
      enable_fast_install=no
8385
      # Look at the argument we got.  We use all the common list separators.
8386
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8387
      for pkg in $enableval; do
8388
	IFS="$lt_save_ifs"
8389
	if test "X$pkg" = "X$p"; then
8390
	  enable_fast_install=yes
8391
	fi
8392
      done
8393
      IFS="$lt_save_ifs"
8394
      ;;
8395
    esac],
8396
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8397
8398
_LT_DECL([fast_install], [enable_fast_install], [0],
8399
	 [Whether or not to optimize for fast installation])dnl
8400
])# _LT_ENABLE_FAST_INSTALL
8401
8402
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8403
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8404
8405
# Old names:
8406
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8407
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8408
AC_DIAGNOSE([obsolete],
8409
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8410
the `fast-install' option into LT_INIT's first parameter.])
8411
])
8412
8413
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8414
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8415
AC_DIAGNOSE([obsolete],
8416
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8417
the `disable-fast-install' option into LT_INIT's first parameter.])
8418
])
8419
8420
dnl aclocal-1.4 backwards compatibility:
8421
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8422
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8423
8424
8425
# _LT_WITH_PIC([MODE])
8426
# --------------------
8427
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8428
# LT_INIT options.
8429
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8430
m4_define([_LT_WITH_PIC],
8431
[AC_ARG_WITH([pic],
8432
    [AS_HELP_STRING([--with-pic],
8433
	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8434
    [pic_mode="$withval"],
8435
    [pic_mode=default])
8436
8437
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8438
8439
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8440
])# _LT_WITH_PIC
8441
8442
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8443
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8444
8445
# Old name:
8446
AU_DEFUN([AC_LIBTOOL_PICMODE],
8447
[_LT_SET_OPTION([LT_INIT], [pic-only])
8448
AC_DIAGNOSE([obsolete],
8449
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8450
put the `pic-only' option into LT_INIT's first parameter.])
8451
])
8452
8453
dnl aclocal-1.4 backwards compatibility:
8454
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8455
8456
8457
m4_define([_LTDL_MODE], [])
8458
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8459
		 [m4_define([_LTDL_MODE], [nonrecursive])])
8460
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8461
		 [m4_define([_LTDL_MODE], [recursive])])
8462
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8463
		 [m4_define([_LTDL_MODE], [subproject])])
8464
8465
m4_define([_LTDL_TYPE], [])
8466
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8467
		 [m4_define([_LTDL_TYPE], [installable])])
8468
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8469
		 [m4_define([_LTDL_TYPE], [convenience])])
8470
8471
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8472
#
8473
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8474
# Written by Gary V. Vaughan, 2004
8475
#
8476
# This file is free software; the Free Software Foundation gives
8477
# unlimited permission to copy and/or distribute it, with or without
8478
# modifications, as long as this notice is preserved.
8479
8480
# serial 6 ltsugar.m4
8481
8482
# This is to help aclocal find these macros, as it can't see m4_define.
8483
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8484
8485
8486
# lt_join(SEP, ARG1, [ARG2...])
8487
# -----------------------------
8488
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8489
# associated separator.
8490
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8491
# versions in m4sugar had bugs.
8492
m4_define([lt_join],
8493
[m4_if([$#], [1], [],
8494
       [$#], [2], [[$2]],
8495
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8496
m4_define([_lt_join],
8497
[m4_if([$#$2], [2], [],
8498
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8499
8500
8501
# lt_car(LIST)
8502
# lt_cdr(LIST)
8503
# ------------
8504
# Manipulate m4 lists.
8505
# These macros are necessary as long as will still need to support
8506
# Autoconf-2.59 which quotes differently.
8507
m4_define([lt_car], [[$1]])
8508
m4_define([lt_cdr],
8509
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8510
       [$#], 1, [],
8511
       [m4_dquote(m4_shift($@))])])
8512
m4_define([lt_unquote], $1)
8513
8514
8515
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8516
# ------------------------------------------
8517
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8518
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8519
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8520
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8521
# than defined and empty).
8522
#
8523
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8524
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8525
m4_define([lt_append],
8526
[m4_define([$1],
8527
	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8528
8529
8530
8531
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8532
# ----------------------------------------------------------
8533
# Produce a SEP delimited list of all paired combinations of elements of
8534
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8535
# has the form PREFIXmINFIXSUFFIXn.
8536
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8537
m4_define([lt_combine],
8538
[m4_if(m4_eval([$# > 3]), [1],
8539
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8540
[[m4_foreach([_Lt_prefix], [$2],
8541
	     [m4_foreach([_Lt_suffix],
8542
		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8543
	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8544
8545
8546
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8547
# -----------------------------------------------------------------------
8548
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8549
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8550
m4_define([lt_if_append_uniq],
8551
[m4_ifdef([$1],
8552
	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8553
		 [lt_append([$1], [$2], [$3])$4],
8554
		 [$5])],
8555
	  [lt_append([$1], [$2], [$3])$4])])
8556
8557
8558
# lt_dict_add(DICT, KEY, VALUE)
8559
# -----------------------------
8560
m4_define([lt_dict_add],
8561
[m4_define([$1($2)], [$3])])
8562
8563
8564
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8565
# --------------------------------------------
8566
m4_define([lt_dict_add_subkey],
8567
[m4_define([$1($2:$3)], [$4])])
8568
8569
8570
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8571
# ----------------------------------
8572
m4_define([lt_dict_fetch],
8573
[m4_ifval([$3],
8574
	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8575
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8576
8577
8578
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8579
# -----------------------------------------------------------------
8580
m4_define([lt_if_dict_fetch],
8581
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8582
	[$5],
8583
    [$6])])
8584
8585
8586
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8587
# --------------------------------------------------------------
8588
m4_define([lt_dict_filter],
8589
[m4_if([$5], [], [],
8590
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8591
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8592
		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8593
])
8594
8595
# ltversion.m4 -- version numbers			-*- Autoconf -*-
8596
#
8597
#   Copyright (C) 2004 Free Software Foundation, Inc.
8598
#   Written by Scott James Remnant, 2004
8599
#
8600
# This file is free software; the Free Software Foundation gives
8601
# unlimited permission to copy and/or distribute it, with or without
8602
# modifications, as long as this notice is preserved.
8603
8604
# Generated from ltversion.in.
8605
8606
# serial 3012 ltversion.m4
8607
# This file is part of GNU Libtool
8608
8609
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8610
m4_define([LT_PACKAGE_REVISION], [1.3012])
8611
8612
AC_DEFUN([LTVERSION_VERSION],
8613
[macro_version='2.2.6'
8614
macro_revision='1.3012'
8615
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8616
_LT_DECL(, macro_revision, 0)
8617
])
8618
8619
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8620
#
8621
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8622
#   Written by Scott James Remnant, 2004.
8623
#
8624
# This file is free software; the Free Software Foundation gives
8625
# unlimited permission to copy and/or distribute it, with or without
8626
# modifications, as long as this notice is preserved.
8627
8628
# serial 4 lt~obsolete.m4
8629
8630
# These exist entirely to fool aclocal when bootstrapping libtool.
8631
#
8632
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8633
# which have later been changed to m4_define as they aren't part of the
8634
# exported API, or moved to Autoconf or Automake where they belong.
8635
#
8636
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8637
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8638
# using a macro with the same name in our local m4/libtool.m4 it'll
8639
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8640
# and doesn't know about Autoconf macros at all.)
8641
#
8642
# So we provide this file, which has a silly filename so it's always
8643
# included after everything else.  This provides aclocal with the
8644
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8645
# because those macros already exist, or will be overwritten later.
8646
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8647
#
8648
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8649
# Yes, that means every name once taken will need to remain here until
8650
# we give up compatibility with versions before 1.7, at which point
8651
# we need to keep only those names which we still refer to.
8652
8653
# This is to help aclocal find these macros, as it can't see m4_define.
8654
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8655
8656
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8657
m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
8658
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8659
m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
8660
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8661
m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
8662
m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
8663
m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8664
m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
8665
m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
8666
m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
8667
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8668
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8669
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8670
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8671
m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8672
m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
8673
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8674
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8675
m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
8676
m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
8677
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8678
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8679
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8680
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8681
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8682
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8683
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8684
m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
8685
m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
8686
m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
8687
m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8688
m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8689
m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
8690
m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
8691
m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8692
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8693
m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
8694
m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8695
m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
8696
m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
8697
m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
8698
m4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
8699
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8700
m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8701
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8702
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8703
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8704
m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8705
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8706
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8707
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8708
m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8709
m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
8710
m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8711
8712
# nls.m4 serial 3 (gettext-0.15)
8713
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8714
dnl This file is free software; the Free Software Foundation
8715
dnl gives unlimited permission to copy and/or distribute it,
8716
dnl with or without modifications, as long as this notice is preserved.
8717
dnl
8718
dnl This file can can be used in projects which are not available under
8719
dnl the GNU General Public License or the GNU Library General Public
8720
dnl License but which still want to provide support for the GNU gettext
8721
dnl functionality.
8722
dnl Please note that the actual code of the GNU gettext library is covered
8723
dnl by the GNU Library General Public License, and the rest of the GNU
8724
dnl gettext package package is covered by the GNU General Public License.
8725
dnl They are *not* in the public domain.
8726
8727
dnl Authors:
8728
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8729
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8730
8731
AC_PREREQ(2.50)
8732
8733
AC_DEFUN([AM_NLS],
8734
[
8735
  AC_MSG_CHECKING([whether NLS is requested])
8736
  dnl Default is enabled NLS
8737
  AC_ARG_ENABLE(nls,
8738
    [  --disable-nls           do not use Native Language Support],
8739
    USE_NLS=$enableval, USE_NLS=yes)
8740
  AC_MSG_RESULT($USE_NLS)
8741
  AC_SUBST(USE_NLS)
1 by Brandon Hale
Import upstream version 0.2.0
8742
])
8743
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8744
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8745
# 
8746
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8747
#
8748
# This program is free software; you can redistribute it and/or modify
8749
# it under the terms of the GNU General Public License as published by
8750
# the Free Software Foundation; either version 2 of the License, or
8751
# (at your option) any later version.
8752
#
8753
# This program is distributed in the hope that it will be useful, but
8754
# WITHOUT ANY WARRANTY; without even the implied warranty of
8755
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8756
# General Public License for more details.
8757
#
8758
# You should have received a copy of the GNU General Public License
8759
# along with this program; if not, write to the Free Software
8760
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8761
#
8762
# As a special exception to the GNU General Public License, if you
8763
# distribute this file as part of a program that contains a
8764
# configuration script generated by Autoconf, you may include it under
8765
# the same distribution terms that you use for the rest of that program.
8766
8767
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8768
# ----------------------------------
8769
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8770
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8771
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8772
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8773
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8774
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8775
fi
8776
if test -n "$PKG_CONFIG"; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8777
	_pkg_min_version=m4_default([$1], [0.9.0])
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8778
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8779
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8780
		AC_MSG_RESULT([yes])
8781
	else
8782
		AC_MSG_RESULT([no])
8783
		PKG_CONFIG=""
8784
	fi
8785
		
8786
fi[]dnl
8787
])# PKG_PROG_PKG_CONFIG
8788
8789
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8790
#
8791
# Check to see whether a particular set of modules exists.  Similar
8792
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8793
#
8794
#
8795
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8796
# this or PKG_CHECK_MODULES is called, or make sure to call
8797
# PKG_CHECK_EXISTS manually
8798
# --------------------------------------------------------------
8799
AC_DEFUN([PKG_CHECK_EXISTS],
8800
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8801
if test -n "$PKG_CONFIG" && \
8802
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8803
  m4_ifval([$2], [$2], [:])
8804
m4_ifvaln([$3], [else
8805
  $3])dnl
8806
fi])
8807
8808
8809
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8810
# ---------------------------------------------
8811
m4_define([_PKG_CONFIG],
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8812
[if test -n "$$1"; then
8813
    pkg_cv_[]$1="$$1"
8814
 elif test -n "$PKG_CONFIG"; then
8815
    PKG_CHECK_EXISTS([$3],
8816
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8817
		     [pkg_failed=yes])
8818
 else
8819
    pkg_failed=untried
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8820
fi[]dnl
8821
])# _PKG_CONFIG
8822
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8823
# _PKG_SHORT_ERRORS_SUPPORTED
8824
# -----------------------------
8825
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8826
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8827
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8828
        _pkg_short_errors_supported=yes
8829
else
8830
        _pkg_short_errors_supported=no
8831
fi[]dnl
8832
])# _PKG_SHORT_ERRORS_SUPPORTED
8833
8834
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8835
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8836
# [ACTION-IF-NOT-FOUND])
8837
#
8838
#
8839
# Note that if there is a possibility the first call to
8840
# PKG_CHECK_MODULES might not happen, you should be sure to include an
8841
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8842
#
8843
#
8844
# --------------------------------------------------------------
8845
AC_DEFUN([PKG_CHECK_MODULES],
8846
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8847
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8848
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8849
8850
pkg_failed=no
8851
AC_MSG_CHECKING([for $1])
8852
8853
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8854
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
8855
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8856
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8857
and $1[]_LIBS to avoid the need to call pkg-config.
8858
See the pkg-config man page for more details.])
8859
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8860
if test $pkg_failed = yes; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8861
        _PKG_SHORT_ERRORS_SUPPORTED
8862
        if test $_pkg_short_errors_supported = yes; then
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8863
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8864
        else 
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8865
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8866
        fi
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8867
	# Put the nasty error message in config.log where it belongs
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8868
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8869
8870
	ifelse([$4], , [AC_MSG_ERROR(dnl
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8871
[Package requirements ($2) were not met:
8872
8873
$$1_PKG_ERRORS
8874
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8875
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8876
installed software in a non-standard prefix.
8877
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8878
_PKG_TEXT
8879
])],
1.1.28 by Sebastian Dröge
Import upstream version 0.8.0
8880
		[AC_MSG_RESULT([no])
8881
                $4])
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8882
elif test $pkg_failed = untried; then
8883
	ifelse([$4], , [AC_MSG_FAILURE(dnl
8884
[The pkg-config script could not be found or is too old.  Make sure it
8885
is in your PATH or set the PKG_CONFIG environment variable to the full
8886
path to pkg-config.
8887
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8888
_PKG_TEXT
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8889
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8890
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
8891
		[$4])
8892
else
8893
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8894
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8895
        AC_MSG_RESULT([yes])
8896
	ifelse([$3], , :, [$3])
8897
fi[]dnl
8898
])# PKG_CHECK_MODULES
1 by Brandon Hale
Import upstream version 0.2.0
8899
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8900
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8901
#
8902
# This file is free software; the Free Software Foundation
8903
# gives unlimited permission to copy and/or distribute it,
8904
# with or without modifications, as long as this notice is preserved.
1 by Brandon Hale
Import upstream version 0.2.0
8905
8906
# AM_AUTOMAKE_VERSION(VERSION)
8907
# ----------------------------
8908
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8909
# generated from the m4 files accompanying Automake X.Y.
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
8910
# (This private macro should not be called outside this file.)
8911
AC_DEFUN([AM_AUTOMAKE_VERSION],
8912
[am__api_version='1.10'
8913
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8914
dnl require some minimum version.  Point them to the right macro.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8915
m4_if([$1], [1.10.1], [],
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
8916
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8917
])
8918
8919
# _AM_AUTOCONF_VERSION(VERSION)
8920
# -----------------------------
8921
# aclocal traces this macro to find the Autoconf version.
8922
# This is a private macro too.  Using m4_define simplifies
8923
# the logic in aclocal, which can simply ignore this definition.
8924
m4_define([_AM_AUTOCONF_VERSION], [])
1 by Brandon Hale
Import upstream version 0.2.0
8925
8926
# AM_SET_CURRENT_AUTOMAKE_VERSION
8927
# -------------------------------
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
8928
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
1 by Brandon Hale
Import upstream version 0.2.0
8929
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8930
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
8931
[AM_AUTOMAKE_VERSION([1.10.1])dnl
8932
m4_ifndef([AC_AUTOCONF_VERSION],
8933
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8934
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8935
8936
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8937
8938
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8939
#
8940
# This file is free software; the Free Software Foundation
8941
# gives unlimited permission to copy and/or distribute it,
8942
# with or without modifications, as long as this notice is preserved.
1 by Brandon Hale
Import upstream version 0.2.0
8943
8944
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8945
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8946
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8947
#
8948
# Of course, Automake must honor this variable whenever it calls a
8949
# tool from the auxiliary directory.  The problem is that $srcdir (and
8950
# therefore $ac_aux_dir as well) can be either absolute or relative,
8951
# depending on how configure is run.  This is pretty annoying, since
8952
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8953
# source directory, any form will work fine, but in subdirectories a
8954
# relative path needs to be adjusted first.
8955
#
8956
# $ac_aux_dir/missing
8957
#    fails when called from a subdirectory if $ac_aux_dir is relative
8958
# $top_srcdir/$ac_aux_dir/missing
8959
#    fails if $ac_aux_dir is absolute,
8960
#    fails when called from a subdirectory in a VPATH build with
8961
#          a relative $ac_aux_dir
8962
#
8963
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8964
# are both prefixed by $srcdir.  In an in-source build this is usually
8965
# harmless because $srcdir is `.', but things will broke when you
8966
# start a VPATH build or use an absolute $srcdir.
8967
#
8968
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8969
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
8970
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8971
# and then we would define $MISSING as
8972
#   MISSING="\${SHELL} $am_aux_dir/missing"
8973
# This will work as long as MISSING is not called from configure, because
8974
# unfortunately $(top_srcdir) has no meaning in configure.
8975
# However there are other variables, like CC, which are often used in
8976
# configure, and could therefore not use this "fixed" $ac_aux_dir.
8977
#
8978
# Another solution, used here, is to always expand $ac_aux_dir to an
8979
# absolute PATH.  The drawback is that using absolute paths prevent a
8980
# configured tree to be moved without reconfiguration.
8981
8982
AC_DEFUN([AM_AUX_DIR_EXPAND],
8983
[dnl Rely on autoconf to set up CDPATH properly.
8984
AC_PREREQ([2.50])dnl
8985
# expand $ac_aux_dir to an absolute path
8986
am_aux_dir=`cd $ac_aux_dir && pwd`
8987
])
8988
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8989
# AM_CONDITIONAL                                            -*- Autoconf -*-
8990
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
8991
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
8992
# Free Software Foundation, Inc.
8993
#
8994
# This file is free software; the Free Software Foundation
8995
# gives unlimited permission to copy and/or distribute it,
8996
# with or without modifications, as long as this notice is preserved.
8997
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
8998
# serial 8
1 by Brandon Hale
Import upstream version 0.2.0
8999
9000
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9001
# -------------------------------------
9002
# Define a conditional.
9003
AC_DEFUN([AM_CONDITIONAL],
9004
[AC_PREREQ(2.52)dnl
9005
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9006
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9007
AC_SUBST([$1_TRUE])dnl
9008
AC_SUBST([$1_FALSE])dnl
9009
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9010
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9011
if $2; then
9012
  $1_TRUE=
9013
  $1_FALSE='#'
9014
else
9015
  $1_TRUE='#'
9016
  $1_FALSE=
9017
fi
9018
AC_CONFIG_COMMANDS_PRE(
9019
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9020
  AC_MSG_ERROR([[conditional "$1" was never defined.
9021
Usually this means the macro was only invoked conditionally.]])
1 by Brandon Hale
Import upstream version 0.2.0
9022
fi])])
9023
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9024
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1 by Brandon Hale
Import upstream version 0.2.0
9025
# Free Software Foundation, Inc.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9026
#
9027
# This file is free software; the Free Software Foundation
9028
# gives unlimited permission to copy and/or distribute it,
9029
# with or without modifications, as long as this notice is preserved.
9030
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9031
# serial 9
1 by Brandon Hale
Import upstream version 0.2.0
9032
9033
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9034
# written in clear, in which case automake, when reading aclocal.m4,
9035
# will think it sees a *use*, and therefore will trigger all it's
9036
# C support machinery.  Also note that it means that autoscan, seeing
9037
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9038
9039
9040
# _AM_DEPENDENCIES(NAME)
9041
# ----------------------
9042
# See how the compiler implements dependency checking.
9043
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9044
# We try a few techniques and use that to set a single cache variable.
9045
#
9046
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9047
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9048
# dependency, and given that the user is not expected to run this macro,
9049
# just rely on AC_PROG_CC.
9050
AC_DEFUN([_AM_DEPENDENCIES],
9051
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9052
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9053
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9054
AC_REQUIRE([AM_DEP_TRACK])dnl
9055
9056
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9057
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9058
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9059
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1 by Brandon Hale
Import upstream version 0.2.0
9060
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9061
                   [depcc="$$1"   am_compiler_list=])
9062
9063
AC_CACHE_CHECK([dependency style of $depcc],
9064
               [am_cv_$1_dependencies_compiler_type],
9065
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9066
  # We make a subdir and do the tests there.  Otherwise we can end up
9067
  # making bogus files that we don't know about and never remove.  For
9068
  # instance it was reported that on HP-UX the gcc test will end up
9069
  # making a dummy file named `D' -- because `-MD' means `put the output
9070
  # in D'.
9071
  mkdir conftest.dir
9072
  # Copy depcomp to subdir because otherwise we won't find it if we're
9073
  # using a relative directory.
9074
  cp "$am_depcomp" conftest.dir
9075
  cd conftest.dir
9076
  # We will build objects and dependencies in a subdirectory because
9077
  # it helps to detect inapplicable dependency modes.  For instance
9078
  # both Tru64's cc and ICC support -MD to output dependencies as a
9079
  # side effect of compilation, but ICC will put the dependencies in
9080
  # the current directory while Tru64 will put them in the object
9081
  # directory.
9082
  mkdir sub
9083
9084
  am_cv_$1_dependencies_compiler_type=none
9085
  if test "$am_compiler_list" = ""; then
9086
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9087
  fi
9088
  for depmode in $am_compiler_list; do
9089
    # Setup a source with many dependencies, because some compilers
9090
    # like to wrap large dependency lists on column 80 (with \), and
9091
    # we should not choose a depcomp mode which is confused by this.
9092
    #
9093
    # We need to recreate these files for each test, as the compiler may
9094
    # overwrite some of them when testing with obscure command lines.
9095
    # This happens at least with the AIX C compiler.
9096
    : > sub/conftest.c
9097
    for i in 1 2 3 4 5 6; do
9098
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9099
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9100
      # Solaris 8's {/usr,}/bin/sh.
9101
      touch sub/conftst$i.h
9102
    done
9103
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9104
9105
    case $depmode in
9106
    nosideeffect)
9107
      # after this tag, mechanisms are not by side-effect, so they'll
9108
      # only be used when explicitly requested
9109
      if test "x$enable_dependency_tracking" = xyes; then
9110
	continue
9111
      else
9112
	break
9113
      fi
9114
      ;;
9115
    none) break ;;
9116
    esac
9117
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9118
    # mode.  It turns out that the SunPro C++ compiler does not properly
9119
    # handle `-M -o', and we need to detect this.
9120
    if depmode=$depmode \
9121
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9122
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9123
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9124
         >/dev/null 2>conftest.err &&
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9125
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1 by Brandon Hale
Import upstream version 0.2.0
9126
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9127
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9128
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9129
      # icc doesn't choke on unknown options, it will just issue warnings
9130
      # or remarks (even with -Werror).  So we grep stderr for any message
9131
      # that says an option was ignored or not supported.
9132
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9133
      #   icc: Command line warning: ignoring option '-M'; no argument required
9134
      # The diagnosis changed in icc 8.0:
9135
      #   icc: Command line remark: option '-MP' not supported
9136
      if (grep 'ignoring option' conftest.err ||
9137
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9138
        am_cv_$1_dependencies_compiler_type=$depmode
9139
        break
9140
      fi
9141
    fi
9142
  done
9143
9144
  cd ..
9145
  rm -rf conftest.dir
9146
else
9147
  am_cv_$1_dependencies_compiler_type=none
9148
fi
9149
])
9150
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9151
AM_CONDITIONAL([am__fastdep$1], [
9152
  test "x$enable_dependency_tracking" != xno \
9153
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9154
])
9155
9156
9157
# AM_SET_DEPDIR
9158
# -------------
9159
# Choose a directory name for dependency files.
9160
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9161
AC_DEFUN([AM_SET_DEPDIR],
9162
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9163
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9164
])
9165
9166
9167
# AM_DEP_TRACK
9168
# ------------
9169
AC_DEFUN([AM_DEP_TRACK],
9170
[AC_ARG_ENABLE(dependency-tracking,
9171
[  --disable-dependency-tracking  speeds up one-time build
9172
  --enable-dependency-tracking   do not reject slow dependency extractors])
9173
if test "x$enable_dependency_tracking" != xno; then
9174
  am_depcomp="$ac_aux_dir/depcomp"
9175
  AMDEPBACKSLASH='\'
9176
fi
9177
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9178
AC_SUBST([AMDEPBACKSLASH])dnl
9179
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9180
])
9181
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9182
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9183
9184
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9185
# Free Software Foundation, Inc.
9186
#
9187
# This file is free software; the Free Software Foundation
9188
# gives unlimited permission to copy and/or distribute it,
9189
# with or without modifications, as long as this notice is preserved.
9190
9191
#serial 3
1 by Brandon Hale
Import upstream version 0.2.0
9192
9193
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9194
# ------------------------------
9195
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9196
[for mf in $CONFIG_FILES; do
9197
  # Strip MF so we end up with the name of the file.
9198
  mf=`echo "$mf" | sed -e 's/:.*$//'`
9199
  # Check whether this is an Automake generated Makefile or not.
9200
  # We used to match only the files named `Makefile.in', but
9201
  # some people rename them; so instead we look at the file content.
9202
  # Grep'ing the first line is not enough: some people post-process
9203
  # each Makefile.in and add a new line on top of each file to say so.
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9204
  # Grep'ing the whole file is not good either: AIX grep has a line
9205
  # limit of 2048, but all sed's we know have understand at least 4000.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9206
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1 by Brandon Hale
Import upstream version 0.2.0
9207
    dirpart=`AS_DIRNAME("$mf")`
9208
  else
9209
    continue
9210
  fi
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9211
  # Extract the definition of DEPDIR, am__include, and am__quote
9212
  # from the Makefile without running `make'.
1 by Brandon Hale
Import upstream version 0.2.0
9213
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9214
  test -z "$DEPDIR" && continue
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9215
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
9216
  test -z "am__include" && continue
9217
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1 by Brandon Hale
Import upstream version 0.2.0
9218
  # When using ansi2knr, U may be empty or an underscore; expand it
9219
  U=`sed -n 's/^U = //p' < "$mf"`
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9220
  # Find all dependency output files, they are included files with
9221
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
9222
  # simplest approach to changing $(DEPDIR) to its actual value in the
9223
  # expansion.
9224
  for file in `sed -n "
9225
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1 by Brandon Hale
Import upstream version 0.2.0
9226
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9227
    # Make sure the directory exists.
9228
    test -f "$dirpart/$file" && continue
9229
    fdir=`AS_DIRNAME(["$file"])`
9230
    AS_MKDIR_P([$dirpart/$fdir])
9231
    # echo "creating $dirpart/$file"
9232
    echo '# dummy' > "$dirpart/$file"
9233
  done
9234
done
9235
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9236
9237
9238
# AM_OUTPUT_DEPENDENCY_COMMANDS
9239
# -----------------------------
9240
# This macro should only be invoked once -- use via AC_REQUIRE.
9241
#
9242
# This code is only required when automatic dependency tracking
9243
# is enabled.  FIXME.  This creates each `.P' file that we will
9244
# need in order to bootstrap the dependency handling code.
9245
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9246
[AC_CONFIG_COMMANDS([depfiles],
9247
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9248
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9249
])
9250
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9251
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9252
# Free Software Foundation, Inc.
9253
#
9254
# This file is free software; the Free Software Foundation
9255
# gives unlimited permission to copy and/or distribute it,
9256
# with or without modifications, as long as this notice is preserved.
9257
9258
# serial 8
1 by Brandon Hale
Import upstream version 0.2.0
9259
9260
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
9261
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9262
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9263
# Do all the work for Automake.                             -*- Autoconf -*-
9264
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9265
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9266
# 2005, 2006, 2008 Free Software Foundation, Inc.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9267
#
9268
# This file is free software; the Free Software Foundation
9269
# gives unlimited permission to copy and/or distribute it,
9270
# with or without modifications, as long as this notice is preserved.
9271
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9272
# serial 13
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9273
9274
# This macro actually does too much.  Some checks are only needed if
1 by Brandon Hale
Import upstream version 0.2.0
9275
# your package does certain things.  But this isn't really a big deal.
9276
9277
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9278
# AM_INIT_AUTOMAKE([OPTIONS])
9279
# -----------------------------------------------
9280
# The call with PACKAGE and VERSION arguments is the old style
9281
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9282
# and VERSION should now be passed to AC_INIT and removed from
9283
# the call to AM_INIT_AUTOMAKE.
9284
# We support both call styles for the transition.  After
9285
# the next Automake release, Autoconf can make the AC_INIT
9286
# arguments mandatory, and then we can depend on a new Autoconf
9287
# release and drop the old call support.
9288
AC_DEFUN([AM_INIT_AUTOMAKE],
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9289
[AC_PREREQ([2.60])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9290
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9291
dnl the ones we care about.
9292
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9293
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9294
AC_REQUIRE([AC_PROG_INSTALL])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9295
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9296
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9297
  # is not polluted with repeated "-I."
9298
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9299
  # test to see if srcdir already configured
9300
  if test -f $srcdir/config.status; then
9301
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9302
  fi
1 by Brandon Hale
Import upstream version 0.2.0
9303
fi
9304
9305
# test whether we have cygpath
9306
if test -z "$CYGPATH_W"; then
9307
  if (cygpath --version) >/dev/null 2>/dev/null; then
9308
    CYGPATH_W='cygpath -w'
9309
  else
9310
    CYGPATH_W=echo
9311
  fi
9312
fi
9313
AC_SUBST([CYGPATH_W])
9314
9315
# Define the identity of the package.
9316
dnl Distinguish between old-style and new-style calls.
9317
m4_ifval([$2],
9318
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9319
 AC_SUBST([PACKAGE], [$1])dnl
9320
 AC_SUBST([VERSION], [$2])],
9321
[_AM_SET_OPTIONS([$1])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9322
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9323
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9324
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9325
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9326
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9327
9328
_AM_IF_OPTION([no-define],,
9329
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9330
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9331
9332
# Some tools Automake needs.
9333
AC_REQUIRE([AM_SANITY_CHECK])dnl
9334
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9335
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9336
AM_MISSING_PROG(AUTOCONF, autoconf)
9337
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9338
AM_MISSING_PROG(AUTOHEADER, autoheader)
9339
AM_MISSING_PROG(MAKEINFO, makeinfo)
9340
AM_PROG_INSTALL_SH
9341
AM_PROG_INSTALL_STRIP
9342
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9343
# We need awk for the "check" target.  The system "awk" is bad on
9344
# some platforms.
9345
AC_REQUIRE([AC_PROG_AWK])dnl
9346
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9347
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9348
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9349
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9350
	      		     [_AM_PROG_TAR([v7])])])
1 by Brandon Hale
Import upstream version 0.2.0
9351
_AM_IF_OPTION([no-dependencies],,
9352
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9353
                  [_AM_DEPENDENCIES(CC)],
9354
                  [define([AC_PROG_CC],
9355
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9356
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9357
                  [_AM_DEPENDENCIES(CXX)],
9358
                  [define([AC_PROG_CXX],
9359
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9360
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9361
                  [_AM_DEPENDENCIES(OBJC)],
9362
                  [define([AC_PROG_OBJC],
9363
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9364
])
9365
])
9366
9367
9368
# When config.status generates a header, we must update the stamp-h file.
9369
# This file resides in the same directory as the config header
9370
# that is generated.  The stamp files are numbered to have different names.
9371
9372
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9373
# loop where config.status creates the headers, so we can generate
9374
# our stamp files there.
9375
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9376
[# Compute $1's index in $config_headers.
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9377
_am_arg=$1
1 by Brandon Hale
Import upstream version 0.2.0
9378
_am_stamp_count=1
9379
for _am_header in $config_headers :; do
9380
  case $_am_header in
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9381
    $_am_arg | $_am_arg:* )
1 by Brandon Hale
Import upstream version 0.2.0
9382
      break ;;
9383
    * )
9384
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9385
  esac
9386
done
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9387
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1 by Brandon Hale
Import upstream version 0.2.0
9388
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9389
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9390
#
9391
# This file is free software; the Free Software Foundation
9392
# gives unlimited permission to copy and/or distribute it,
9393
# with or without modifications, as long as this notice is preserved.
9394
1 by Brandon Hale
Import upstream version 0.2.0
9395
# AM_PROG_INSTALL_SH
9396
# ------------------
9397
# Define $install_sh.
9398
AC_DEFUN([AM_PROG_INSTALL_SH],
9399
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9400
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1 by Brandon Hale
Import upstream version 0.2.0
9401
AC_SUBST(install_sh)])
9402
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9403
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9404
#
9405
# This file is free software; the Free Software Foundation
9406
# gives unlimited permission to copy and/or distribute it,
9407
# with or without modifications, as long as this notice is preserved.
9408
9409
# serial 2
1 by Brandon Hale
Import upstream version 0.2.0
9410
9411
# Check whether the underlying file-system supports filenames
9412
# with a leading dot.  For instance MS-DOS doesn't.
9413
AC_DEFUN([AM_SET_LEADING_DOT],
9414
[rm -rf .tst 2>/dev/null
9415
mkdir .tst 2>/dev/null
9416
if test -d .tst; then
9417
  am__leading_dot=.
9418
else
9419
  am__leading_dot=_
9420
fi
9421
rmdir .tst 2>/dev/null
9422
AC_SUBST([am__leading_dot])])
9423
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9424
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1 by Brandon Hale
Import upstream version 0.2.0
9425
# From Jim Meyering
9426
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9427
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
1 by Brandon Hale
Import upstream version 0.2.0
9428
# Free Software Foundation, Inc.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
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
9434
# serial 4
1 by Brandon Hale
Import upstream version 0.2.0
9435
9436
AC_DEFUN([AM_MAINTAINER_MODE],
9437
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9438
  dnl maintainer-mode is disabled by default
9439
  AC_ARG_ENABLE(maintainer-mode,
9440
[  --enable-maintainer-mode  enable make rules and dependencies not useful
9441
			  (and sometimes confusing) to the casual installer],
9442
      USE_MAINTAINER_MODE=$enableval,
9443
      USE_MAINTAINER_MODE=no)
9444
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9445
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
9446
  MAINT=$MAINTAINER_MODE_TRUE
9447
  AC_SUBST(MAINT)dnl
9448
]
9449
)
9450
9451
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9452
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9453
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
9454
9455
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9456
#
9457
# This file is free software; the Free Software Foundation
9458
# gives unlimited permission to copy and/or distribute it,
9459
# with or without modifications, as long as this notice is preserved.
9460
9461
# serial 3
1 by Brandon Hale
Import upstream version 0.2.0
9462
9463
# AM_MAKE_INCLUDE()
9464
# -----------------
9465
# Check to see how make treats includes.
9466
AC_DEFUN([AM_MAKE_INCLUDE],
9467
[am_make=${MAKE-make}
9468
cat > confinc << 'END'
9469
am__doit:
9470
	@echo done
9471
.PHONY: am__doit
9472
END
9473
# If we don't find an include directive, just comment out the code.
9474
AC_MSG_CHECKING([for style of include used by $am_make])
9475
am__include="#"
9476
am__quote=
9477
_am_result=none
9478
# First try GNU make style include.
9479
echo "include confinc" > confmf
9480
# We grep out `Entering directory' and `Leaving directory'
9481
# messages which can occur if `w' ends up in MAKEFLAGS.
9482
# In particular we don't look at `^make:' because GNU make might
9483
# be invoked under some other name (usually "gmake"), in which
9484
# case it prints its new name instead of `make'.
9485
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9486
   am__include=include
9487
   am__quote=
9488
   _am_result=GNU
9489
fi
9490
# Now try BSD make style include.
9491
if test "$am__include" = "#"; then
9492
   echo '.include "confinc"' > confmf
9493
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9494
      am__include=.include
9495
      am__quote="\""
9496
      _am_result=BSD
9497
   fi
9498
fi
9499
AC_SUBST([am__include])
9500
AC_SUBST([am__quote])
9501
AC_MSG_RESULT([$_am_result])
9502
rm -f confinc confmf
9503
])
9504
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9505
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9506
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9507
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9508
# Free Software Foundation, Inc.
9509
#
9510
# This file is free software; the Free Software Foundation
9511
# gives unlimited permission to copy and/or distribute it,
9512
# with or without modifications, as long as this notice is preserved.
9513
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9514
# serial 5
1 by Brandon Hale
Import upstream version 0.2.0
9515
9516
# AM_MISSING_PROG(NAME, PROGRAM)
9517
# ------------------------------
9518
AC_DEFUN([AM_MISSING_PROG],
9519
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9520
$1=${$1-"${am_missing_run}$2"}
9521
AC_SUBST($1)])
9522
9523
9524
# AM_MISSING_HAS_RUN
9525
# ------------------
9526
# Define MISSING if not defined so far and test if it supports --run.
9527
# If it does, set am_missing_run to use it, otherwise, to nothing.
9528
AC_DEFUN([AM_MISSING_HAS_RUN],
9529
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9530
AC_REQUIRE_AUX_FILE([missing])dnl
1 by Brandon Hale
Import upstream version 0.2.0
9531
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9532
# Use eval to expand $SHELL
9533
if eval "$MISSING --run true"; then
9534
  am_missing_run="$MISSING --run "
9535
else
9536
  am_missing_run=
9537
  AC_MSG_WARN([`missing' script is too old or missing])
9538
fi
9539
])
9540
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9541
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9542
#
9543
# This file is free software; the Free Software Foundation
9544
# gives unlimited permission to copy and/or distribute it,
9545
# with or without modifications, as long as this notice is preserved.
9546
1 by Brandon Hale
Import upstream version 0.2.0
9547
# AM_PROG_MKDIR_P
9548
# ---------------
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9549
# Check for `mkdir -p'.
1 by Brandon Hale
Import upstream version 0.2.0
9550
AC_DEFUN([AM_PROG_MKDIR_P],
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9551
[AC_PREREQ([2.60])dnl
9552
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9553
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9554
dnl while keeping a definition of mkdir_p for backward compatibility.
9555
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9556
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9557
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9558
dnl adjustment using top_builddir (which is defined more often than
9559
dnl MKDIR_P).
9560
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9561
case $mkdir_p in
9562
  [[\\/$]]* | ?:[[\\/]]*) ;;
9563
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9564
esac
9565
])
1 by Brandon Hale
Import upstream version 0.2.0
9566
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9567
# Helper functions for option handling.                     -*- Autoconf -*-
9568
9569
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9570
#
9571
# This file is free software; the Free Software Foundation
9572
# gives unlimited permission to copy and/or distribute it,
9573
# with or without modifications, as long as this notice is preserved.
9574
9575
# serial 3
1 by Brandon Hale
Import upstream version 0.2.0
9576
9577
# _AM_MANGLE_OPTION(NAME)
9578
# -----------------------
9579
AC_DEFUN([_AM_MANGLE_OPTION],
9580
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9581
9582
# _AM_SET_OPTION(NAME)
9583
# ------------------------------
9584
# Set option NAME.  Presently that only means defining a flag for this option.
9585
AC_DEFUN([_AM_SET_OPTION],
9586
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9587
9588
# _AM_SET_OPTIONS(OPTIONS)
9589
# ----------------------------------
9590
# OPTIONS is a space-separated list of Automake options.
9591
AC_DEFUN([_AM_SET_OPTIONS],
9592
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9593
9594
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9595
# -------------------------------------------
9596
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9597
AC_DEFUN([_AM_IF_OPTION],
9598
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9599
1.1.21 by Sebastian Dröge
Import upstream version 0.7.2
9600
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9601
#
9602
# This file is free software; the Free Software Foundation
9603
# gives unlimited permission to copy and/or distribute it,
9604
# with or without modifications, as long as this notice is preserved.
9605
9606
# AM_RUN_LOG(COMMAND)
9607
# -------------------
9608
# Run COMMAND, save the exit status in ac_status, and log it.
9609
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9610
AC_DEFUN([AM_RUN_LOG],
9611
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9612
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9613
   ac_status=$?
9614
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9615
   (exit $ac_status); }])
9616
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9617
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9618
9619
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9620
# Free Software Foundation, Inc.
9621
#
9622
# This file is free software; the Free Software Foundation
9623
# gives unlimited permission to copy and/or distribute it,
9624
# with or without modifications, as long as this notice is preserved.
9625
9626
# serial 4
1 by Brandon Hale
Import upstream version 0.2.0
9627
9628
# AM_SANITY_CHECK
9629
# ---------------
9630
AC_DEFUN([AM_SANITY_CHECK],
9631
[AC_MSG_CHECKING([whether build environment is sane])
9632
# Just in case
9633
sleep 1
9634
echo timestamp > conftest.file
9635
# Do `set' in a subshell so we don't clobber the current shell's
9636
# arguments.  Must try -L first in case configure is actually a
9637
# symlink; some systems play weird games with the mod time of symlinks
9638
# (eg FreeBSD returns the mod time of the symlink's containing
9639
# directory).
9640
if (
9641
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9642
   if test "$[*]" = "X"; then
9643
      # -L didn't work.
9644
      set X `ls -t $srcdir/configure conftest.file`
9645
   fi
9646
   rm -f conftest.file
9647
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9648
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9649
9650
      # If neither matched, then we have a broken ls.  This can happen
9651
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9652
      # broken ls alias from the environment.  This has actually
9653
      # happened.  Such a system could not be considered "sane".
9654
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9655
alias in your environment])
9656
   fi
9657
9658
   test "$[2]" = conftest.file
9659
   )
9660
then
9661
   # Ok.
9662
   :
9663
else
9664
   AC_MSG_ERROR([newly created file is older than distributed files!
9665
Check your system clock])
9666
fi
9667
AC_MSG_RESULT(yes)])
9668
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9669
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9670
#
9671
# This file is free software; the Free Software Foundation
9672
# gives unlimited permission to copy and/or distribute it,
9673
# with or without modifications, as long as this notice is preserved.
9674
1 by Brandon Hale
Import upstream version 0.2.0
9675
# AM_PROG_INSTALL_STRIP
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9676
# ---------------------
1 by Brandon Hale
Import upstream version 0.2.0
9677
# One issue with vendor `install' (even GNU) is that you can't
9678
# specify the program used to strip binaries.  This is especially
9679
# annoying in cross-compiling environments, where the build's strip
9680
# is unlikely to handle the host's binaries.
9681
# Fortunately install-sh will honor a STRIPPROG variable, so we
9682
# always use install-sh in `make install-strip', and initialize
9683
# STRIPPROG with the value of the STRIP variable (set by the user).
9684
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9685
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9686
# Installed binaries are usually stripped using `strip' when the user
9687
# run `make install-strip'.  However `strip' might not be the right
9688
# tool to use in cross-compilation environments, therefore Automake
9689
# will honor the `STRIP' environment variable to overrule this program.
9690
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9691
if test "$cross_compiling" != no; then
9692
  AC_CHECK_TOOL([STRIP], [strip], :)
9693
fi
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9694
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1 by Brandon Hale
Import upstream version 0.2.0
9695
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9696
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9697
# Copyright (C) 2006  Free Software Foundation, Inc.
9698
#
9699
# This file is free software; the Free Software Foundation
9700
# gives unlimited permission to copy and/or distribute it,
9701
# with or without modifications, as long as this notice is preserved.
9702
9703
# _AM_SUBST_NOTMAKE(VARIABLE)
9704
# ---------------------------
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
9705
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
9706
# This macro is traced by Automake.
9707
AC_DEFUN([_AM_SUBST_NOTMAKE])
9708
1.1.4 by Andrew Mitchell
Import upstream version 0.3.9+dfsg
9709
# Check how to create a tarball.                            -*- Autoconf -*-
9710
9711
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9712
#
9713
# This file is free software; the Free Software Foundation
9714
# gives unlimited permission to copy and/or distribute it,
9715
# with or without modifications, as long as this notice is preserved.
9716
9717
# serial 2
9718
9719
# _AM_PROG_TAR(FORMAT)
9720
# --------------------
9721
# Check how to create a tarball in format FORMAT.
9722
# FORMAT should be one of `v7', `ustar', or `pax'.
9723
#
9724
# Substitute a variable $(am__tar) that is a command
9725
# writing to stdout a FORMAT-tarball containing the directory
9726
# $tardir.
9727
#     tardir=directory && $(am__tar) > result.tar
9728
#
9729
# Substitute a variable $(am__untar) that extract such
9730
# a tarball read from stdin.
9731
#     $(am__untar) < result.tar
9732
AC_DEFUN([_AM_PROG_TAR],
9733
[# Always define AMTAR for backward compatibility.
9734
AM_MISSING_PROG([AMTAR], [tar])
9735
m4_if([$1], [v7],
9736
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9737
     [m4_case([$1], [ustar],, [pax],,
9738
              [m4_fatal([Unknown tar format])])
9739
AC_MSG_CHECKING([how to create a $1 tar archive])
9740
# Loop over all known methods to create a tar archive until one works.
9741
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9742
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9743
# Do not fold the above two line into one, because Tru64 sh and
9744
# Solaris sh will not grok spaces in the rhs of `-'.
9745
for _am_tool in $_am_tools
9746
do
9747
  case $_am_tool in
9748
  gnutar)
9749
    for _am_tar in tar gnutar gtar;
9750
    do
9751
      AM_RUN_LOG([$_am_tar --version]) && break
9752
    done
9753
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9754
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9755
    am__untar="$_am_tar -xf -"
9756
    ;;
9757
  plaintar)
9758
    # Must skip GNU tar: if it does not support --format= it doesn't create
9759
    # ustar tarball either.
9760
    (tar --version) >/dev/null 2>&1 && continue
9761
    am__tar='tar chf - "$$tardir"'
9762
    am__tar_='tar chf - "$tardir"'
9763
    am__untar='tar xf -'
9764
    ;;
9765
  pax)
9766
    am__tar='pax -L -x $1 -w "$$tardir"'
9767
    am__tar_='pax -L -x $1 -w "$tardir"'
9768
    am__untar='pax -r'
9769
    ;;
9770
  cpio)
9771
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9772
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9773
    am__untar='cpio -i -H $1 -d'
9774
    ;;
9775
  none)
9776
    am__tar=false
9777
    am__tar_=false
9778
    am__untar=false
9779
    ;;
9780
  esac
9781
9782
  # If the value was cached, stop now.  We just wanted to have am__tar
9783
  # and am__untar set.
9784
  test -n "${am_cv_prog_tar_$1}" && break
9785
9786
  # tar/untar a dummy directory, and stop if the command works
9787
  rm -rf conftest.dir
9788
  mkdir conftest.dir
9789
  echo GrepMe > conftest.dir/file
9790
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9791
  rm -rf conftest.dir
9792
  if test -s conftest.tar; then
9793
    AM_RUN_LOG([$am__untar <conftest.tar])
9794
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9795
  fi
9796
done
9797
rm -rf conftest.dir
9798
9799
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9800
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9801
AC_SUBST([am__tar])
9802
AC_SUBST([am__untar])
9803
]) # _AM_PROG_TAR
9804