~ubuntu-branches/ubuntu/intrepid/eog/intrepid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-07-22 09:58:39 UTC
  • mfrom: (1.1.46 upstream)
  • Revision ID: james.westby@ubuntu.com-20080722095839-aemwrmrk9iwbmpkq
Tags: 2.23.5-0ubuntu1
* New upstream version:
  Misc improvements/fixes:
  - Show 35mm film equivalent in addition to lens focal length 
    in properties dialog if value is provided by image.
  - Code improvements and cleanups 
  Bug fixes:
  - #539495, eog stays in Slideshow mode even in Full Screen or normal window
  - #543171, Unexpected/Wrong EXIF information about "Focal length" shown    
  New and updated translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(AC_AUTOCONF_VERSION, [2.62],,
 
17
[m4_warning([this file was generated for autoconf 2.62.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
 
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
 
 
37
  AC_ARG_WITH(gconf-source, 
 
38
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
39
 
 
40
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
41
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
42
 
 
43
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
44
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
45
  fi
 
46
 
 
47
  AC_ARG_WITH(gconf-schema-file-dir, 
 
48
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
49
 
 
50
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
51
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
52
 
 
53
  AC_ARG_ENABLE(schemas-install,
 
54
     [  --disable-schemas-install       Disable the schemas installation],
 
55
     [case ${enableval} in
 
56
       yes|no) ;;
 
57
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
58
      esac])
 
59
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
60
])
 
61
 
 
62
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
63
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
64
#
 
65
# This file is free software, distributed under the terms of the GNU
 
66
# General Public License.  As a special exception to the GNU General
 
67
# Public License, this file may be distributed as part of a program
 
68
# that contains a configuration script generated by Autoconf, under
 
69
# the same distribution terms as the rest of that program.
 
70
#
 
71
# This file can be copied and used freely without restrictions.  It can
 
72
# be used in projects which are not available under the GNU Public License
 
73
# but which still want to provide support for the GNU gettext functionality.
 
74
#
 
75
# Macro to add for using GNU gettext.
 
76
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
77
#
 
78
# Modified to never use included libintl. 
 
79
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
80
#
 
81
# Major rework to remove unused code
 
82
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
83
#
 
84
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
85
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
86
#
 
87
# Modified to require ngettext
 
88
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
89
#
 
90
# We need this here as well, since someone might use autoconf-2.5x
 
91
# to configure GLib then an older version to configure a package
 
92
# using AM_GLIB_GNU_GETTEXT
 
93
AC_PREREQ(2.53)
 
94
 
 
95
dnl
 
96
dnl We go to great lengths to make sure that aclocal won't 
 
97
dnl try to pull in the installed version of these macros
 
98
dnl when running aclocal in the glib directory.
 
99
dnl
 
100
m4_copy([AC_DEFUN],[glib_DEFUN])
 
101
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
102
dnl
 
103
dnl At the end, if we're not within glib, we'll define the public
 
104
dnl definitions in terms of our private definitions.
 
105
dnl
 
106
 
 
107
# GLIB_LC_MESSAGES
 
108
#--------------------
 
109
glib_DEFUN([GLIB_LC_MESSAGES],
 
110
  [AC_CHECK_HEADERS([locale.h])
 
111
    if test $ac_cv_header_locale_h = yes; then
 
112
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
113
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
114
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
115
    if test $am_cv_val_LC_MESSAGES = yes; then
 
116
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
117
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
118
    fi
 
119
  fi])
 
120
 
 
121
# GLIB_PATH_PROG_WITH_TEST
 
122
#----------------------------
 
123
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
124
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
125
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
126
[# Extract the first word of "$2", so it can be a program name with args.
 
127
set dummy $2; ac_word=[$]2
 
128
AC_MSG_CHECKING([for $ac_word])
 
129
AC_CACHE_VAL(ac_cv_path_$1,
 
130
[case "[$]$1" in
 
131
  /*)
 
132
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
133
  ;;
 
134
  *)
 
135
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
136
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
137
    test -z "$ac_dir" && ac_dir=.
 
138
    if test -f $ac_dir/$ac_word; then
 
139
      if [$3]; then
 
140
        ac_cv_path_$1="$ac_dir/$ac_word"
 
141
        break
 
142
      fi
 
143
    fi
 
144
  done
 
145
  IFS="$ac_save_ifs"
 
146
dnl If no 4th arg is given, leave the cache variable unset,
 
147
dnl so AC_PATH_PROGS will keep looking.
 
148
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
149
])dnl
 
150
  ;;
 
151
esac])dnl
 
152
$1="$ac_cv_path_$1"
 
153
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
154
  AC_MSG_RESULT([$]$1)
 
155
else
 
156
  AC_MSG_RESULT(no)
 
157
fi
 
158
AC_SUBST($1)dnl
 
159
])
 
160
 
 
161
# GLIB_WITH_NLS
 
162
#-----------------
 
163
glib_DEFUN([GLIB_WITH_NLS],
 
164
  dnl NLS is obligatory
 
165
  [USE_NLS=yes
 
166
    AC_SUBST(USE_NLS)
 
167
 
 
168
    gt_cv_have_gettext=no
 
169
 
 
170
    CATOBJEXT=NONE
 
171
    XGETTEXT=:
 
172
    INTLLIBS=
 
173
 
 
174
    AC_CHECK_HEADER(libintl.h,
 
175
     [gt_cv_func_dgettext_libintl="no"
 
176
      libintl_extra_libs=""
 
177
 
 
178
      #
 
179
      # First check in libc
 
180
      #
 
181
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
182
        [AC_TRY_LINK([
 
183
#include <libintl.h>
 
184
],
 
185
         [return !ngettext ("","", 1)],
 
186
          gt_cv_func_ngettext_libc=yes,
 
187
          gt_cv_func_ngettext_libc=no)
 
188
        ])
 
189
  
 
190
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
191
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
192
                [AC_TRY_LINK([
 
193
#include <libintl.h>
 
194
],
 
195
                  [return !dgettext ("","")],
 
196
                  gt_cv_func_dgettext_libc=yes,
 
197
                  gt_cv_func_dgettext_libc=no)
 
198
                ])
 
199
      fi
 
200
  
 
201
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
202
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
203
      fi
 
204
 
 
205
      #
 
206
      # If we don't have everything we want, check in libintl
 
207
      #
 
208
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
209
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
210
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
211
        
 
212
        AC_CHECK_LIB(intl, bindtextdomain,
 
213
            [AC_CHECK_LIB(intl, ngettext,
 
214
                    [AC_CHECK_LIB(intl, dgettext,
 
215
                                  gt_cv_func_dgettext_libintl=yes)])])
 
216
 
 
217
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
218
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
219
          AC_MSG_RESULT([])
 
220
          AC_CHECK_LIB(intl, ngettext,
 
221
                [AC_CHECK_LIB(intl, dcgettext,
 
222
                       [gt_cv_func_dgettext_libintl=yes
 
223
                        libintl_extra_libs=-liconv],
 
224
                        :,-liconv)],
 
225
                :,-liconv)
 
226
        fi
 
227
 
 
228
        #
 
229
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
230
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
231
        # and both have dgettext and ngettext
 
232
        #
 
233
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
234
          glib_save_LIBS="$LIBS"
 
235
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
236
          unset ac_cv_func_bind_textdomain_codeset
 
237
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
238
          LIBS="$glib_save_LIBS"
 
239
 
 
240
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
241
            gt_cv_func_dgettext_libc=no
 
242
          else
 
243
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
244
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
245
              gt_cv_func_dgettext_libintl=no
 
246
            fi
 
247
          fi
 
248
        fi
 
249
      fi
 
250
 
 
251
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
252
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
253
        gt_cv_have_gettext=yes
 
254
      fi
 
255
  
 
256
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
257
        INTLLIBS="-lintl $libintl_extra_libs"
 
258
      fi
 
259
  
 
260
      if test "$gt_cv_have_gettext" = "yes"; then
 
261
        AC_DEFINE(HAVE_GETTEXT,1,
 
262
          [Define if the GNU gettext() function is already present or preinstalled.])
 
263
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
264
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
265
        if test "$MSGFMT" != "no"; then
 
266
          glib_save_LIBS="$LIBS"
 
267
          LIBS="$LIBS $INTLLIBS"
 
268
          AC_CHECK_FUNCS(dcgettext)
 
269
          MSGFMT_OPTS=
 
270
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
271
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
272
msgid ""
 
273
msgstr ""
 
274
"Content-Type: text/plain; charset=UTF-8\n"
 
275
"Project-Id-Version: test 1.0\n"
 
276
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
277
"Last-Translator: test <foo@bar.xx>\n"
 
278
"Language-Team: C <LL@li.org>\n"
 
279
"MIME-Version: 1.0\n"
 
280
"Content-Transfer-Encoding: 8bit\n"
 
281
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
282
          AC_SUBST(MSGFMT_OPTS)
 
283
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
284
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
285
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
286
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
287
                         return _nl_msg_cat_cntr],
 
288
            [CATOBJEXT=.gmo 
 
289
             DATADIRNAME=share],
 
290
            [case $host in
 
291
            *-*-solaris*)
 
292
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
293
            dnl GNU format message catalog is always supported,
 
294
            dnl since both are added to the libc all together.
 
295
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
296
            dnl and CATOBJEXT=.gmo in this case.
 
297
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
298
              [CATOBJEXT=.gmo 
 
299
               DATADIRNAME=share],
 
300
              [CATOBJEXT=.mo
 
301
               DATADIRNAME=lib])
 
302
            ;;
 
303
            *)
 
304
            CATOBJEXT=.mo
 
305
            DATADIRNAME=lib
 
306
            ;;
 
307
            esac])
 
308
          LIBS="$glib_save_LIBS"
 
309
          INSTOBJEXT=.mo
 
310
        else
 
311
          gt_cv_have_gettext=no
 
312
        fi
 
313
      fi
 
314
    ])
 
315
 
 
316
    if test "$gt_cv_have_gettext" = "yes" ; then
 
317
      AC_DEFINE(ENABLE_NLS, 1,
 
318
        [always defined to indicate that i18n is enabled])
 
319
    fi
 
320
 
 
321
    dnl Test whether we really found GNU xgettext.
 
322
    if test "$XGETTEXT" != ":"; then
 
323
      dnl If it is not GNU xgettext we define it as : so that the
 
324
      dnl Makefiles still can work.
 
325
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
326
        : ;
 
327
      else
 
328
        AC_MSG_RESULT(
 
329
          [found xgettext program is not GNU xgettext; ignore it])
 
330
        XGETTEXT=":"
 
331
      fi
 
332
    fi
 
333
 
 
334
    # We need to process the po/ directory.
 
335
    POSUB=po
 
336
 
 
337
    AC_OUTPUT_COMMANDS(
 
338
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
339
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
340
      esac])
 
341
 
 
342
    dnl These rules are solely for the distribution goal.  While doing this
 
343
    dnl we only have to keep exactly one list of the available catalogs
 
344
    dnl in configure.in.
 
345
    for lang in $ALL_LINGUAS; do
 
346
      GMOFILES="$GMOFILES $lang.gmo"
 
347
      POFILES="$POFILES $lang.po"
 
348
    done
 
349
 
 
350
    dnl Make all variables we use known to autoconf.
 
351
    AC_SUBST(CATALOGS)
 
352
    AC_SUBST(CATOBJEXT)
 
353
    AC_SUBST(DATADIRNAME)
 
354
    AC_SUBST(GMOFILES)
 
355
    AC_SUBST(INSTOBJEXT)
 
356
    AC_SUBST(INTLLIBS)
 
357
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
358
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
359
    AC_SUBST(POFILES)
 
360
    AC_SUBST(POSUB)
 
361
  ])
 
362
 
 
363
# AM_GLIB_GNU_GETTEXT
 
364
# -------------------
 
365
# Do checks necessary for use of gettext. If a suitable implementation 
 
366
# of gettext is found in either in libintl or in the C library,
 
367
# it will set INTLLIBS to the libraries needed for use of gettext
 
368
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
369
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
370
# on various variables needed by the Makefile.in.in installed by 
 
371
# glib-gettextize.
 
372
dnl
 
373
glib_DEFUN([GLIB_GNU_GETTEXT],
 
374
  [AC_REQUIRE([AC_PROG_CC])dnl
 
375
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
376
   
 
377
   GLIB_LC_MESSAGES
 
378
   GLIB_WITH_NLS
 
379
 
 
380
   if test "$gt_cv_have_gettext" = "yes"; then
 
381
     if test "x$ALL_LINGUAS" = "x"; then
 
382
       LINGUAS=
 
383
     else
 
384
       AC_MSG_CHECKING(for catalogs to be installed)
 
385
       NEW_LINGUAS=
 
386
       for presentlang in $ALL_LINGUAS; do
 
387
         useit=no
 
388
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
389
           desiredlanguages="$LINGUAS"
 
390
         else
 
391
           desiredlanguages="$ALL_LINGUAS"
 
392
         fi
 
393
         for desiredlang in $desiredlanguages; do
 
394
           # Use the presentlang catalog if desiredlang is
 
395
           #   a. equal to presentlang, or
 
396
           #   b. a variant of presentlang (because in this case,
 
397
           #      presentlang can be used as a fallback for messages
 
398
           #      which are not translated in the desiredlang catalog).
 
399
           case "$desiredlang" in
 
400
             "$presentlang"*) useit=yes;;
 
401
           esac
 
402
         done
 
403
         if test $useit = yes; then
 
404
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
405
         fi
 
406
       done
 
407
       LINGUAS=$NEW_LINGUAS
 
408
       AC_MSG_RESULT($LINGUAS)
 
409
     fi
 
410
 
 
411
     dnl Construct list of names of catalog files to be constructed.
 
412
     if test -n "$LINGUAS"; then
 
413
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
414
     fi
 
415
   fi
 
416
 
 
417
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
418
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
419
   dnl Try to locate is.
 
420
   MKINSTALLDIRS=
 
421
   if test -n "$ac_aux_dir"; then
 
422
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
423
   fi
 
424
   if test -z "$MKINSTALLDIRS"; then
 
425
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
426
   fi
 
427
   AC_SUBST(MKINSTALLDIRS)
 
428
 
 
429
   dnl Generate list of files to be processed by xgettext which will
 
430
   dnl be included in po/Makefile.
 
431
   test -d po || mkdir po
 
432
   if test "x$srcdir" != "x."; then
 
433
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
434
       posrcprefix="$srcdir/"
 
435
     else
 
436
       posrcprefix="../$srcdir/"
 
437
     fi
 
438
   else
 
439
     posrcprefix="../"
 
440
   fi
 
441
   rm -f po/POTFILES
 
442
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
443
        < $srcdir/po/POTFILES.in > po/POTFILES
 
444
  ])
 
445
 
 
446
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
447
# -------------------------------
 
448
# Define VARIABLE to the location where catalog files will
 
449
# be installed by po/Makefile.
 
450
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
451
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
452
glib_save_prefix="$prefix"
 
453
glib_save_exec_prefix="$exec_prefix"
 
454
glib_save_datarootdir="$datarootdir"
 
455
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
456
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
457
datarootdir=`eval echo "${datarootdir}"`
 
458
if test "x$CATOBJEXT" = "x.mo" ; then
 
459
  localedir=`eval echo "${libdir}/locale"`
 
460
else
 
461
  localedir=`eval echo "${datadir}/locale"`
 
462
fi
 
463
prefix="$glib_save_prefix"
 
464
exec_prefix="$glib_save_exec_prefix"
 
465
datarootdir="$glib_save_datarootdir"
 
466
AC_DEFINE_UNQUOTED($1, "$localedir",
 
467
  [Define the location where the catalogs will be installed])
 
468
])
 
469
 
 
470
dnl
 
471
dnl Now the definitions that aclocal will find
 
472
dnl
 
473
ifdef(glib_configure_in,[],[
 
474
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
475
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
476
])dnl
 
477
 
 
478
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
479
 
480
# Create a temporary file with TEST-FILE as its contents and pass the
 
481
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
482
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
483
AC_DEFUN([GLIB_RUN_PROG],
 
484
[cat >conftest.foo <<_ACEOF
 
485
$2
 
486
_ACEOF
 
487
if AC_RUN_LOG([$1 conftest.foo]); then
 
488
  m4_ifval([$3], [$3], [:])
 
489
m4_ifvaln([$4], [else $4])dnl
 
490
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
491
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
492
fi])
 
493
 
 
494
 
 
495
# gnome-common.m4
 
496
 
497
 
 
498
dnl GNOME_COMMON_INIT
 
499
 
 
500
AC_DEFUN([GNOME_COMMON_INIT],
 
501
[
 
502
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
503
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
504
 
 
505
  dnl ensure that when the Automake generated makefile calls aclocal,
 
506
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
507
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
508
  if test -n "$ac_macro_dir"; then
 
509
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
510
  fi
 
511
 
 
512
  AC_SUBST([ACLOCAL_AMFLAGS])
 
513
])
 
514
 
 
515
AC_DEFUN([GNOME_DEBUG_CHECK],
 
516
[
 
517
        AC_ARG_ENABLE([debug],
 
518
                      AC_HELP_STRING([--enable-debug],
 
519
                                     [turn on debugging]),,
 
520
                      [enable_debug=no])
 
521
 
 
522
        if test x$enable_debug = xyes ; then
 
523
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
524
                [Enable additional debugging at the expense of performance and size])
 
525
        fi
 
526
])
 
527
 
 
528
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
529
dnl define DISABLE_DEPRECATED
 
530
dnl
 
531
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
532
[
 
533
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
534
 
 
535
        if test $USE_MAINTAINER_MODE = yes; then
 
536
                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"
 
537
        else
 
538
                DISABLE_DEPRECATED=""
 
539
        fi
 
540
        AC_SUBST(DISABLE_DEPRECATED)
 
541
])
 
542
 
 
543
dnl GNOME_COMPILE_WARNINGS
 
544
dnl Turn on many useful compiler warnings
 
545
dnl For now, only works on GCC
 
546
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
547
    dnl ******************************
 
548
    dnl More compiler warnings
 
549
    dnl ******************************
 
550
 
 
551
    AC_ARG_ENABLE(compile-warnings, 
 
552
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
553
                                 [Turn on compiler warnings]),,
 
554
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
555
 
 
556
    warnCFLAGS=
 
557
    if test "x$GCC" != xyes; then
 
558
        enable_compile_warnings=no
 
559
    fi
 
560
 
 
561
    warning_flags=
 
562
    realsave_CFLAGS="$CFLAGS"
 
563
 
 
564
    case "$enable_compile_warnings" in
 
565
    no)
 
566
        warning_flags=
 
567
        ;;
 
568
    minimum)
 
569
        warning_flags="-Wall"
 
570
        ;;
 
571
    yes)
 
572
        warning_flags="-Wall -Wmissing-prototypes"
 
573
        ;;
 
574
    maximum|error)
 
575
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
576
        CFLAGS="$warning_flags $CFLAGS"
 
577
        for option in -Wno-sign-compare; do
 
578
                SAVE_CFLAGS="$CFLAGS"
 
579
                CFLAGS="$CFLAGS $option"
 
580
                AC_MSG_CHECKING([whether gcc understands $option])
 
581
                AC_TRY_COMPILE([], [],
 
582
                        has_option=yes,
 
583
                        has_option=no,)
 
584
                CFLAGS="$SAVE_CFLAGS"
 
585
                AC_MSG_RESULT($has_option)
 
586
                if test $has_option = yes; then
 
587
                  warning_flags="$warning_flags $option"
 
588
                fi
 
589
                unset has_option
 
590
                unset SAVE_CFLAGS
 
591
        done
 
592
        unset option
 
593
        if test "$enable_compile_warnings" = "error" ; then
 
594
            warning_flags="$warning_flags -Werror"
 
595
        fi
 
596
        ;;
 
597
    *)
 
598
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
599
        ;;
 
600
    esac
 
601
    CFLAGS="$realsave_CFLAGS"
 
602
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
603
    AC_MSG_RESULT($warning_flags)
 
604
 
 
605
    AC_ARG_ENABLE(iso-c,
 
606
                  AC_HELP_STRING([--enable-iso-c],
 
607
                                 [Try to warn if code is not ISO C ]),,
 
608
                  [enable_iso_c=no])
 
609
 
 
610
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
611
    complCFLAGS=
 
612
    if test "x$enable_iso_c" != "xno"; then
 
613
        if test "x$GCC" = "xyes"; then
 
614
        case " $CFLAGS " in
 
615
            *[\ \       ]-ansi[\ \      ]*) ;;
 
616
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
617
        esac
 
618
        case " $CFLAGS " in
 
619
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
620
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
621
        esac
 
622
        fi
 
623
    fi
 
624
    AC_MSG_RESULT($complCFLAGS)
 
625
 
 
626
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
627
    AC_SUBST(WARN_CFLAGS)
 
628
])
 
629
 
 
630
dnl For C++, do basically the same thing.
 
631
 
 
632
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
633
  AC_ARG_ENABLE(cxx-warnings,
 
634
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
635
                               [Turn on compiler warnings.]),,
 
636
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
637
 
 
638
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
639
  warnCXXFLAGS=
 
640
  if test "x$GXX" != xyes; then
 
641
    enable_cxx_warnings=no
 
642
  fi
 
643
  if test "x$enable_cxx_warnings" != "xno"; then
 
644
    if test "x$GXX" = "xyes"; then
 
645
      case " $CXXFLAGS " in
 
646
      *[\ \     ]-Wall[\ \      ]*) ;;
 
647
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
648
      esac
 
649
 
 
650
      ## -W is not all that useful.  And it cannot be controlled
 
651
      ## with individual -Wno-xxx flags, unlike -Wall
 
652
      if test "x$enable_cxx_warnings" = "xyes"; then
 
653
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
654
      fi
 
655
    fi
 
656
  fi
 
657
  AC_MSG_RESULT($warnCXXFLAGS)
 
658
 
 
659
   AC_ARG_ENABLE(iso-cxx,
 
660
                 AC_HELP_STRING([--enable-iso-cxx],
 
661
                                [Try to warn if code is not ISO C++ ]),,
 
662
                 [enable_iso_cxx=no])
 
663
 
 
664
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
665
   complCXXFLAGS=
 
666
   if test "x$enable_iso_cxx" != "xno"; then
 
667
     if test "x$GXX" = "xyes"; then
 
668
      case " $CXXFLAGS " in
 
669
      *[\ \     ]-ansi[\ \      ]*) ;;
 
670
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
671
      esac
 
672
 
 
673
      case " $CXXFLAGS " in
 
674
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
675
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
676
      esac
 
677
     fi
 
678
   fi
 
679
  AC_MSG_RESULT($complCXXFLAGS)
 
680
 
 
681
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
682
  AC_SUBST(WARN_CXXFLAGS)
 
683
])
 
684
 
 
685
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
686
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
687
AC_DEFUN([GNOME_DOC_DEFINES],
 
688
[
 
689
AC_ARG_WITH([help-dir],
 
690
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
691
  [with_help_dir='${datadir}/gnome/help'])
 
692
HELP_DIR="$with_help_dir"
 
693
AC_SUBST(HELP_DIR)
 
694
 
 
695
AC_ARG_WITH([omf-dir],
 
696
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
697
  [with_omf_dir='${datadir}/omf'])
 
698
OMF_DIR="$with_omf_dir"
 
699
AC_SUBST(OMF_DIR)
 
700
 
 
701
AC_ARG_WITH([help-formats],
 
702
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
703
  [with_help_formats=''])
 
704
DOC_USER_FORMATS="$with_help_formats"
 
705
AC_SUBST(DOC_USER_FORMATS)
 
706
 
 
707
AC_ARG_ENABLE([scrollkeeper],
 
708
        [AC_HELP_STRING([--disable-scrollkeeper],
 
709
                        [do not make updates to the scrollkeeper database])],,
 
710
        enable_scrollkeeper=yes)
 
711
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
712
 
 
713
dnl disable scrollkeeper automatically for distcheck
 
714
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
715
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
716
 
 
717
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
718
])
 
719
 
 
720
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
721
#
 
722
AC_DEFUN([GNOME_DOC_INIT],
 
723
[
 
724
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
725
 
 
726
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
727
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
728
 
 
729
if test "$gdu_cv_have_gdu" = "yes"; then
 
730
        ifelse([$2],,[:],[$2])
 
731
else
 
732
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
733
fi
 
734
 
 
735
GNOME_DOC_DEFINES
 
736
])
 
737
 
 
738
dnl -*- mode: autoconf -*-
 
739
 
 
740
# serial 1
 
741
 
 
742
dnl Usage:
 
743
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
744
AC_DEFUN([GTK_DOC_CHECK],
 
745
[
 
746
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
747
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
748
  dnl for overriding the documentation installation directory
 
749
  AC_ARG_WITH([html-dir],
 
750
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
751
    [with_html_dir='${datadir}/gtk-doc/html'])
 
752
  HTML_DIR="$with_html_dir"
 
753
  AC_SUBST([HTML_DIR])
 
754
 
 
755
  dnl enable/disable documentation building
 
756
  AC_ARG_ENABLE([gtk-doc],
 
757
    AS_HELP_STRING([--enable-gtk-doc],
 
758
                   [use gtk-doc to build documentation [[default=no]]]),,
 
759
    [enable_gtk_doc=no])
 
760
 
 
761
  if test x$enable_gtk_doc = xyes; then
 
762
    ifelse([$1],[],
 
763
      [PKG_CHECK_EXISTS([gtk-doc],,
 
764
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
765
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
766
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
 
767
  fi
 
768
 
 
769
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
770
  AC_MSG_RESULT($enable_gtk_doc)
 
771
 
 
772
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
 
773
 
 
774
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
775
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
776
])
 
777
 
 
778
 
 
779
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
780
# serial 40 IT_PROG_INTLTOOL
 
781
AC_DEFUN([IT_PROG_INTLTOOL],
 
782
[AC_PREREQ([2.50])dnl
 
783
 
 
784
case "$am__api_version" in
 
785
    1.[01234])
 
786
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
787
    ;;
 
788
    *)
 
789
    ;;
 
790
esac
 
791
 
 
792
if test -n "$1"; then
 
793
    AC_MSG_CHECKING([for intltool >= $1])
 
794
 
 
795
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
796
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
797
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
798
    ]
 
799
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
800
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
801
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
802
fi
 
803
 
 
804
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
805
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
806
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
807
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
808
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
809
fi
 
810
 
 
811
  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 $< [$]@' 
 
812
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 $< [$]@' 
 
813
     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 $< [$]@' 
 
814
     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 $< [$]@' 
 
815
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
816
     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 $< [$]@' 
 
817
   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 $< [$]@' 
 
818
    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 $< [$]@' 
 
819
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 $< [$]@' 
 
820
       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 $< [$]@' 
 
821
      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 $< [$]@' 
 
822
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
823
      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 $< [$]@' 
 
824
      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 $< [$]@' 
 
825
    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 $< [$]@' 
 
826
  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 $< [$]@' 
 
827
    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 $< [$]@' 
 
828
    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 $< [$]@'
 
829
   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 $< [$]@'
 
830
 
 
831
AC_SUBST(INTLTOOL_DESKTOP_RULE)
 
832
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
 
833
AC_SUBST(INTLTOOL_KEYS_RULE)
 
834
AC_SUBST(INTLTOOL_PROP_RULE)
 
835
AC_SUBST(INTLTOOL_OAF_RULE)
 
836
AC_SUBST(INTLTOOL_PONG_RULE)
 
837
AC_SUBST(INTLTOOL_SERVER_RULE)
 
838
AC_SUBST(INTLTOOL_SHEET_RULE)
 
839
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
840
AC_SUBST(INTLTOOL_UI_RULE)
 
841
AC_SUBST(INTLTOOL_XAM_RULE)
 
842
AC_SUBST(INTLTOOL_KBD_RULE)
 
843
AC_SUBST(INTLTOOL_XML_RULE)
 
844
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
845
AC_SUBST(INTLTOOL_CAVES_RULE)
 
846
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
 
847
AC_SUBST(INTLTOOL_THEME_RULE)
 
848
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
849
AC_SUBST(INTLTOOL_POLICY_RULE)
 
850
 
 
851
# Check the gettext tools to make sure they are GNU
 
852
AC_PATH_PROG(XGETTEXT, xgettext)
 
853
AC_PATH_PROG(MSGMERGE, msgmerge)
 
854
AC_PATH_PROG(MSGFMT, msgfmt)
 
855
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
856
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
857
fi
 
858
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
859
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
860
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
861
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
862
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
863
fi
 
864
 
 
865
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
866
if test -z "$INTLTOOL_PERL"; then
 
867
   AC_MSG_ERROR([perl not found; required for intltool])
 
868
fi
 
869
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
870
   AC_MSG_ERROR([perl 5.x required for intltool])
 
871
fi
 
872
if test "x$2" != "xno-xml"; then
 
873
   AC_MSG_CHECKING([for XML::Parser])
 
874
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
875
       AC_MSG_RESULT([ok])
 
876
   else
 
877
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
878
   fi
 
879
fi
 
880
 
 
881
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
882
AC_SUBST(ALL_LINGUAS)
 
883
 
 
884
# Set DATADIRNAME correctly if it is not set yet
 
885
# (copied from glib-gettext.m4)
 
886
if test -z "$DATADIRNAME"; then
 
887
  AC_LINK_IFELSE(
 
888
    [AC_LANG_PROGRAM([[]],
 
889
                     [[extern int _nl_msg_cat_cntr;
 
890
                       return _nl_msg_cat_cntr]])],
 
891
    [DATADIRNAME=share],
 
892
    [case $host in
 
893
    *-*-solaris*)
 
894
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
895
    dnl GNU format message catalog is always supported,
 
896
    dnl since both are added to the libc all together.
 
897
    dnl Hence, we'd like to go with DATADIRNAME=share
 
898
    dnl in this case.
 
899
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
900
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
901
    ;;
 
902
    *)
 
903
    [DATADIRNAME=lib]
 
904
    ;;
 
905
    esac])
 
906
fi
 
907
AC_SUBST(DATADIRNAME)
 
908
 
 
909
IT_PO_SUBDIR([po])
 
910
 
 
911
])
 
912
 
 
913
 
 
914
# IT_PO_SUBDIR(DIRNAME)
 
915
# ---------------------
 
916
# All po subdirs have to be declared with this macro; the subdir "po" is
 
917
# declared by IT_PROG_INTLTOOL.
 
918
#
 
919
AC_DEFUN([IT_PO_SUBDIR],
 
920
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
921
dnl
 
922
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
923
dnl of config.status.
 
924
AC_CONFIG_COMMANDS_PRE([
 
925
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
926
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
927
    >"$1/stamp-it.tmp"
 
928
    [sed '/^#/d
 
929
         s/^[[].*] *//
 
930
         /^[    ]*$/d
 
931
        '"s|^|  $ac_top_srcdir/|" \
 
932
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
933
    ]
 
934
    if test ! -f "$1/Makefile"; then
 
935
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
936
    fi
 
937
    mv "$1/Makefile" "$1/Makefile.tmp"
 
938
    [sed '/^POTFILES =/,/[^\\]$/ {
 
939
                /^POTFILES =/!d
 
940
                r $1/POTFILES
 
941
          }
 
942
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
943
    rm -f "$1/Makefile.tmp"
 
944
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
945
  ])
 
946
])dnl
 
947
])
 
948
 
 
949
 
 
950
# deprecated macros
 
951
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
952
# A hint is needed for aclocal from Automake <= 1.9.4:
 
953
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
954
 
 
955
 
22
956
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
 
 
24
 
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
25
 
 
26
 
 
27
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
28
 
# -----------------------------------------------------------
29
 
# If this macro is not defined by Autoconf, define it here.
30
 
m4_ifdef([AC_PROVIDE_IFELSE],
31
 
         [],
32
 
         [m4_define([AC_PROVIDE_IFELSE],
33
 
                 [m4_ifdef([AC_PROVIDE_$1],
34
 
                           [$2], [$3])])])
35
 
 
36
 
 
37
 
# AC_PROG_LIBTOOL
38
 
# ---------------
39
 
AC_DEFUN([AC_PROG_LIBTOOL],
40
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
41
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
42
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
43
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
44
 
    [AC_LIBTOOL_CXX],
45
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
46
 
  ])])
47
 
dnl And a similar setup for Fortran 77 support
48
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
49
 
    [AC_LIBTOOL_F77],
50
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
51
 
])])
52
 
 
53
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
54
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
55
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
56
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
57
 
    [AC_LIBTOOL_GCJ],
58
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
59
 
      [AC_LIBTOOL_GCJ],
60
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
61
 
        [AC_LIBTOOL_GCJ],
62
 
      [ifdef([AC_PROG_GCJ],
63
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
64
 
       ifdef([A][M_PROG_GCJ],
65
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
66
 
       ifdef([LT_AC_PROG_GCJ],
67
 
             [define([LT_AC_PROG_GCJ],
68
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
69
 
])])# AC_PROG_LIBTOOL
70
 
 
71
 
 
72
 
# _AC_PROG_LIBTOOL
73
 
# ----------------
74
 
AC_DEFUN([_AC_PROG_LIBTOOL],
75
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
76
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
77
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
78
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
957
#
 
958
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
959
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
960
#   Written by Gordon Matzigkeit, 1996
 
961
#
 
962
# This file is free software; the Free Software Foundation gives
 
963
# unlimited permission to copy and/or distribute it, with or without
 
964
# modifications, as long as this notice is preserved.
 
965
 
 
966
m4_define([_LT_COPYING], [dnl
 
967
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
968
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
969
#   Written by Gordon Matzigkeit, 1996
 
970
#
 
971
#   This file is part of GNU Libtool.
 
972
#
 
973
# GNU Libtool is free software; you can redistribute it and/or
 
974
# modify it under the terms of the GNU General Public License as
 
975
# published by the Free Software Foundation; either version 2 of
 
976
# the License, or (at your option) any later version.
 
977
#
 
978
# As a special exception to the GNU General Public License,
 
979
# if you distribute this file as part of a program or library that
 
980
# is built using GNU Libtool, you may include this file under the
 
981
# same distribution terms that you use for the rest of that program.
 
982
#
 
983
# GNU Libtool is distributed in the hope that it will be useful,
 
984
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
985
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
986
# GNU General Public License for more details.
 
987
#
 
988
# You should have received a copy of the GNU General Public License
 
989
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
990
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
991
# obtained by writing to the Free Software Foundation, Inc.,
 
992
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
993
])
 
994
 
 
995
# serial 56 LT_INIT
 
996
 
 
997
 
 
998
# LT_PREREQ(VERSION)
 
999
# ------------------
 
1000
# Complain and exit if this libtool version is less that VERSION.
 
1001
m4_defun([LT_PREREQ],
 
1002
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1003
       [m4_default([$3],
 
1004
                   [m4_fatal([Libtool version $1 or higher is required],
 
1005
                             63)])],
 
1006
       [$2])])
 
1007
 
 
1008
 
 
1009
# _LT_CHECK_BUILDDIR
 
1010
# ------------------
 
1011
# Complain if the absolute build directory name contains unusual characters
 
1012
m4_defun([_LT_CHECK_BUILDDIR],
 
1013
[case `pwd` in
 
1014
  *\ * | *\     *)
 
1015
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1016
esac
 
1017
])
 
1018
 
 
1019
 
 
1020
# LT_INIT([OPTIONS])
 
1021
# ------------------
 
1022
AC_DEFUN([LT_INIT],
 
1023
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1024
AC_BEFORE([$0], [LT_LANG])dnl
 
1025
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1026
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1027
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1028
 
 
1029
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1030
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1031
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1032
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1033
dnl unless we require an AC_DEFUNed macro:
 
1034
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1035
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1036
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1037
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1038
m4_require([_LT_PROG_LTMAIN])dnl
 
1039
 
 
1040
dnl Parse OPTIONS
 
1041
_LT_SET_OPTIONS([$0], [$1])
79
1042
 
80
1043
# This can be used to rebuild libtool when needed
81
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1044
LIBTOOL_DEPS="$ltmain"
82
1045
 
83
1046
# Always use our own libtool.
84
1047
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
85
1048
AC_SUBST(LIBTOOL)dnl
86
1049
 
87
 
# Prevent multiple expansion
88
 
define([AC_PROG_LIBTOOL], [])
89
 
])# _AC_PROG_LIBTOOL
90
 
 
91
 
 
92
 
# AC_LIBTOOL_SETUP
93
 
# ----------------
94
 
AC_DEFUN([AC_LIBTOOL_SETUP],
95
 
[AC_PREREQ(2.50)dnl
96
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
97
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
98
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
99
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1050
_LT_SETUP
 
1051
 
 
1052
# Only expand once:
 
1053
m4_define([LT_INIT])
 
1054
])# LT_INIT
 
1055
 
 
1056
# Old names:
 
1057
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1058
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1059
dnl aclocal-1.4 backwards compatibility:
 
1060
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1061
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1062
 
 
1063
 
 
1064
# _LT_CC_BASENAME(CC)
 
1065
# -------------------
 
1066
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1067
m4_defun([_LT_CC_BASENAME],
 
1068
[for cc_temp in $1""; do
 
1069
  case $cc_temp in
 
1070
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1071
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1072
    \-*) ;;
 
1073
    *) break;;
 
1074
  esac
 
1075
done
 
1076
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1077
])
 
1078
 
 
1079
 
 
1080
# _LT_FILEUTILS_DEFAULTS
 
1081
# ----------------------
 
1082
# It is okay to use these file commands and assume they have been set
 
1083
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1084
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1085
[: ${CP="cp -f"}
 
1086
: ${MV="mv -f"}
 
1087
: ${RM="rm -f"}
 
1088
])# _LT_FILEUTILS_DEFAULTS
 
1089
 
 
1090
 
 
1091
# _LT_SETUP
 
1092
# ---------
 
1093
m4_defun([_LT_SETUP],
 
1094
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
100
1095
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1096
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1097
_LT_DECL([], [host], [0])dnl
 
1098
_LT_DECL([], [host_os], [0])dnl
 
1099
dnl
 
1100
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1101
_LT_DECL([], [build], [0])dnl
 
1102
_LT_DECL([], [build_os], [0])dnl
 
1103
dnl
101
1104
AC_REQUIRE([AC_PROG_CC])dnl
102
 
AC_REQUIRE([AC_PROG_LD])dnl
103
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
104
 
AC_REQUIRE([AC_PROG_NM])dnl
105
 
 
 
1105
AC_REQUIRE([LT_PATH_LD])dnl
 
1106
AC_REQUIRE([LT_PATH_NM])dnl
 
1107
dnl
106
1108
AC_REQUIRE([AC_PROG_LN_S])dnl
107
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
108
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
109
 
AC_REQUIRE([AC_OBJEXT])dnl
110
 
AC_REQUIRE([AC_EXEEXT])dnl
111
 
dnl
112
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
113
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
114
 
AC_LIBTOOL_OBJDIR
115
 
 
116
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
117
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1109
test -z "$LN_S" && LN_S="ln -s"
 
1110
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1111
dnl
 
1112
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1113
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1114
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1115
dnl
 
1116
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1117
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1118
m4_require([_LT_CMD_RELOAD])dnl
 
1119
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1120
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1121
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1122
 
 
1123
_LT_CONFIG_LIBTOOL_INIT([
 
1124
# See if we are running on zsh, and set the options which allow our
 
1125
# commands through without removal of \ escapes INIT.
 
1126
if test -n "\${ZSH_VERSION+set}" ; then
 
1127
   setopt NO_GLOB_SUBST
 
1128
fi
 
1129
])
 
1130
if test -n "${ZSH_VERSION+set}" ; then
 
1131
   setopt NO_GLOB_SUBST
 
1132
fi
 
1133
 
 
1134
_LT_CHECK_OBJDIR
 
1135
 
 
1136
m4_require([_LT_TAG_COMPILER])dnl
 
1137
_LT_PROG_ECHO_BACKSLASH
118
1138
 
119
1139
case $host_os in
120
1140
aix3*)
130
1150
 
131
1151
# Sed substitution that helps us do robust quoting.  It backslashifies
132
1152
# metacharacters that are still active within double-quoted strings.
133
 
Xsed='sed -e 1s/^X//'
134
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1153
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
135
1154
 
136
1155
# Same as above, but do not quote variable references.
137
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1156
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
138
1157
 
139
1158
# Sed substitution to delay expansion of an escaped shell variable in a
140
1159
# double_quote_subst'ed string.
141
1160
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
142
1161
 
 
1162
# Sed substitution to delay expansion of an escaped single quote.
 
1163
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1164
 
143
1165
# Sed substitution to avoid accidental globbing in evaled expressions
144
1166
no_glob_subst='s/\*/\\\*/g'
145
1167
 
146
 
# Constants:
147
 
rm="rm -f"
148
 
 
149
1168
# Global variables:
150
 
default_ofile=libtool
 
1169
ofile=libtool
151
1170
can_build_shared=yes
152
1171
 
153
1172
# All known linkers require a `.a' archive for static linking (except MSVC,
154
1173
# which needs '.lib').
155
1174
libext=a
156
 
ltmain="$ac_aux_dir/ltmain.sh"
157
 
ofile="$default_ofile"
 
1175
 
158
1176
with_gnu_ld="$lt_cv_prog_gnu_ld"
159
1177
 
160
 
AC_CHECK_TOOL(AR, ar, false)
161
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
162
 
AC_CHECK_TOOL(STRIP, strip, :)
163
 
 
164
1178
old_CC="$CC"
165
1179
old_CFLAGS="$CFLAGS"
166
1180
 
167
1181
# Set sane defaults for various variables
168
 
test -z "$AR" && AR=ar
169
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
170
 
test -z "$AS" && AS=as
171
1182
test -z "$CC" && CC=cc
172
1183
test -z "$LTCC" && LTCC=$CC
173
1184
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
174
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
175
1185
test -z "$LD" && LD=ld
176
 
test -z "$LN_S" && LN_S="ln -s"
177
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
178
 
test -z "$NM" && NM=nm
179
 
test -z "$SED" && SED=sed
180
 
test -z "$OBJDUMP" && OBJDUMP=objdump
181
 
test -z "$RANLIB" && RANLIB=:
182
 
test -z "$STRIP" && STRIP=:
183
1186
test -z "$ac_objext" && ac_objext=o
184
1187
 
185
 
# Determine commands to create old-style static archives.
186
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
187
 
old_postinstall_cmds='chmod 644 $oldlib'
188
 
old_postuninstall_cmds=
189
 
 
190
 
if test -n "$RANLIB"; then
191
 
  case $host_os in
192
 
  openbsd*)
193
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
194
 
    ;;
195
 
  *)
196
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
197
 
    ;;
198
 
  esac
199
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
200
 
fi
201
 
 
202
1188
_LT_CC_BASENAME([$compiler])
203
1189
 
204
1190
# Only perform the check for file, if the check method requires it
 
1191
test -z "$MAGIC_CMD" && MAGIC_CMD=file
205
1192
case $deplibs_check_method in
206
1193
file_magic*)
207
1194
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
208
 
    AC_PATH_MAGIC
 
1195
    _LT_PATH_MAGIC
209
1196
  fi
210
1197
  ;;
211
1198
esac
212
1199
 
213
 
_LT_REQUIRED_DARWIN_CHECKS
214
 
 
215
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
216
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
217
 
enable_win32_dll=yes, enable_win32_dll=no)
218
 
 
219
 
AC_ARG_ENABLE([libtool-lock],
220
 
    [AC_HELP_STRING([--disable-libtool-lock],
221
 
        [avoid locking (might break parallel builds)])])
222
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
223
 
 
224
 
AC_ARG_WITH([pic],
225
 
    [AC_HELP_STRING([--with-pic],
226
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
227
 
    [pic_mode="$withval"],
228
 
    [pic_mode=default])
229
 
test -z "$pic_mode" && pic_mode=default
230
 
 
231
1200
# Use C for the default configuration in the libtool script
232
 
tagname=
233
 
AC_LIBTOOL_LANG_C_CONFIG
234
 
_LT_AC_TAGCONFIG
235
 
])# AC_LIBTOOL_SETUP
236
 
 
237
 
 
238
 
# _LT_AC_SYS_COMPILER
 
1201
LT_SUPPORTED_TAG([CC])
 
1202
_LT_LANG_C_CONFIG
 
1203
_LT_LANG_DEFAULT_CONFIG
 
1204
_LT_CONFIG_COMMANDS
 
1205
])# _LT_SETUP
 
1206
 
 
1207
 
 
1208
# _LT_PROG_LTMAIN
 
1209
# ---------------
 
1210
# Note that this code is called both from `configure', and `config.status'
 
1211
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1212
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1213
# so we pass a copy along to make sure it has a sensible value anyway.
 
1214
m4_defun([_LT_PROG_LTMAIN],
 
1215
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1216
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1217
ltmain="$ac_aux_dir/ltmain.sh"
 
1218
])# _LT_PROG_LTMAIN
 
1219
 
 
1220
 
 
1221
 
 
1222
# So that we can recreate a full libtool script including additional
 
1223
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1224
# in macros and then make a single call at the end using the `libtool'
 
1225
# label.
 
1226
 
 
1227
 
 
1228
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1229
# ----------------------------------------
 
1230
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1231
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1232
[m4_ifval([$1],
 
1233
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1234
                     [$1
 
1235
])])])
 
1236
 
 
1237
# Initialize.
 
1238
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1239
 
 
1240
 
 
1241
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1242
# ------------------------------
 
1243
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1244
m4_define([_LT_CONFIG_LIBTOOL],
 
1245
[m4_ifval([$1],
 
1246
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1247
                     [$1
 
1248
])])])
 
1249
 
 
1250
# Initialize.
 
1251
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1252
 
 
1253
 
 
1254
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1255
# -----------------------------------------------------
 
1256
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1257
[_LT_CONFIG_LIBTOOL([$1])
 
1258
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1259
])
 
1260
 
 
1261
 
 
1262
# _LT_FORMAT_COMMENT([COMMENT])
 
1263
# -----------------------------
 
1264
# Add leading comment marks to the start of each line, and a trailing
 
1265
# full-stop to the whole comment if one is not present already.
 
1266
m4_define([_LT_FORMAT_COMMENT],
 
1267
[m4_ifval([$1], [
 
1268
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1269
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1270
)])
 
1271
 
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1277
# -------------------------------------------------------------------
 
1278
# CONFIGNAME is the name given to the value in the libtool script.
 
1279
# VARNAME is the (base) name used in the configure script.
 
1280
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1281
# VARNAME.  Any other value will be used directly.
 
1282
m4_define([_LT_DECL],
 
1283
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1284
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1285
        [m4_ifval([$1], [$1], [$2])])
 
1286
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1287
    m4_ifval([$4],
 
1288
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1289
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1290
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1291
])
 
1292
 
 
1293
 
 
1294
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1295
# --------------------------------------------------------
 
1296
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1297
 
 
1298
 
 
1299
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1300
# ------------------------------------------------
 
1301
m4_define([lt_decl_tag_varnames],
 
1302
[_lt_decl_filter([tagged?], [yes], $@)])
 
1303
 
 
1304
 
 
1305
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1306
# ---------------------------------------------------------
 
1307
m4_define([_lt_decl_filter],
 
1308
[m4_case([$#],
 
1309
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1310
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1311
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1312
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1313
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1314
])
 
1315
 
 
1316
 
 
1317
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1318
# --------------------------------------------------
 
1319
m4_define([lt_decl_quote_varnames],
 
1320
[_lt_decl_filter([value], [1], $@)])
 
1321
 
 
1322
 
 
1323
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1324
# ---------------------------------------------------
 
1325
m4_define([lt_decl_dquote_varnames],
 
1326
[_lt_decl_filter([value], [2], $@)])
 
1327
 
 
1328
 
 
1329
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1330
# ---------------------------------------------------
 
1331
m4_define([lt_decl_varnames_tagged],
 
1332
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1333
     m4_quote(m4_if([$2], [],
 
1334
                     m4_quote(lt_decl_tag_varnames),
 
1335
                  m4_quote(m4_shift($@)))),
 
1336
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
 
1337
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
 
1338
 
 
1339
 
 
1340
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1341
# ------------------------------------------------
 
1342
m4_define([lt_decl_all_varnames],
 
1343
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1344
     m4_if([$2], [],
 
1345
           m4_quote(lt_decl_varnames),
 
1346
        m4_quote(m4_shift($@))))[]dnl
 
1347
])
 
1348
m4_define([_lt_decl_all_varnames],
 
1349
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1350
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1351
])
 
1352
 
 
1353
 
 
1354
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1355
# ------------------------------------
 
1356
# Quote a variable value, and forward it to `config.status' so that its
 
1357
# declaration there will have the same value as in `configure'.  VARNAME
 
1358
# must have a single quote delimited value for this to work.
 
1359
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1360
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1361
 
 
1362
 
 
1363
# _LT_CONFIG_STATUS_DECLARATIONS
 
1364
# ------------------------------
 
1365
# We delimit libtool config variables with single quotes, so when
 
1366
# we write them to config.status, we have to be sure to quote all
 
1367
# embedded single quotes properly.  In configure, this macro expands
 
1368
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1369
#
 
1370
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1371
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1372
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1373
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1374
 
 
1375
 
 
1376
# _LT_LIBTOOL_TAGS
 
1377
# ----------------
 
1378
# Output comment and list of tags supported by the script
 
1379
m4_defun([_LT_LIBTOOL_TAGS],
 
1380
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1381
available_tags="_LT_TAGS"dnl
 
1382
])
 
1383
 
 
1384
 
 
1385
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1386
# -----------------------------------
 
1387
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1388
# expand to a commented shell variable setting:
 
1389
#
 
1390
#    # Some comment about what VAR is for.
 
1391
#    visible_name=$lt_internal_name
 
1392
m4_define([_LT_LIBTOOL_DECLARE],
 
1393
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1394
                                           [description])))[]dnl
 
1395
m4_pushdef([_libtool_name],
 
1396
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1397
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1398
    [0], [_libtool_name=[$]$1],
 
1399
    [1], [_libtool_name=$lt_[]$1],
 
1400
    [2], [_libtool_name=$lt_[]$1],
 
1401
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1402
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1403
])
 
1404
 
 
1405
 
 
1406
# _LT_LIBTOOL_CONFIG_VARS
 
1407
# -----------------------
 
1408
# Produce commented declarations of non-tagged libtool config variables
 
1409
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1410
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1411
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1412
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1413
[m4_foreach([_lt_var],
 
1414
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1415
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1416
 
 
1417
 
 
1418
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1419
# -------------------------
 
1420
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1421
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1422
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1423
 
 
1424
 
 
1425
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1426
# ------------------------------
 
1427
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1428
 
 
1429
 
 
1430
# _LT_CONFIG_COMMANDS
239
1431
# -------------------
240
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1432
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1433
# variables for single and double quote escaping we saved from calls
 
1434
# to _LT_DECL, we can put quote escaped variables declarations
 
1435
# into `config.status', and then the shell code to quote escape them in
 
1436
# for loops in `config.status'.  Finally, any additional code accumulated
 
1437
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1438
m4_defun([_LT_CONFIG_COMMANDS],
 
1439
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1440
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1441
        dnl instead of duplicating it all over again into config.status,
 
1442
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1443
        dnl needs to know what name is stored there:
 
1444
        [AC_CONFIG_COMMANDS([libtool],
 
1445
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1446
    dnl If the libtool generation code is destined for config.status,
 
1447
    dnl expand the accumulated commands and init code now:
 
1448
    [AC_CONFIG_COMMANDS([libtool],
 
1449
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1450
])#_LT_CONFIG_COMMANDS
 
1451
 
 
1452
 
 
1453
# Initialize.
 
1454
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1455
[
 
1456
 
 
1457
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1458
# if CDPATH is set.
 
1459
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1460
 
 
1461
sed_quote_subst='$sed_quote_subst'
 
1462
double_quote_subst='$double_quote_subst'
 
1463
delay_variable_subst='$delay_variable_subst'
 
1464
_LT_CONFIG_STATUS_DECLARATIONS
 
1465
LTCC='$LTCC'
 
1466
LTCFLAGS='$LTCFLAGS'
 
1467
compiler='$compiler_DEFAULT'
 
1468
 
 
1469
# Quote evaled strings.
 
1470
for var in lt_decl_all_varnames([[ \
 
1471
]], lt_decl_quote_varnames); do
 
1472
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1473
    *[[\\\\\\\`\\"\\\$]]*)
 
1474
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1475
      ;;
 
1476
    *)
 
1477
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1478
      ;;
 
1479
    esac
 
1480
done
 
1481
 
 
1482
# Double-quote double-evaled strings.
 
1483
for var in lt_decl_all_varnames([[ \
 
1484
]], lt_decl_dquote_varnames); do
 
1485
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1486
    *[[\\\\\\\`\\"\\\$]]*)
 
1487
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1488
      ;;
 
1489
    *)
 
1490
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1491
      ;;
 
1492
    esac
 
1493
done
 
1494
 
 
1495
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1496
case \$lt_ECHO in
 
1497
*'\\\[$]0 --fallback-echo"')dnl "
 
1498
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1499
  ;;
 
1500
esac
 
1501
 
 
1502
_LT_OUTPUT_LIBTOOL_INIT
 
1503
])
 
1504
 
 
1505
 
 
1506
# LT_OUTPUT
 
1507
# ---------
 
1508
# This macro allows early generation of the libtool script (before
 
1509
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1510
# tests.
 
1511
AC_DEFUN([LT_OUTPUT],
 
1512
[: ${CONFIG_LT=./config.lt}
 
1513
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1514
cat >"$CONFIG_LT" <<_LTEOF
 
1515
#! $SHELL
 
1516
# Generated by $as_me.
 
1517
# Run this file to recreate a libtool stub with the current configuration.
 
1518
 
 
1519
lt_cl_silent=false
 
1520
SHELL=\${CONFIG_SHELL-$SHELL}
 
1521
_LTEOF
 
1522
 
 
1523
cat >>"$CONFIG_LT" <<\_LTEOF
 
1524
AS_SHELL_SANITIZE
 
1525
_AS_PREPARE
 
1526
 
 
1527
exec AS_MESSAGE_FD>&1
 
1528
exec AS_MESSAGE_LOG_FD>>config.log
 
1529
{
 
1530
  echo
 
1531
  AS_BOX([Running $as_me.])
 
1532
} >&AS_MESSAGE_LOG_FD
 
1533
 
 
1534
lt_cl_help="\
 
1535
\`$as_me' creates a local libtool stub from the current configuration,
 
1536
for use in further configure time tests before the real libtool is
 
1537
generated.
 
1538
 
 
1539
Usage: $[0] [[OPTIONS]]
 
1540
 
 
1541
  -h, --help      print this help, then exit
 
1542
  -V, --version   print version number, then exit
 
1543
  -q, --quiet     do not print progress messages
 
1544
  -d, --debug     don't remove temporary files
 
1545
 
 
1546
Report bugs to <bug-libtool@gnu.org>."
 
1547
 
 
1548
lt_cl_version="\
 
1549
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1550
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1551
configured by $[0], generated by m4_PACKAGE_STRING.
 
1552
 
 
1553
Copyright (C) 2008 Free Software Foundation, Inc.
 
1554
This config.lt script is free software; the Free Software Foundation
 
1555
gives unlimited permision to copy, distribute and modify it."
 
1556
 
 
1557
while test $[#] != 0
 
1558
do
 
1559
  case $[1] in
 
1560
    --version | --v* | -V )
 
1561
      echo "$lt_cl_version"; exit 0 ;;
 
1562
    --help | --h* | -h )
 
1563
      echo "$lt_cl_help"; exit 0 ;;
 
1564
    --debug | --d* | -d )
 
1565
      debug=: ;;
 
1566
    --quiet | --q* | --silent | --s* | -q )
 
1567
      lt_cl_silent=: ;;
 
1568
 
 
1569
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1570
Try \`$[0] --help' for more information.]) ;;
 
1571
 
 
1572
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1573
Try \`$[0] --help' for more information.]) ;;
 
1574
  esac
 
1575
  shift
 
1576
done
 
1577
 
 
1578
if $lt_cl_silent; then
 
1579
  exec AS_MESSAGE_FD>/dev/null
 
1580
fi
 
1581
_LTEOF
 
1582
 
 
1583
cat >>"$CONFIG_LT" <<_LTEOF
 
1584
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1585
_LTEOF
 
1586
 
 
1587
cat >>"$CONFIG_LT" <<\_LTEOF
 
1588
AC_MSG_NOTICE([creating $ofile])
 
1589
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1590
AS_EXIT(0)
 
1591
_LTEOF
 
1592
chmod +x "$CONFIG_LT"
 
1593
 
 
1594
# configure is writing to config.log, but config.lt does its own redirection,
 
1595
# appending to config.log, which fails on DOS, as config.log is still kept
 
1596
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1597
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1598
if test "$no_create" != yes; then
 
1599
  lt_cl_success=:
 
1600
  test "$silent" = yes &&
 
1601
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1602
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1603
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1604
  exec AS_MESSAGE_LOG_FD>>config.log
 
1605
  $lt_cl_success || AS_EXIT(1)
 
1606
fi
 
1607
])# LT_OUTPUT
 
1608
 
 
1609
 
 
1610
# _LT_CONFIG(TAG)
 
1611
# ---------------
 
1612
# If TAG is the built-in tag, create an initial libtool script with a
 
1613
# default configuration from the untagged config vars.  Otherwise add code
 
1614
# to config.status for appending the configuration named by TAG from the
 
1615
# matching tagged config vars.
 
1616
m4_defun([_LT_CONFIG],
 
1617
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1618
_LT_CONFIG_SAVE_COMMANDS([
 
1619
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1620
  m4_if(_LT_TAG, [C], [
 
1621
    # See if we are running on zsh, and set the options which allow our
 
1622
    # commands through without removal of \ escapes.
 
1623
    if test -n "${ZSH_VERSION+set}" ; then
 
1624
      setopt NO_GLOB_SUBST
 
1625
    fi
 
1626
 
 
1627
    cfgfile="${ofile}T"
 
1628
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1629
    $RM "$cfgfile"
 
1630
 
 
1631
    cat <<_LT_EOF >> "$cfgfile"
 
1632
#! $SHELL
 
1633
 
 
1634
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1635
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1636
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1637
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1638
#
 
1639
_LT_COPYING
 
1640
_LT_LIBTOOL_TAGS
 
1641
 
 
1642
# ### BEGIN LIBTOOL CONFIG
 
1643
_LT_LIBTOOL_CONFIG_VARS
 
1644
_LT_LIBTOOL_TAG_VARS
 
1645
# ### END LIBTOOL CONFIG
 
1646
 
 
1647
_LT_EOF
 
1648
 
 
1649
  case $host_os in
 
1650
  aix3*)
 
1651
    cat <<\_LT_EOF >> "$cfgfile"
 
1652
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1653
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1654
# vanish in a puff of smoke.
 
1655
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1656
  COLLECT_NAMES=
 
1657
  export COLLECT_NAMES
 
1658
fi
 
1659
_LT_EOF
 
1660
    ;;
 
1661
  esac
 
1662
 
 
1663
  _LT_PROG_LTMAIN
 
1664
 
 
1665
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1666
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1667
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1668
  # is reportedly fixed, but why not run on old versions too?
 
1669
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1670
    || (rm -f "$cfgfile"; exit 1)
 
1671
 
 
1672
  _LT_PROG_XSI_SHELLFNS
 
1673
 
 
1674
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1675
    || (rm -f "$cfgfile"; exit 1)
 
1676
 
 
1677
  mv -f "$cfgfile" "$ofile" ||
 
1678
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1679
  chmod +x "$ofile"
 
1680
],
 
1681
[cat <<_LT_EOF >> "$ofile"
 
1682
 
 
1683
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1684
dnl in a comment (ie after a #).
 
1685
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1686
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1687
# ### END LIBTOOL TAG CONFIG: $1
 
1688
_LT_EOF
 
1689
])dnl /m4_if
 
1690
],
 
1691
[m4_if([$1], [], [
 
1692
    PACKAGE='$PACKAGE'
 
1693
    VERSION='$VERSION'
 
1694
    TIMESTAMP='$TIMESTAMP'
 
1695
    RM='$RM'
 
1696
    ofile='$ofile'], [])
 
1697
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1698
])# _LT_CONFIG
 
1699
 
 
1700
 
 
1701
# LT_SUPPORTED_TAG(TAG)
 
1702
# ---------------------
 
1703
# Trace this macro to discover what tags are supported by the libtool
 
1704
# --tag option, using:
 
1705
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1706
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1707
 
 
1708
 
 
1709
# C support is built-in for now
 
1710
m4_define([_LT_LANG_C_enabled], [])
 
1711
m4_define([_LT_TAGS], [])
 
1712
 
 
1713
 
 
1714
# LT_LANG(LANG)
 
1715
# -------------
 
1716
# Enable libtool support for the given language if not already enabled.
 
1717
AC_DEFUN([LT_LANG],
 
1718
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1719
m4_case([$1],
 
1720
  [C],                  [_LT_LANG(C)],
 
1721
  [C++],                [_LT_LANG(CXX)],
 
1722
  [Java],               [_LT_LANG(GCJ)],
 
1723
  [Fortran 77],         [_LT_LANG(F77)],
 
1724
  [Fortran],            [_LT_LANG(FC)],
 
1725
  [Windows Resource],   [_LT_LANG(RC)],
 
1726
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1727
    [_LT_LANG($1)],
 
1728
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1729
])# LT_LANG
 
1730
 
 
1731
 
 
1732
# _LT_LANG(LANGNAME)
 
1733
# ------------------
 
1734
m4_defun([_LT_LANG],
 
1735
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1736
  [LT_SUPPORTED_TAG([$1])dnl
 
1737
  m4_append([_LT_TAGS], [$1 ])dnl
 
1738
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1739
  _LT_LANG_$1_CONFIG($1)])dnl
 
1740
])# _LT_LANG
 
1741
 
 
1742
 
 
1743
# _LT_LANG_DEFAULT_CONFIG
 
1744
# -----------------------
 
1745
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1746
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1747
  [LT_LANG(CXX)],
 
1748
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1749
 
 
1750
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1751
  [LT_LANG(F77)],
 
1752
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1753
 
 
1754
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1755
  [LT_LANG(FC)],
 
1756
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1757
 
 
1758
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1759
dnl pulling things in needlessly.
 
1760
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1761
  [LT_LANG(GCJ)],
 
1762
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1763
    [LT_LANG(GCJ)],
 
1764
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1765
      [LT_LANG(GCJ)],
 
1766
      [m4_ifdef([AC_PROG_GCJ],
 
1767
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1768
       m4_ifdef([A][M_PROG_GCJ],
 
1769
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1770
       m4_ifdef([LT_PROG_GCJ],
 
1771
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1772
 
 
1773
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1774
  [LT_LANG(RC)],
 
1775
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1776
])# _LT_LANG_DEFAULT_CONFIG
 
1777
 
 
1778
# Obsolete macros:
 
1779
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1780
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1781
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1782
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1783
dnl aclocal-1.4 backwards compatibility:
 
1784
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1785
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1786
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1787
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1788
 
 
1789
 
 
1790
# _LT_TAG_COMPILER
 
1791
# ----------------
 
1792
m4_defun([_LT_TAG_COMPILER],
241
1793
[AC_REQUIRE([AC_PROG_CC])dnl
242
1794
 
 
1795
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1796
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1797
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1798
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1799
 
243
1800
# If no C compiler was specified, use CC.
244
1801
LTCC=${LTCC-"$CC"}
245
1802
 
248
1805
 
249
1806
# Allow CC to be a program name with arguments.
250
1807
compiler=$CC
251
 
])# _LT_AC_SYS_COMPILER
252
 
 
253
 
 
254
 
# _LT_CC_BASENAME(CC)
255
 
# -------------------
256
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
257
 
AC_DEFUN([_LT_CC_BASENAME],
258
 
[for cc_temp in $1""; do
259
 
  case $cc_temp in
260
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
261
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
262
 
    \-*) ;;
263
 
    *) break;;
264
 
  esac
265
 
done
266
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
267
 
])
 
1808
])# _LT_TAG_COMPILER
268
1809
 
269
1810
 
270
1811
# _LT_COMPILER_BOILERPLATE
271
1812
# ------------------------
272
1813
# Check for compiler boilerplate output or warnings with
273
1814
# the simple compiler test code.
274
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
275
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1815
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1816
[m4_require([_LT_DECL_SED])dnl
276
1817
ac_outfile=conftest.$ac_objext
277
1818
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
278
1819
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
279
1820
_lt_compiler_boilerplate=`cat conftest.err`
280
 
$rm conftest*
 
1821
$RM conftest*
281
1822
])# _LT_COMPILER_BOILERPLATE
282
1823
 
283
1824
 
285
1826
# ----------------------
286
1827
# Check for linker boilerplate output or warnings with
287
1828
# the simple link test code.
288
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
289
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1829
m4_defun([_LT_LINKER_BOILERPLATE],
 
1830
[m4_require([_LT_DECL_SED])dnl
290
1831
ac_outfile=conftest.$ac_objext
291
1832
echo "$lt_simple_link_test_code" >conftest.$ac_ext
292
1833
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
293
1834
_lt_linker_boilerplate=`cat conftest.err`
294
 
$rm -r conftest*
 
1835
$RM -r conftest*
295
1836
])# _LT_LINKER_BOILERPLATE
296
1837
 
297
1838
# _LT_REQUIRED_DARWIN_CHECKS
298
 
# --------------------------
299
 
# Check for some things on darwin
300
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1839
# -------------------------
 
1840
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
301
1841
  case $host_os in
302
1842
    rhapsody* | darwin*)
303
1843
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
1844
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1845
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1846
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1847
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1848
    _LT_DECL([], [DSYMUTIL], [1],
 
1849
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1850
    _LT_DECL([], [NMEDIT], [1],
 
1851
      [Tool to change global to local symbols on Mac OS X])
 
1852
    _LT_DECL([], [LIPO], [1],
 
1853
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1854
    _LT_DECL([], [OTOOL], [1],
 
1855
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1856
    _LT_DECL([], [OTOOL64], [1],
 
1857
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
305
1858
 
306
1859
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
1860
      [lt_cv_apple_cc_single_mod=no
308
1861
      if test -z "${LT_MULTI_MODULE}"; then
309
 
   # By default we will add the -single_module flag. You can override
310
 
   # by either setting the environment variable LT_MULTI_MODULE
311
 
   # non-empty at configure time, or by adding -multi_module to the
312
 
   # link flags.
313
 
   echo "int foo(void){return 1;}" > conftest.c
314
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
 
     -dynamiclib ${wl}-single_module conftest.c
316
 
   if test -f libconftest.dylib; then
317
 
     lt_cv_apple_cc_single_mod=yes
318
 
     rm -rf libconftest.dylib*
319
 
   fi
320
 
   rm conftest.c
 
1862
        # By default we will add the -single_module flag. You can override
 
1863
        # by either setting the environment variable LT_MULTI_MODULE
 
1864
        # non-empty at configure time, or by adding -multi_module to the
 
1865
        # link flags.
 
1866
        rm -rf libconftest.dylib*
 
1867
        echo "int foo(void){return 1;}" > conftest.c
 
1868
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1869
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1870
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1871
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1872
        _lt_result=$?
 
1873
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1874
          lt_cv_apple_cc_single_mod=yes
 
1875
        else
 
1876
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1877
        fi
 
1878
        rm -rf libconftest.dylib*
 
1879
        rm -f conftest.*
321
1880
      fi])
322
1881
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
1882
      [lt_cv_ld_exported_symbols_list],
326
1885
      echo "_main" > conftest.sym
327
1886
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
1887
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
 
   [lt_cv_ld_exported_symbols_list=yes],
330
 
   [lt_cv_ld_exported_symbols_list=no])
331
 
   LDFLAGS="$save_LDFLAGS"
 
1888
        [lt_cv_ld_exported_symbols_list=yes],
 
1889
        [lt_cv_ld_exported_symbols_list=no])
 
1890
        LDFLAGS="$save_LDFLAGS"
332
1891
    ])
333
1892
    case $host_os in
334
 
    rhapsody* | darwin1.[[0123]])
 
1893
    rhapsody* | darwin1.[[012]])
335
1894
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
336
1895
    darwin1.*)
337
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
338
 
    darwin*)
 
1896
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1897
    darwin*) # darwin 5.x on 
339
1898
      # if running on 10.5 or later, the deployment target defaults
340
1899
      # to the OS version, if on x86, and 10.4, the deployment
341
 
      # target defaults to 10.4. Don't you love it?
 
1900
      # target defaults to 10.4. Don't you love it? 
342
1901
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
345
 
   10.[[012]]*)
346
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
347
 
   10.*)
348
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1902
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1903
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1904
        10.[[012]]*)
 
1905
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1906
        10.*)
 
1907
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
349
1908
      esac
350
1909
    ;;
351
1910
  esac
355
1914
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
1915
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
357
1916
    else
358
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1917
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
359
1918
    fi
360
1919
    if test "$DSYMUTIL" != ":"; then
361
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1920
      _lt_dsymutil='~$DSYMUTIL $lib || :'
362
1921
    else
363
1922
      _lt_dsymutil=
364
1923
    fi
366
1925
  esac
367
1926
])
368
1927
 
369
 
# _LT_AC_SYS_LIBPATH_AIX
370
 
# ----------------------
 
1928
 
 
1929
# _LT_DARWIN_LINKER_FEATURES
 
1930
# --------------------------
 
1931
# Checks for linker and compiler features on darwin
 
1932
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1933
[
 
1934
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1935
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1936
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1937
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1938
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1939
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1940
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1941
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1942
  if test "$GCC" = "yes"; then
 
1943
    output_verbose_link_cmd=echo
 
1944
    _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}"
 
1945
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1946
    _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}"
 
1947
    _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}"
 
1948
    m4_if([$1], [CXX],
 
1949
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1950
      _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}"
 
1951
      _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}"
 
1952
    fi
 
1953
],[])
 
1954
  else
 
1955
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1956
  fi
 
1957
])
 
1958
 
 
1959
# _LT_SYS_MODULE_PATH_AIX
 
1960
# -----------------------
371
1961
# Links a minimal program and checks the executable
372
1962
# for the system default hardcoded library path. In most cases,
373
1963
# this is /usr/lib:/lib, but when the MPI compilers are used
374
1964
# the location of the communication and MPI libs are included too.
375
1965
# If we don't find anything, use the default library path according
376
1966
# to the aix ld manual.
377
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
378
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1967
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1968
[m4_require([_LT_DECL_SED])dnl
379
1969
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
380
1970
lt_aix_libpath_sed='
381
1971
    /Import File Strings/,/^$/ {
390
1980
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
391
1981
fi],[])
392
1982
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
393
 
])# _LT_AC_SYS_LIBPATH_AIX
394
 
 
395
 
 
396
 
# _LT_AC_SHELL_INIT(ARG)
397
 
# ----------------------
398
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1983
])# _LT_SYS_MODULE_PATH_AIX
 
1984
 
 
1985
 
 
1986
# _LT_SHELL_INIT(ARG)
 
1987
# -------------------
 
1988
m4_define([_LT_SHELL_INIT],
399
1989
[ifdef([AC_DIVERSION_NOTICE],
400
1990
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
401
1991
         [AC_DIVERT_PUSH(NOTICE)])
402
1992
$1
403
1993
AC_DIVERT_POP
404
 
])# _LT_AC_SHELL_INIT
405
 
 
406
 
 
407
 
# _LT_AC_PROG_ECHO_BACKSLASH
408
 
# --------------------------
 
1994
])# _LT_SHELL_INIT
 
1995
 
 
1996
 
 
1997
# _LT_PROG_ECHO_BACKSLASH
 
1998
# -----------------------
409
1999
# Add some code to the start of the generated configure script which
410
2000
# will find an echo command which doesn't interpret backslashes.
411
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
412
 
[_LT_AC_SHELL_INIT([
 
2001
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2002
[_LT_SHELL_INIT([
413
2003
# Check that we are running under the correct shell.
414
2004
SHELL=${CONFIG_SHELL-/bin/sh}
415
2005
 
416
 
case X$ECHO in
 
2006
case X$lt_ECHO in
417
2007
X*--fallback-echo)
418
2008
  # Remove one level of quotation (which was required for Make).
419
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2009
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
420
2010
  ;;
421
2011
esac
422
2012
 
423
 
echo=${ECHO-echo}
 
2013
ECHO=${lt_ECHO-echo}
424
2014
if test "X[$]1" = X--no-reexec; then
425
2015
  # Discard the --no-reexec flag, and continue.
426
2016
  shift
427
2017
elif test "X[$]1" = X--fallback-echo; then
428
2018
  # Avoid inline document here, it may be left over
429
2019
  :
430
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
431
 
  # Yippee, $echo works!
 
2020
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2021
  # Yippee, $ECHO works!
432
2022
  :
433
2023
else
434
2024
  # Restart under the correct shell.
438
2028
if test "X[$]1" = X--fallback-echo; then
439
2029
  # used as fallback echo
440
2030
  shift
441
 
  cat <<EOF
 
2031
  cat <<_LT_EOF
442
2032
[$]*
443
 
EOF
 
2033
_LT_EOF
444
2034
  exit 0
445
2035
fi
446
2036
 
448
2038
# if CDPATH is set.
449
2039
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
450
2040
 
451
 
if test -z "$ECHO"; then
452
 
if test "X${echo_test_string+set}" != Xset; then
453
 
# find a string as large as possible, as long as the shell can cope with it
454
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
455
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
456
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
457
 
       echo_test_string=`eval $cmd` &&
458
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
459
 
    then
460
 
      break
461
 
    fi
462
 
  done
463
 
fi
464
 
 
465
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
466
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
467
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
468
 
  :
469
 
else
470
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
471
 
  # backslashes.  This makes it impossible to quote backslashes using
472
 
  #   echo "$something" | sed 's/\\/\\\\/g'
473
 
  #
474
 
  # So, first we look for a working echo in the user's PATH.
475
 
 
476
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
477
 
  for dir in $PATH /usr/ucb; do
 
2041
if test -z "$lt_ECHO"; then
 
2042
  if test "X${echo_test_string+set}" != Xset; then
 
2043
    # find a string as large as possible, as long as the shell can cope with it
 
2044
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2045
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2046
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2047
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2048
      then
 
2049
        break
 
2050
      fi
 
2051
    done
 
2052
  fi
 
2053
 
 
2054
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2055
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2056
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2057
    :
 
2058
  else
 
2059
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2060
    # backslashes.  This makes it impossible to quote backslashes using
 
2061
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2062
    #
 
2063
    # So, first we look for a working echo in the user's PATH.
 
2064
 
 
2065
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2066
    for dir in $PATH /usr/ucb; do
 
2067
      IFS="$lt_save_ifs"
 
2068
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2069
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2070
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2071
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2072
        ECHO="$dir/echo"
 
2073
        break
 
2074
      fi
 
2075
    done
478
2076
    IFS="$lt_save_ifs"
479
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
480
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
481
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
482
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
483
 
      echo="$dir/echo"
484
 
      break
485
 
    fi
486
 
  done
487
 
  IFS="$lt_save_ifs"
488
2077
 
489
 
  if test "X$echo" = Xecho; then
490
 
    # We didn't find a better echo, so look for alternatives.
491
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
492
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
493
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
494
 
      # This shell has a builtin print -r that does the trick.
495
 
      echo='print -r'
496
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
497
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
498
 
      # If we have ksh, try running configure again with it.
499
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
500
 
      export ORIGINAL_CONFIG_SHELL
501
 
      CONFIG_SHELL=/bin/ksh
502
 
      export CONFIG_SHELL
503
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
504
 
    else
505
 
      # Try using printf.
506
 
      echo='printf %s\n'
507
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
508
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
509
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
510
 
        # Cool, printf works
511
 
        :
512
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
513
 
           test "X$echo_testing_string" = 'X\t' &&
514
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
515
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
516
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
517
 
        export CONFIG_SHELL
518
 
        SHELL="$CONFIG_SHELL"
519
 
        export SHELL
520
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
521
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
522
 
           test "X$echo_testing_string" = 'X\t' &&
523
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
524
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
525
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2078
    if test "X$ECHO" = Xecho; then
 
2079
      # We didn't find a better echo, so look for alternatives.
 
2080
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2081
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2082
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2083
        # This shell has a builtin print -r that does the trick.
 
2084
        ECHO='print -r'
 
2085
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2086
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2087
        # If we have ksh, try running configure again with it.
 
2088
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2089
        export ORIGINAL_CONFIG_SHELL
 
2090
        CONFIG_SHELL=/bin/ksh
 
2091
        export CONFIG_SHELL
 
2092
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
526
2093
      else
527
 
        # maybe with a smaller string...
528
 
        prev=:
529
 
 
530
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
531
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
532
 
          then
533
 
            break
 
2094
        # Try using printf.
 
2095
        ECHO='printf %s\n'
 
2096
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2097
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2098
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2099
          # Cool, printf works
 
2100
          :
 
2101
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2102
             test "X$echo_testing_string" = 'X\t' &&
 
2103
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2104
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2105
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2106
          export CONFIG_SHELL
 
2107
          SHELL="$CONFIG_SHELL"
 
2108
          export SHELL
 
2109
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2110
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2111
             test "X$echo_testing_string" = 'X\t' &&
 
2112
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2113
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2114
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2115
        else
 
2116
          # maybe with a smaller string...
 
2117
          prev=:
 
2118
 
 
2119
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2120
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2121
            then
 
2122
              break
 
2123
            fi
 
2124
            prev="$cmd"
 
2125
          done
 
2126
 
 
2127
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2128
            echo_test_string=`eval $prev`
 
2129
            export echo_test_string
 
2130
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2131
          else
 
2132
            # Oops.  We lost completely, so just stick with echo.
 
2133
            ECHO=echo
534
2134
          fi
535
 
          prev="$cmd"
536
 
        done
537
 
 
538
 
        if test "$prev" != 'sed 50q "[$]0"'; then
539
 
          echo_test_string=`eval $prev`
540
 
          export echo_test_string
541
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
542
 
        else
543
 
          # Oops.  We lost completely, so just stick with echo.
544
 
          echo=echo
545
 
        fi
 
2135
        fi
546
2136
      fi
547
2137
    fi
548
2138
  fi
549
2139
fi
550
 
fi
551
2140
 
552
2141
# Copy echo and quote the copy suitably for passing to libtool from
553
2142
# the Makefile, instead of quoting the original, which is used later.
554
 
ECHO=$echo
555
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
556
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2143
lt_ECHO=$ECHO
 
2144
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2145
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
557
2146
fi
558
2147
 
559
 
AC_SUBST(ECHO)
560
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
561
 
 
562
 
 
563
 
# _LT_AC_LOCK
564
 
# -----------
565
 
AC_DEFUN([_LT_AC_LOCK],
 
2148
AC_SUBST(lt_ECHO)
 
2149
])
 
2150
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2151
_LT_DECL([], [ECHO], [1],
 
2152
    [An echo program that does not interpret backslashes])
 
2153
])# _LT_PROG_ECHO_BACKSLASH
 
2154
 
 
2155
 
 
2156
# _LT_ENABLE_LOCK
 
2157
# ---------------
 
2158
m4_defun([_LT_ENABLE_LOCK],
566
2159
[AC_ARG_ENABLE([libtool-lock],
567
 
    [AC_HELP_STRING([--disable-libtool-lock],
568
 
        [avoid locking (might break parallel builds)])])
 
2160
  [AS_HELP_STRING([--disable-libtool-lock],
 
2161
    [avoid locking (might break parallel builds)])])
569
2162
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
570
2163
 
571
2164
# Some flags need to be propagated to the compiler or linker for good
576
2169
  echo 'int i;' > conftest.$ac_ext
577
2170
  if AC_TRY_EVAL(ac_compile); then
578
2171
    case `/usr/bin/file conftest.$ac_objext` in
579
 
    *ELF-32*)
580
 
      HPUX_IA64_MODE="32"
581
 
      ;;
582
 
    *ELF-64*)
583
 
      HPUX_IA64_MODE="64"
584
 
      ;;
 
2172
      *ELF-32*)
 
2173
        HPUX_IA64_MODE="32"
 
2174
        ;;
 
2175
      *ELF-64*)
 
2176
        HPUX_IA64_MODE="64"
 
2177
        ;;
585
2178
    esac
586
2179
  fi
587
2180
  rm -rf conftest*
590
2183
  # Find out which ABI we are using.
591
2184
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
592
2185
  if AC_TRY_EVAL(ac_compile); then
593
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
594
 
    case `/usr/bin/file conftest.$ac_objext` in
595
 
    *32-bit*)
596
 
      LD="${LD-ld} -melf32bsmip"
597
 
      ;;
598
 
    *N32*)
599
 
      LD="${LD-ld} -melf32bmipn32"
600
 
      ;;
601
 
    *64-bit*)
602
 
      LD="${LD-ld} -melf64bmip"
603
 
      ;;
604
 
    esac
605
 
   else
606
 
    case `/usr/bin/file conftest.$ac_objext` in
607
 
    *32-bit*)
608
 
      LD="${LD-ld} -32"
609
 
      ;;
610
 
    *N32*)
611
 
      LD="${LD-ld} -n32"
612
 
      ;;
613
 
    *64-bit*)
614
 
      LD="${LD-ld} -64"
615
 
      ;;
616
 
    esac
617
 
   fi
 
2186
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2187
      case `/usr/bin/file conftest.$ac_objext` in
 
2188
        *32-bit*)
 
2189
          LD="${LD-ld} -melf32bsmip"
 
2190
          ;;
 
2191
        *N32*)
 
2192
          LD="${LD-ld} -melf32bmipn32"
 
2193
          ;;
 
2194
        *64-bit*)
 
2195
          LD="${LD-ld} -melf64bmip"
 
2196
        ;;
 
2197
      esac
 
2198
    else
 
2199
      case `/usr/bin/file conftest.$ac_objext` in
 
2200
        *32-bit*)
 
2201
          LD="${LD-ld} -32"
 
2202
          ;;
 
2203
        *N32*)
 
2204
          LD="${LD-ld} -n32"
 
2205
          ;;
 
2206
        *64-bit*)
 
2207
          LD="${LD-ld} -64"
 
2208
          ;;
 
2209
      esac
 
2210
    fi
618
2211
  fi
619
2212
  rm -rf conftest*
620
2213
  ;;
621
2214
 
622
2215
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
623
 
s390*-*linux*|sparc*-*linux*)
 
2216
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
624
2217
  # Find out which ABI we are using.
625
2218
  echo 'int i;' > conftest.$ac_ext
626
2219
  if AC_TRY_EVAL(ac_compile); then
627
2220
    case `/usr/bin/file conftest.o` in
628
 
    *32-bit*)
629
 
      case $host in
630
 
        x86_64-*kfreebsd*-gnu)
631
 
          LD="${LD-ld} -m elf_i386_fbsd"
632
 
          ;;
633
 
        x86_64-*linux*)
634
 
          LD="${LD-ld} -m elf_i386"
635
 
          ;;
636
 
        ppc64-*linux*|powerpc64-*linux*)
637
 
          LD="${LD-ld} -m elf32ppclinux"
638
 
          ;;
639
 
        s390x-*linux*)
640
 
          LD="${LD-ld} -m elf_s390"
641
 
          ;;
642
 
        sparc64-*linux*)
643
 
          LD="${LD-ld} -m elf32_sparc"
644
 
          ;;
645
 
      esac
646
 
      ;;
647
 
    *64-bit*)
648
 
      case $host in
649
 
        x86_64-*kfreebsd*-gnu)
650
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
651
 
          ;;
652
 
        x86_64-*linux*)
653
 
          LD="${LD-ld} -m elf_x86_64"
654
 
          ;;
655
 
        ppc*-*linux*|powerpc*-*linux*)
656
 
          LD="${LD-ld} -m elf64ppc"
657
 
          ;;
658
 
        s390*-*linux*)
659
 
          LD="${LD-ld} -m elf64_s390"
660
 
          ;;
661
 
        sparc*-*linux*)
662
 
          LD="${LD-ld} -m elf64_sparc"
663
 
          ;;
664
 
      esac
665
 
      ;;
 
2221
      *32-bit*)
 
2222
        case $host in
 
2223
          x86_64-*kfreebsd*-gnu)
 
2224
            LD="${LD-ld} -m elf_i386_fbsd"
 
2225
            ;;
 
2226
          x86_64-*linux*)
 
2227
            LD="${LD-ld} -m elf_i386"
 
2228
            ;;
 
2229
          ppc64-*linux*|powerpc64-*linux*)
 
2230
            LD="${LD-ld} -m elf32ppclinux"
 
2231
            ;;
 
2232
          s390x-*linux*)
 
2233
            LD="${LD-ld} -m elf_s390"
 
2234
            ;;
 
2235
          sparc64-*linux*)
 
2236
            LD="${LD-ld} -m elf32_sparc"
 
2237
            ;;
 
2238
        esac
 
2239
        ;;
 
2240
      *64-bit*)
 
2241
        case $host in
 
2242
          x86_64-*kfreebsd*-gnu)
 
2243
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2244
            ;;
 
2245
          x86_64-*linux*)
 
2246
            LD="${LD-ld} -m elf_x86_64"
 
2247
            ;;
 
2248
          ppc*-*linux*|powerpc*-*linux*)
 
2249
            LD="${LD-ld} -m elf64ppc"
 
2250
            ;;
 
2251
          s390*-*linux*|s390*-*tpf*)
 
2252
            LD="${LD-ld} -m elf64_s390"
 
2253
            ;;
 
2254
          sparc*-*linux*)
 
2255
            LD="${LD-ld} -m elf64_sparc"
 
2256
            ;;
 
2257
        esac
 
2258
        ;;
666
2259
    esac
667
2260
  fi
668
2261
  rm -rf conftest*
674
2267
  CFLAGS="$CFLAGS -belf"
675
2268
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
676
2269
    [AC_LANG_PUSH(C)
677
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2270
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
678
2271
     AC_LANG_POP])
679
2272
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
680
2273
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
690
2283
      case $lt_cv_prog_gnu_ld in
691
2284
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
692
2285
      *)
693
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2286
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
694
2287
          LD="${LD-ld} -64"
695
2288
        fi
696
2289
        ;;
700
2293
  fi
701
2294
  rm -rf conftest*
702
2295
  ;;
703
 
 
704
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
705
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
706
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
707
 
  AC_CHECK_TOOL(AS, as, false)
708
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
709
 
  ;;
710
 
  ])
711
2296
esac
712
2297
 
713
2298
need_locks="$enable_libtool_lock"
714
 
 
715
 
])# _LT_AC_LOCK
716
 
 
717
 
 
718
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2299
])# _LT_ENABLE_LOCK
 
2300
 
 
2301
 
 
2302
# _LT_CMD_OLD_ARCHIVE
 
2303
# -------------------
 
2304
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2305
[AC_CHECK_TOOL(AR, ar, false)
 
2306
test -z "$AR" && AR=ar
 
2307
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2308
_LT_DECL([], [AR], [1], [The archiver])
 
2309
_LT_DECL([], [AR_FLAGS], [1])
 
2310
 
 
2311
AC_CHECK_TOOL(STRIP, strip, :)
 
2312
test -z "$STRIP" && STRIP=:
 
2313
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2314
 
 
2315
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2316
test -z "$RANLIB" && RANLIB=:
 
2317
_LT_DECL([], [RANLIB], [1],
 
2318
    [Commands used to install an old-style archive])
 
2319
 
 
2320
# Determine commands to create old-style static archives.
 
2321
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2322
old_postinstall_cmds='chmod 644 $oldlib'
 
2323
old_postuninstall_cmds=
 
2324
 
 
2325
if test -n "$RANLIB"; then
 
2326
  case $host_os in
 
2327
  openbsd*)
 
2328
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2329
    ;;
 
2330
  *)
 
2331
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2332
    ;;
 
2333
  esac
 
2334
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2335
fi
 
2336
_LT_DECL([], [old_postinstall_cmds], [2])
 
2337
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2338
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2339
    [Commands used to build an old-style archive])
 
2340
])# _LT_CMD_OLD_ARCHIVE
 
2341
 
 
2342
 
 
2343
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
719
2344
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
720
2345
# ----------------------------------------------------------------
721
2346
# Check whether the given compiler option works
722
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
723
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2347
AC_DEFUN([_LT_COMPILER_OPTION],
 
2348
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2349
m4_require([_LT_DECL_SED])dnl
724
2350
AC_CACHE_CHECK([$1], [$2],
725
2351
  [$2=no
726
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2352
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
727
2353
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
728
2354
   lt_compiler_flag="$3"
729
2355
   # Insert the option either (1) after the last *FLAGS variable, or
743
2369
   if (exit $ac_status) && test -s "$ac_outfile"; then
744
2370
     # The compiler can only warn and ignore the option if not recognized
745
2371
     # So say no if there are warnings other than the usual output.
746
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2372
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
747
2373
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
748
2374
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
749
2375
       $2=yes
750
2376
     fi
751
2377
   fi
752
 
   $rm conftest*
 
2378
   $RM conftest*
753
2379
])
754
2380
 
755
2381
if test x"[$]$2" = xyes; then
756
 
    ifelse([$5], , :, [$5])
 
2382
    m4_if([$5], , :, [$5])
757
2383
else
758
 
    ifelse([$6], , :, [$6])
 
2384
    m4_if([$6], , :, [$6])
759
2385
fi
760
 
])# AC_LIBTOOL_COMPILER_OPTION
761
 
 
762
 
 
763
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
764
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
765
 
# ------------------------------------------------------------
766
 
# Check whether the given compiler option works
767
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
768
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2386
])# _LT_COMPILER_OPTION
 
2387
 
 
2388
# Old name:
 
2389
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2390
dnl aclocal-1.4 backwards compatibility:
 
2391
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2392
 
 
2393
 
 
2394
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2395
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2396
# ----------------------------------------------------
 
2397
# Check whether the given linker option works
 
2398
AC_DEFUN([_LT_LINKER_OPTION],
 
2399
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2400
m4_require([_LT_DECL_SED])dnl
769
2401
AC_CACHE_CHECK([$1], [$2],
770
2402
  [$2=no
771
2403
   save_LDFLAGS="$LDFLAGS"
777
2409
     if test -s conftest.err; then
778
2410
       # Append any errors to the config.log.
779
2411
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
780
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2412
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
781
2413
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
782
2414
       if diff conftest.exp conftest.er2 >/dev/null; then
783
2415
         $2=yes
786
2418
       $2=yes
787
2419
     fi
788
2420
   fi
789
 
   $rm -r conftest*
 
2421
   $RM -r conftest*
790
2422
   LDFLAGS="$save_LDFLAGS"
791
2423
])
792
2424
 
793
2425
if test x"[$]$2" = xyes; then
794
 
    ifelse([$4], , :, [$4])
 
2426
    m4_if([$4], , :, [$4])
795
2427
else
796
 
    ifelse([$5], , :, [$5])
 
2428
    m4_if([$5], , :, [$5])
797
2429
fi
798
 
])# AC_LIBTOOL_LINKER_OPTION
799
 
 
800
 
 
801
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
802
 
# --------------------------
803
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
804
 
[# find the maximum length of command line arguments
 
2430
])# _LT_LINKER_OPTION
 
2431
 
 
2432
# Old name:
 
2433
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2434
dnl aclocal-1.4 backwards compatibility:
 
2435
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2436
 
 
2437
 
 
2438
# LT_CMD_MAX_LEN
 
2439
#---------------
 
2440
AC_DEFUN([LT_CMD_MAX_LEN],
 
2441
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2442
# find the maximum length of command line arguments
805
2443
AC_MSG_CHECKING([the maximum length of command line arguments])
806
2444
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
807
2445
  i=0
878
2516
  sysv5* | sco5v6* | sysv4.2uw2*)
879
2517
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
880
2518
    if test -n "$kargmax"; then
881
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2519
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
882
2520
    else
883
2521
      lt_cv_sys_max_cmd_len=32768
884
2522
    fi
889
2527
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
2528
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
891
2529
    else
 
2530
      # Make teststring a little bigger before we do anything with it.
 
2531
      # a 1K string should be a reasonable start.
 
2532
      for i in 1 2 3 4 5 6 7 8 ; do
 
2533
        teststring=$teststring$teststring
 
2534
      done
892
2535
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
894
 
               = "XX$teststring") >/dev/null 2>&1 &&
895
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
2536
      # If test is not a shell built-in, we'll probably end up computing a
 
2537
      # maximum length that is only half of the actual maximum length, but
 
2538
      # we can't tell.
 
2539
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2540
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
897
2541
              test $i != 17 # 1/2 MB should be enough
898
2542
      do
899
2543
        i=`expr $i + 1`
900
2544
        teststring=$teststring$teststring
901
2545
      done
 
2546
      # Only check the string length outside the loop.
 
2547
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
902
2548
      teststring=
903
 
      # Add a significant safety factor because C++ compilers can tack on massive
904
 
      # amounts of additional arguments before passing them to the linker.
905
 
      # It appears as though 1/2 is a usable value.
 
2549
      # Add a significant safety factor because C++ compilers can tack on
 
2550
      # massive amounts of additional arguments before passing them to the
 
2551
      # linker.  It appears as though 1/2 is a usable value.
906
2552
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
907
2553
    fi
908
2554
    ;;
913
2559
else
914
2560
  AC_MSG_RESULT(none)
915
2561
fi
916
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
917
 
 
918
 
 
919
 
# _LT_AC_CHECK_DLFCN
920
 
# ------------------
921
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
922
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
923
 
])# _LT_AC_CHECK_DLFCN
924
 
 
925
 
 
926
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
927
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
928
 
# ---------------------------------------------------------------------
929
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
930
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2562
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2563
_LT_DECL([], [max_cmd_len], [0],
 
2564
    [What is the maximum length of a command?])
 
2565
])# LT_CMD_MAX_LEN
 
2566
 
 
2567
# Old name:
 
2568
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2569
dnl aclocal-1.4 backwards compatibility:
 
2570
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2571
 
 
2572
 
 
2573
# _LT_HEADER_DLFCN
 
2574
# ----------------
 
2575
m4_defun([_LT_HEADER_DLFCN],
 
2576
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2577
])# _LT_HEADER_DLFCN
 
2578
 
 
2579
 
 
2580
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2581
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2582
# ----------------------------------------------------------------
 
2583
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2584
[m4_require([_LT_HEADER_DLFCN])dnl
931
2585
if test "$cross_compiling" = yes; then :
932
2586
  [$4]
933
2587
else
934
2588
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
935
2589
  lt_status=$lt_dlunknown
936
 
  cat > conftest.$ac_ext <<EOF
 
2590
  cat > conftest.$ac_ext <<_LT_EOF
937
2591
[#line __oline__ "configure"
938
2592
#include "confdefs.h"
939
2593
 
996
2650
 
997
2651
    exit (status);
998
2652
}]
999
 
EOF
 
2653
_LT_EOF
1000
2654
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1001
2655
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1002
2656
    lt_status=$?
1011
2665
  fi
1012
2666
fi
1013
2667
rm -fr conftest*
1014
 
])# _LT_AC_TRY_DLOPEN_SELF
1015
 
 
1016
 
 
1017
 
# AC_LIBTOOL_DLOPEN_SELF
1018
 
# ----------------------
1019
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1020
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2668
])# _LT_TRY_DLOPEN_SELF
 
2669
 
 
2670
 
 
2671
# LT_SYS_DLOPEN_SELF
 
2672
# ------------------
 
2673
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2674
[m4_require([_LT_HEADER_DLFCN])dnl
1021
2675
if test "x$enable_dlopen" != xyes; then
1022
2676
  enable_dlopen=unknown
1023
2677
  enable_dlopen_self=unknown
1036
2690
  mingw* | pw32*)
1037
2691
    lt_cv_dlopen="LoadLibrary"
1038
2692
    lt_cv_dlopen_libs=
1039
 
   ;;
 
2693
    ;;
1040
2694
 
1041
2695
  cygwin*)
1042
2696
    lt_cv_dlopen="dlopen"
1043
2697
    lt_cv_dlopen_libs=
1044
 
   ;;
 
2698
    ;;
1045
2699
 
1046
2700
  darwin*)
1047
2701
  # if libdl is installed we need to link against it
1051
2705
    lt_cv_dlopen_libs=
1052
2706
    lt_cv_dlopen_self=yes
1053
2707
    ])
1054
 
   ;;
 
2708
    ;;
1055
2709
 
1056
2710
  *)
1057
2711
    AC_CHECK_FUNC([shl_load],
1093
2747
 
1094
2748
    AC_CACHE_CHECK([whether a program can dlopen itself],
1095
2749
          lt_cv_dlopen_self, [dnl
1096
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2750
          _LT_TRY_DLOPEN_SELF(
1097
2751
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1098
2752
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1099
2753
    ])
1101
2755
    if test "x$lt_cv_dlopen_self" = xyes; then
1102
2756
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1103
2757
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1104
 
          lt_cv_dlopen_self_static, [dnl
1105
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2758
          lt_cv_dlopen_self_static, [dnl
 
2759
          _LT_TRY_DLOPEN_SELF(
1106
2760
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1107
2761
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1108
2762
      ])
1124
2778
  *) enable_dlopen_self_static=unknown ;;
1125
2779
  esac
1126
2780
fi
1127
 
])# AC_LIBTOOL_DLOPEN_SELF
1128
 
 
1129
 
 
1130
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1131
 
# ---------------------------------
1132
 
# Check to see if options -c and -o are simultaneously supported by compiler
1133
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1134
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1135
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2781
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2782
         [Whether dlopen is supported])
 
2783
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2784
         [Whether dlopen of programs is supported])
 
2785
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2786
         [Whether dlopen of statically linked programs is supported])
 
2787
])# LT_SYS_DLOPEN_SELF
 
2788
 
 
2789
# Old name:
 
2790
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2791
dnl aclocal-1.4 backwards compatibility:
 
2792
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2793
 
 
2794
 
 
2795
# _LT_COMPILER_C_O([TAGNAME])
 
2796
# ---------------------------
 
2797
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2798
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2799
m4_defun([_LT_COMPILER_C_O],
 
2800
[m4_require([_LT_DECL_SED])dnl
 
2801
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2802
m4_require([_LT_TAG_COMPILER])dnl
1136
2803
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1137
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1138
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1139
 
   $rm -r conftest 2>/dev/null
 
2804
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2805
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2806
   $RM -r conftest 2>/dev/null
1140
2807
   mkdir conftest
1141
2808
   cd conftest
1142
2809
   mkdir out
1160
2827
   then
1161
2828
     # The compiler can only warn and ignore the option if not recognized
1162
2829
     # So say no if there are warnings
1163
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2830
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1164
2831
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1165
2832
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1166
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2833
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1167
2834
     fi
1168
2835
   fi
1169
2836
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1170
 
   $rm conftest*
 
2837
   $RM conftest*
1171
2838
   # SGI C++ compiler will create directory out/ii_files/ for
1172
2839
   # template instantiation
1173
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1174
 
   $rm out/* && rmdir out
 
2840
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2841
   $RM out/* && rmdir out
1175
2842
   cd ..
1176
 
   rmdir conftest
1177
 
   $rm conftest*
 
2843
   $RM -r conftest
 
2844
   $RM conftest*
1178
2845
])
1179
 
])# AC_LIBTOOL_PROG_CC_C_O
1180
 
 
1181
 
 
1182
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1183
 
# -----------------------------------------
 
2846
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2847
        [Does compiler simultaneously support -c and -o options?])
 
2848
])# _LT_COMPILER_C_O
 
2849
 
 
2850
 
 
2851
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2852
# ----------------------------------
1184
2853
# Check to see if we can do hard links to lock some files if needed
1185
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1186
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2854
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2855
[m4_require([_LT_ENABLE_LOCK])dnl
 
2856
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2857
_LT_COMPILER_C_O([$1])
1187
2858
 
1188
2859
hard_links="nottested"
1189
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2860
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1190
2861
  # do not overwrite the value of need_locks provided by the user
1191
2862
  AC_MSG_CHECKING([if we can lock with hard links])
1192
2863
  hard_links=yes
1193
 
  $rm conftest*
 
2864
  $RM conftest*
1194
2865
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1195
2866
  touch conftest.a
1196
2867
  ln conftest.a conftest.b 2>&5 || hard_links=no
1203
2874
else
1204
2875
  need_locks=no
1205
2876
fi
1206
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1207
 
 
1208
 
 
1209
 
# AC_LIBTOOL_OBJDIR
1210
 
# -----------------
1211
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2877
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2878
])# _LT_COMPILER_FILE_LOCKS
 
2879
 
 
2880
 
 
2881
# _LT_CHECK_OBJDIR
 
2882
# ----------------
 
2883
m4_defun([_LT_CHECK_OBJDIR],
1212
2884
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1213
2885
[rm -f .libs 2>/dev/null
1214
2886
mkdir .libs 2>/dev/null
1220
2892
fi
1221
2893
rmdir .libs 2>/dev/null])
1222
2894
objdir=$lt_cv_objdir
1223
 
])# AC_LIBTOOL_OBJDIR
1224
 
 
1225
 
 
1226
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1227
 
# ----------------------------------------------
 
2895
_LT_DECL([], [objdir], [0],
 
2896
         [The name of the directory that contains temporary libtool files])dnl
 
2897
m4_pattern_allow([LT_OBJDIR])dnl
 
2898
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2899
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2900
])# _LT_CHECK_OBJDIR
 
2901
 
 
2902
 
 
2903
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2904
# --------------------------------------
1228
2905
# Check hardcoding attributes.
1229
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2906
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1230
2907
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1231
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1232
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1233
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1234
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2908
_LT_TAGVAR(hardcode_action, $1)=
 
2909
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2910
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2911
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1235
2912
 
1236
 
  # We can hardcode non-existant directories.
1237
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2913
  # We can hardcode non-existent directories.
 
2914
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1238
2915
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1239
2916
     # have to relink, otherwise we might link with an installed library
1240
2917
     # when we should be linking with a yet-to-be-installed one
1241
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1242
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2918
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2919
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1243
2920
    # Linking always hardcodes the temporary library directory.
1244
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2921
    _LT_TAGVAR(hardcode_action, $1)=relink
1245
2922
  else
1246
2923
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1247
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2924
    _LT_TAGVAR(hardcode_action, $1)=immediate
1248
2925
  fi
1249
2926
else
1250
2927
  # We cannot hardcode anything, or else we can only hardcode existing
1251
2928
  # directories.
1252
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2929
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1253
2930
fi
1254
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2931
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1255
2932
 
1256
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2933
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2934
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1257
2935
  # Fast installation is not supported
1258
2936
  enable_fast_install=no
1259
2937
elif test "$shlibpath_overrides_runpath" = yes ||
1261
2939
  # Fast installation is not necessary
1262
2940
  enable_fast_install=needless
1263
2941
fi
1264
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1265
 
 
1266
 
 
1267
 
# AC_LIBTOOL_SYS_LIB_STRIP
1268
 
# ------------------------
1269
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1270
 
[striplib=
 
2942
_LT_TAGDECL([], [hardcode_action], [0],
 
2943
    [How to hardcode a shared library path into an executable])
 
2944
])# _LT_LINKER_HARDCODE_LIBPATH
 
2945
 
 
2946
 
 
2947
# _LT_CMD_STRIPLIB
 
2948
# ----------------
 
2949
m4_defun([_LT_CMD_STRIPLIB],
 
2950
[m4_require([_LT_DECL_EGREP])
 
2951
striplib=
1271
2952
old_striplib=
1272
2953
AC_MSG_CHECKING([whether stripping libraries is possible])
1273
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2954
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1274
2955
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1275
2956
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1276
2957
  AC_MSG_RESULT([yes])
1277
2958
else
1278
2959
# FIXME - insert some real tests, host_os isn't really good enough
1279
2960
  case $host_os in
1280
 
   darwin*)
1281
 
       if test -n "$STRIP" ; then
1282
 
         striplib="$STRIP -x"
1283
 
         old_striplib="$STRIP -S"
1284
 
         AC_MSG_RESULT([yes])
1285
 
       else
1286
 
  AC_MSG_RESULT([no])
1287
 
fi
1288
 
       ;;
1289
 
   *)
1290
 
  AC_MSG_RESULT([no])
 
2961
  darwin*)
 
2962
    if test -n "$STRIP" ; then
 
2963
      striplib="$STRIP -x"
 
2964
      old_striplib="$STRIP -S"
 
2965
      AC_MSG_RESULT([yes])
 
2966
    else
 
2967
      AC_MSG_RESULT([no])
 
2968
    fi
 
2969
    ;;
 
2970
  *)
 
2971
    AC_MSG_RESULT([no])
1291
2972
    ;;
1292
2973
  esac
1293
2974
fi
1294
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1295
 
 
1296
 
 
1297
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2975
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2976
_LT_DECL([], [striplib], [1])
 
2977
])# _LT_CMD_STRIPLIB
 
2978
 
 
2979
 
 
2980
# _LT_SYS_DYNAMIC_LINKER([TAG])
1298
2981
# -----------------------------
1299
2982
# PORTME Fill in your ld.so characteristics
1300
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1301
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2983
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2984
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2985
m4_require([_LT_DECL_EGREP])dnl
 
2986
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2987
m4_require([_LT_DECL_SED])dnl
1302
2988
AC_MSG_CHECKING([dynamic linker characteristics])
1303
 
library_names_spec=
1304
 
libname_spec='lib$name'
1305
 
soname_spec=
1306
 
shrext_cmds=".so"
1307
 
postinstall_cmds=
1308
 
postuninstall_cmds=
1309
 
finish_cmds=
1310
 
finish_eval=
1311
 
shlibpath_var=
1312
 
shlibpath_overrides_runpath=unknown
1313
 
version_type=none
1314
 
dynamic_linker="$host_os ld.so"
1315
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1316
 
m4_if($1,[],[
 
2989
m4_if([$1],
 
2990
        [], [
1317
2991
if test "$GCC" = yes; then
1318
2992
  case $host_os in
1319
2993
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
2994
    *) lt_awk_arg="/^libraries:/" ;;
1321
2995
  esac
1322
2996
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2997
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1324
2998
    # if the path contains ";" then we assume it to be the separator
1325
2999
    # otherwise default to the standard path separator (i.e. ":") - it is
1326
3000
    # assumed that no part of a normal pathname contains ";" but that should
1327
3001
    # okay in the real world where ";" in dirpaths is itself problematic.
1328
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3002
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1329
3003
  else
1330
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3004
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1331
3005
  fi
1332
3006
  # Ok, now we have the path, separated by spaces, we can step through it
1333
3007
  # and add multilib dir if necessary.
1341
3015
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1342
3016
    fi
1343
3017
  done
1344
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
3018
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1345
3019
BEGIN {RS=" "; FS="/|\n";} {
1346
3020
  lt_foo="";
1347
3021
  lt_count=0;
1361
3035
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
3036
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1363
3037
}'`
1364
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
3038
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1365
3039
else
1366
3040
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1367
3041
fi])
 
3042
library_names_spec=
 
3043
libname_spec='lib$name'
 
3044
soname_spec=
 
3045
shrext_cmds=".so"
 
3046
postinstall_cmds=
 
3047
postuninstall_cmds=
 
3048
finish_cmds=
 
3049
finish_eval=
 
3050
shlibpath_var=
 
3051
shlibpath_overrides_runpath=unknown
 
3052
version_type=none
 
3053
dynamic_linker="$host_os ld.so"
 
3054
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1368
3055
need_lib_prefix=unknown
1369
3056
hardcode_into_libs=no
1370
3057
 
1401
3088
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1402
3089
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1403
3090
           echo ' yes '
1404
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3091
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1405
3092
        :
1406
3093
      else
1407
3094
        can_build_shared=no
1427
3114
  ;;
1428
3115
 
1429
3116
amigaos*)
1430
 
  library_names_spec='$libname.ixlibrary $libname.a'
1431
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1432
 
  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'
 
3117
  case $host_cpu in
 
3118
  powerpc)
 
3119
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3120
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3121
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3122
    ;;
 
3123
  m68k)
 
3124
    library_names_spec='$libname.ixlibrary $libname.a'
 
3125
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3126
    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'
 
3127
    ;;
 
3128
  esac
1433
3129
  ;;
1434
3130
 
1435
3131
beos*)
1463
3159
    library_names_spec='$libname.dll.a'
1464
3160
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1465
3161
    postinstall_cmds='base_file=`basename \${file}`~
1466
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3162
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1467
3163
      dldir=$destdir/`dirname \$dlpath`~
1468
3164
      test -d \$dldir || mkdir -p \$dldir~
1469
3165
      $install_prog $dir/$dlname \$dldir/$dlname~
1470
 
      chmod a+x \$dldir/$dlname'
 
3166
      chmod a+x \$dldir/$dlname~
 
3167
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3168
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3169
      fi'
1471
3170
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1472
3171
      dlpath=$dir/\$dldll~
1473
 
       $rm \$dlpath'
 
3172
       $RM \$dlpath'
1474
3173
    shlibpath_overrides_runpath=yes
1475
3174
 
1476
3175
    case $host_os in
1482
3181
    mingw*)
1483
3182
      # MinGW DLLs use traditional 'lib' prefix
1484
3183
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1485
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1486
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3184
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3185
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1487
3186
        # It is most probably a Windows format PATH printed by
1488
3187
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1489
3188
        # path with ; separators, and with drive letters. We can handle the
1490
3189
        # drive letters (cygwin fileutils understands them), so leave them,
1491
3190
        # especially as we might pass files found there to a mingw objdump,
1492
3191
        # which wouldn't understand a cygwinified path. Ahh.
1493
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3192
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1494
3193
      else
1495
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3194
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1496
3195
      fi
1497
3196
      ;;
1498
3197
    pw32*)
1516
3215
  version_type=darwin
1517
3216
  need_lib_prefix=no
1518
3217
  need_version=no
1519
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3218
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1520
3219
  soname_spec='${libname}${release}${major}$shared_ext'
1521
3220
  shlibpath_overrides_runpath=yes
1522
3221
  shlibpath_var=DYLD_LIBRARY_PATH
1523
3222
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1524
 
  m4_if([$1], [],[
1525
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3223
m4_if([$1], [],[
 
3224
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1526
3225
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1527
3226
  ;;
1528
3227
 
1550
3249
    *) objformat=elf ;;
1551
3250
    esac
1552
3251
  fi
1553
 
  version_type=freebsd-$objformat
 
3252
  # Handle Gentoo/FreeBSD as it was Linux
 
3253
  case $host_vendor in
 
3254
    gentoo)
 
3255
      version_type=linux ;;
 
3256
    *)
 
3257
      version_type=freebsd-$objformat ;;
 
3258
  esac
 
3259
 
1554
3260
  case $version_type in
1555
3261
    freebsd-elf*)
1556
3262
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1561
3267
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1562
3268
      need_version=yes
1563
3269
      ;;
 
3270
    linux)
 
3271
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3272
      soname_spec='${libname}${release}${shared_ext}$major'
 
3273
      need_lib_prefix=no
 
3274
      need_version=no
 
3275
      ;;
1564
3276
  esac
1565
3277
  shlibpath_var=LD_LIBRARY_PATH
1566
3278
  case $host_os in
1615
3327
    fi
1616
3328
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1617
3329
    ;;
1618
 
   hppa*64*)
1619
 
     shrext_cmds='.sl'
1620
 
     hardcode_into_libs=yes
1621
 
     dynamic_linker="$host_os dld.sl"
1622
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1623
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1624
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1625
 
     soname_spec='${libname}${release}${shared_ext}$major'
1626
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1627
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1628
 
     ;;
1629
 
   *)
 
3330
  hppa*64*)
 
3331
    shrext_cmds='.sl'
 
3332
    hardcode_into_libs=yes
 
3333
    dynamic_linker="$host_os dld.sl"
 
3334
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3335
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3336
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3337
    soname_spec='${libname}${release}${shared_ext}$major'
 
3338
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3339
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3340
    ;;
 
3341
  *)
1630
3342
    shrext_cmds='.sl'
1631
3343
    dynamic_linker="$host_os dld.sl"
1632
3344
    shlibpath_var=SHLIB_PATH
1703
3415
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1704
3416
  shlibpath_var=LD_LIBRARY_PATH
1705
3417
  shlibpath_overrides_runpath=no
 
3418
  # Some binutils ld are patched to set DT_RUNPATH
 
3419
  save_LDFLAGS=$LDFLAGS
 
3420
  save_libdir=$libdir
 
3421
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3422
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3423
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3424
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3425
       [shlibpath_overrides_runpath=yes])])
 
3426
  LDFLAGS=$save_LDFLAGS
 
3427
  libdir=$save_libdir
 
3428
 
1706
3429
  # This implies no fast_install, which is unacceptable.
1707
3430
  # Some rework will be needed to allow for fast_install
1708
3431
  # before this can be enabled.
1710
3433
 
1711
3434
  # Append ld.so.conf contents to the search path
1712
3435
  if test -f /etc/ld.so.conf; then
1713
 
    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' ' '`
 
3436
    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' ' '`
1714
3437
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1715
3438
  fi
1716
3439
 
1723
3446
  dynamic_linker='GNU/Linux ld.so'
1724
3447
  ;;
1725
3448
 
1726
 
netbsdelf*-gnu)
1727
 
  version_type=linux
1728
 
  need_lib_prefix=no
1729
 
  need_version=no
1730
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1731
 
  soname_spec='${libname}${release}${shared_ext}$major'
1732
 
  shlibpath_var=LD_LIBRARY_PATH
1733
 
  shlibpath_overrides_runpath=no
1734
 
  hardcode_into_libs=yes
1735
 
  dynamic_linker='NetBSD ld.elf_so'
1736
 
  ;;
1737
 
 
1738
3449
netbsd*)
1739
3450
  version_type=sunos
1740
3451
  need_lib_prefix=no
1741
3452
  need_version=no
1742
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3453
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1743
3454
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1744
3455
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1745
3456
    dynamic_linker='NetBSD (a.out) ld.so'
1760
3471
  shlibpath_overrides_runpath=yes
1761
3472
  ;;
1762
3473
 
1763
 
nto-qnx*)
1764
 
  version_type=linux
 
3474
*nto* | *qnx*)
 
3475
  version_type=qnx
1765
3476
  need_lib_prefix=no
1766
3477
  need_version=no
1767
3478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1768
3479
  soname_spec='${libname}${release}${shared_ext}$major'
1769
3480
  shlibpath_var=LD_LIBRARY_PATH
1770
 
  shlibpath_overrides_runpath=yes
 
3481
  shlibpath_overrides_runpath=no
 
3482
  hardcode_into_libs=yes
 
3483
  dynamic_linker='ldqnx.so'
1771
3484
  ;;
1772
3485
 
1773
3486
openbsd*)
1776
3489
  need_lib_prefix=no
1777
3490
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1778
3491
  case $host_os in
1779
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1780
 
    *)                         need_version=no  ;;
 
3492
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3493
    *)                          need_version=no  ;;
1781
3494
  esac
1782
3495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1783
3496
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1784
3497
  shlibpath_var=LD_LIBRARY_PATH
1785
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3498
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1786
3499
    case $host_os in
1787
3500
      openbsd2.[[89]] | openbsd2.[[89]].*)
1788
3501
        shlibpath_overrides_runpath=no
1854
3567
    sni)
1855
3568
      shlibpath_overrides_runpath=no
1856
3569
      need_lib_prefix=no
1857
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
1858
3570
      runpath_var=LD_RUN_PATH
1859
3571
      ;;
1860
3572
    siemens)
1885
3597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1886
3598
  soname_spec='${libname}${release}${shared_ext}$major'
1887
3599
  shlibpath_var=LD_LIBRARY_PATH
 
3600
  shlibpath_overrides_runpath=yes
1888
3601
  hardcode_into_libs=yes
1889
3602
  if test "$with_gnu_ld" = yes; then
1890
3603
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1891
 
    shlibpath_overrides_runpath=no
1892
3604
  else
1893
3605
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1894
 
    shlibpath_overrides_runpath=yes
1895
3606
    case $host_os in
1896
3607
      sco3.2v5*)
1897
3608
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1901
3612
  sys_lib_dlsearch_path_spec='/usr/lib'
1902
3613
  ;;
1903
3614
 
 
3615
tpf*)
 
3616
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3617
  version_type=linux
 
3618
  need_lib_prefix=no
 
3619
  need_version=no
 
3620
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3621
  shlibpath_var=LD_LIBRARY_PATH
 
3622
  shlibpath_overrides_runpath=no
 
3623
  hardcode_into_libs=yes
 
3624
  ;;
 
3625
 
1904
3626
uts4*)
1905
3627
  version_type=linux
1906
3628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1915
3637
AC_MSG_RESULT([$dynamic_linker])
1916
3638
test "$dynamic_linker" = no && can_build_shared=no
1917
3639
 
1918
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1919
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1920
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1921
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1922
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1923
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1924
 
 
1925
3640
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1926
3641
if test "$GCC" = yes; then
1927
3642
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1928
3643
fi
1929
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1930
 
 
1931
 
 
1932
 
# _LT_AC_TAGCONFIG
1933
 
# ----------------
1934
 
AC_DEFUN([_LT_AC_TAGCONFIG],
1935
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1936
 
AC_ARG_WITH([tags],
1937
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1938
 
        [include additional configurations @<:@automatic@:>@])],
1939
 
    [tagnames="$withval"])
1940
 
 
1941
 
if test -f "$ltmain" && test -n "$tagnames"; then
1942
 
  if test ! -f "${ofile}"; then
1943
 
    AC_MSG_WARN([output file `$ofile' does not exist])
1944
 
  fi
1945
 
 
1946
 
  if test -z "$LTCC"; then
1947
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1948
 
    if test -z "$LTCC"; then
1949
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1950
 
    else
1951
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1952
 
    fi
1953
 
  fi
1954
 
  if test -z "$LTCFLAGS"; then
1955
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1956
 
  fi
1957
 
 
1958
 
  # Extract list of available tagged configurations in $ofile.
1959
 
  # Note that this assumes the entire list is on one line.
1960
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1961
 
 
1962
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1963
 
  for tagname in $tagnames; do
1964
 
    IFS="$lt_save_ifs"
1965
 
    # Check whether tagname contains only valid characters
1966
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1967
 
    "") ;;
1968
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
1969
 
        ;;
1970
 
    esac
1971
 
 
1972
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1973
 
    then
1974
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
1975
 
    fi
1976
 
 
1977
 
    # Update the list of available tags.
1978
 
    if test -n "$tagname"; then
1979
 
      echo appending configuration tag \"$tagname\" to $ofile
1980
 
 
1981
 
      case $tagname in
1982
 
      CXX)
1983
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1984
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1985
 
            (test "X$CXX" != "Xg++"))) ; then
1986
 
          AC_LIBTOOL_LANG_CXX_CONFIG
1987
 
        else
1988
 
          tagname=""
1989
 
        fi
1990
 
        ;;
1991
 
 
1992
 
      F77)
1993
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
1994
 
          AC_LIBTOOL_LANG_F77_CONFIG
1995
 
        else
1996
 
          tagname=""
1997
 
        fi
1998
 
        ;;
1999
 
 
2000
 
      GCJ)
2001
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2002
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2003
 
        else
2004
 
          tagname=""
2005
 
        fi
2006
 
        ;;
2007
 
 
2008
 
      RC)
2009
 
        AC_LIBTOOL_LANG_RC_CONFIG
2010
 
        ;;
2011
 
 
2012
 
      *)
2013
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2014
 
        ;;
2015
 
      esac
2016
 
 
2017
 
      # Append the new tag name to the list of available tags.
2018
 
      if test -n "$tagname" ; then
2019
 
      available_tags="$available_tags $tagname"
2020
 
    fi
2021
 
    fi
2022
 
  done
2023
 
  IFS="$lt_save_ifs"
2024
 
 
2025
 
  # Now substitute the updated list of available tags.
2026
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2027
 
    mv "${ofile}T" "$ofile"
2028
 
    chmod +x "$ofile"
2029
 
  else
2030
 
    rm -f "${ofile}T"
2031
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2032
 
  fi
2033
 
fi
2034
 
])# _LT_AC_TAGCONFIG
2035
 
 
2036
 
 
2037
 
# AC_LIBTOOL_DLOPEN
2038
 
# -----------------
2039
 
# enable checks for dlopen support
2040
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2041
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2042
 
])# AC_LIBTOOL_DLOPEN
2043
 
 
2044
 
 
2045
 
# AC_LIBTOOL_WIN32_DLL
2046
 
# --------------------
2047
 
# declare package support for building win32 DLLs
2048
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2049
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2050
 
])# AC_LIBTOOL_WIN32_DLL
2051
 
 
2052
 
 
2053
 
# AC_ENABLE_SHARED([DEFAULT])
2054
 
# ---------------------------
2055
 
# implement the --enable-shared flag
2056
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2057
 
AC_DEFUN([AC_ENABLE_SHARED],
2058
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2059
 
AC_ARG_ENABLE([shared],
2060
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2061
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2062
 
    [p=${PACKAGE-default}
2063
 
    case $enableval in
2064
 
    yes) enable_shared=yes ;;
2065
 
    no) enable_shared=no ;;
2066
 
    *)
2067
 
      enable_shared=no
2068
 
      # Look at the argument we got.  We use all the common list separators.
2069
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2070
 
      for pkg in $enableval; do
2071
 
        IFS="$lt_save_ifs"
2072
 
        if test "X$pkg" = "X$p"; then
2073
 
          enable_shared=yes
2074
 
        fi
2075
 
      done
2076
 
      IFS="$lt_save_ifs"
2077
 
      ;;
2078
 
    esac],
2079
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2080
 
])# AC_ENABLE_SHARED
2081
 
 
2082
 
 
2083
 
# AC_DISABLE_SHARED
2084
 
# -----------------
2085
 
# set the default shared flag to --disable-shared
2086
 
AC_DEFUN([AC_DISABLE_SHARED],
2087
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2088
 
AC_ENABLE_SHARED(no)
2089
 
])# AC_DISABLE_SHARED
2090
 
 
2091
 
 
2092
 
# AC_ENABLE_STATIC([DEFAULT])
2093
 
# ---------------------------
2094
 
# implement the --enable-static flag
2095
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2096
 
AC_DEFUN([AC_ENABLE_STATIC],
2097
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2098
 
AC_ARG_ENABLE([static],
2099
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2100
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2101
 
    [p=${PACKAGE-default}
2102
 
    case $enableval in
2103
 
    yes) enable_static=yes ;;
2104
 
    no) enable_static=no ;;
2105
 
    *)
2106
 
     enable_static=no
2107
 
      # Look at the argument we got.  We use all the common list separators.
2108
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2109
 
      for pkg in $enableval; do
2110
 
        IFS="$lt_save_ifs"
2111
 
        if test "X$pkg" = "X$p"; then
2112
 
          enable_static=yes
2113
 
        fi
2114
 
      done
2115
 
      IFS="$lt_save_ifs"
2116
 
      ;;
2117
 
    esac],
2118
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2119
 
])# AC_ENABLE_STATIC
2120
 
 
2121
 
 
2122
 
# AC_DISABLE_STATIC
2123
 
# -----------------
2124
 
# set the default static flag to --disable-static
2125
 
AC_DEFUN([AC_DISABLE_STATIC],
2126
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2127
 
AC_ENABLE_STATIC(no)
2128
 
])# AC_DISABLE_STATIC
2129
 
 
2130
 
 
2131
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2132
 
# ---------------------------------
2133
 
# implement the --enable-fast-install flag
2134
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2135
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2136
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2137
 
AC_ARG_ENABLE([fast-install],
2138
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2139
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2140
 
    [p=${PACKAGE-default}
2141
 
    case $enableval in
2142
 
    yes) enable_fast_install=yes ;;
2143
 
    no) enable_fast_install=no ;;
2144
 
    *)
2145
 
      enable_fast_install=no
2146
 
      # Look at the argument we got.  We use all the common list separators.
2147
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2148
 
      for pkg in $enableval; do
2149
 
        IFS="$lt_save_ifs"
2150
 
        if test "X$pkg" = "X$p"; then
2151
 
          enable_fast_install=yes
2152
 
        fi
2153
 
      done
2154
 
      IFS="$lt_save_ifs"
2155
 
      ;;
2156
 
    esac],
2157
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2158
 
])# AC_ENABLE_FAST_INSTALL
2159
 
 
2160
 
 
2161
 
# AC_DISABLE_FAST_INSTALL
2162
 
# -----------------------
2163
 
# set the default to --disable-fast-install
2164
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2165
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2166
 
AC_ENABLE_FAST_INSTALL(no)
2167
 
])# AC_DISABLE_FAST_INSTALL
2168
 
 
2169
 
 
2170
 
# AC_LIBTOOL_PICMODE([MODE])
 
3644
 
 
3645
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3646
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3647
fi
 
3648
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3649
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3650
fi
 
3651
 
 
3652
_LT_DECL([], [variables_saved_for_relink], [1],
 
3653
    [Variables whose values should be saved in libtool wrapper scripts and
 
3654
    restored at link time])
 
3655
_LT_DECL([], [need_lib_prefix], [0],
 
3656
    [Do we need the "lib" prefix for modules?])
 
3657
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3658
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3659
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3660
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3661
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3662
    [Is shlibpath searched before the hard-coded library search path?])
 
3663
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3664
_LT_DECL([], [library_names_spec], [1],
 
3665
    [[List of archive names.  First name is the real one, the rest are links.
 
3666
    The last name is the one that the linker finds with -lNAME]])
 
3667
_LT_DECL([], [soname_spec], [1],
 
3668
    [[The coded name of the library, if different from the real name]])
 
3669
_LT_DECL([], [postinstall_cmds], [2],
 
3670
    [Command to use after installation of a shared archive])
 
3671
_LT_DECL([], [postuninstall_cmds], [2],
 
3672
    [Command to use after uninstallation of a shared archive])
 
3673
_LT_DECL([], [finish_cmds], [2],
 
3674
    [Commands used to finish a libtool library installation in a directory])
 
3675
_LT_DECL([], [finish_eval], [1],
 
3676
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3677
    not shown]])
 
3678
_LT_DECL([], [hardcode_into_libs], [0],
 
3679
    [Whether we should hardcode library paths into libraries])
 
3680
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3681
    [Compile-time system search path for libraries])
 
3682
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3683
    [Run-time system search path for libraries])
 
3684
])# _LT_SYS_DYNAMIC_LINKER
 
3685
 
 
3686
 
 
3687
# _LT_PATH_TOOL_PREFIX(TOOL)
2171
3688
# --------------------------
2172
 
# implement the --with-pic flag
2173
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2174
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2175
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2176
 
pic_mode=ifelse($#,1,$1,default)
2177
 
])# AC_LIBTOOL_PICMODE
2178
 
 
2179
 
 
2180
 
# AC_PROG_EGREP
2181
 
# -------------
2182
 
# This is predefined starting with Autoconf 2.54, so this conditional
2183
 
# definition can be removed once we require Autoconf 2.54 or later.
2184
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2185
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2186
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2187
 
    then ac_cv_prog_egrep='grep -E'
2188
 
    else ac_cv_prog_egrep='egrep'
2189
 
    fi])
2190
 
 EGREP=$ac_cv_prog_egrep
2191
 
 AC_SUBST([EGREP])
2192
 
])])
2193
 
 
2194
 
 
2195
 
# AC_PATH_TOOL_PREFIX
2196
 
# -------------------
2197
3689
# find a file program which can recognize shared library
2198
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2199
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3690
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3691
[m4_require([_LT_DECL_EGREP])dnl
2200
3692
AC_MSG_CHECKING([for $1])
2201
3693
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2202
3694
[case $MAGIC_CMD in
2209
3701
dnl $ac_dummy forces splitting on constant user-supplied paths.
2210
3702
dnl POSIX.2 word splitting is done only on the output of word expansions,
2211
3703
dnl not every word.  This closes a longstanding sh security hole.
2212
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3704
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2213
3705
  for ac_dir in $ac_dummy; do
2214
3706
    IFS="$lt_save_ifs"
2215
3707
    test -z "$ac_dir" && ac_dir=.
2224
3716
            $EGREP "$file_magic_regex" > /dev/null; then
2225
3717
            :
2226
3718
          else
2227
 
            cat <<EOF 1>&2
 
3719
            cat <<_LT_EOF 1>&2
2228
3720
 
2229
3721
*** Warning: the command libtool uses to detect shared libraries,
2230
3722
*** $file_magic_cmd, produces output that libtool cannot recognize.
2235
3727
*** may want to report the problem to your system manager and/or to
2236
3728
*** bug-libtool@gnu.org
2237
3729
 
2238
 
EOF
 
3730
_LT_EOF
2239
3731
          fi ;;
2240
3732
        esac
2241
3733
      fi
2252
3744
else
2253
3745
  AC_MSG_RESULT(no)
2254
3746
fi
2255
 
])# AC_PATH_TOOL_PREFIX
2256
 
 
2257
 
 
2258
 
# AC_PATH_MAGIC
2259
 
# -------------
 
3747
_LT_DECL([], [MAGIC_CMD], [0],
 
3748
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3749
])# _LT_PATH_TOOL_PREFIX
 
3750
 
 
3751
# Old name:
 
3752
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3753
dnl aclocal-1.4 backwards compatibility:
 
3754
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3755
 
 
3756
 
 
3757
# _LT_PATH_MAGIC
 
3758
# --------------
2260
3759
# find a file program which can recognize a shared library
2261
 
AC_DEFUN([AC_PATH_MAGIC],
2262
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3760
m4_defun([_LT_PATH_MAGIC],
 
3761
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2263
3762
if test -z "$lt_cv_path_MAGIC_CMD"; then
2264
3763
  if test -n "$ac_tool_prefix"; then
2265
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3764
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2266
3765
  else
2267
3766
    MAGIC_CMD=:
2268
3767
  fi
2269
3768
fi
2270
 
])# AC_PATH_MAGIC
2271
 
 
2272
 
 
2273
 
# AC_PROG_LD
 
3769
])# _LT_PATH_MAGIC
 
3770
 
 
3771
 
 
3772
# LT_PATH_LD
2274
3773
# ----------
2275
3774
# find the pathname to the GNU or non-GNU linker
2276
 
AC_DEFUN([AC_PROG_LD],
2277
 
[AC_ARG_WITH([gnu-ld],
2278
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3775
AC_DEFUN([LT_PATH_LD],
 
3776
[AC_REQUIRE([AC_PROG_CC])dnl
 
3777
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3778
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3779
m4_require([_LT_DECL_SED])dnl
 
3780
m4_require([_LT_DECL_EGREP])dnl
 
3781
 
 
3782
AC_ARG_WITH([gnu-ld],
 
3783
    [AS_HELP_STRING([--with-gnu-ld],
2279
3784
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2280
3785
    [test "$withval" = no || with_gnu_ld=yes],
2281
 
    [with_gnu_ld=no])
2282
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2283
 
AC_REQUIRE([AC_PROG_CC])dnl
2284
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2285
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3786
    [with_gnu_ld=no])dnl
 
3787
 
2286
3788
ac_prog=ld
2287
3789
if test "$GCC" = yes; then
2288
3790
  # Check if gcc -print-prog-name=ld gives a path.
2299
3801
    [[\\/]]* | ?:[[\\/]]*)
2300
3802
      re_direlt='/[[^/]][[^/]]*/\.\./'
2301
3803
      # Canonicalize the pathname of ld
2302
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2303
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2304
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3804
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3805
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3806
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2305
3807
      done
2306
3808
      test -z "$LD" && LD="$ac_prog"
2307
3809
      ;;
2351
3853
  AC_MSG_RESULT(no)
2352
3854
fi
2353
3855
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2354
 
AC_PROG_LD_GNU
2355
 
])# AC_PROG_LD
2356
 
 
2357
 
 
2358
 
# AC_PROG_LD_GNU
2359
 
# --------------
2360
 
AC_DEFUN([AC_PROG_LD_GNU],
2361
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2362
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3856
_LT_PATH_LD_GNU
 
3857
AC_SUBST([LD])
 
3858
 
 
3859
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3860
])# LT_PATH_LD
 
3861
 
 
3862
# Old names:
 
3863
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3864
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3865
dnl aclocal-1.4 backwards compatibility:
 
3866
dnl AC_DEFUN([AM_PROG_LD], [])
 
3867
dnl AC_DEFUN([AC_PROG_LD], [])
 
3868
 
 
3869
 
 
3870
# _LT_PATH_LD_GNU
 
3871
#- --------------
 
3872
m4_defun([_LT_PATH_LD_GNU],
 
3873
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2363
3874
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2364
3875
case `$LD -v 2>&1 </dev/null` in
2365
3876
*GNU* | *'with BFD'*)
2370
3881
  ;;
2371
3882
esac])
2372
3883
with_gnu_ld=$lt_cv_prog_gnu_ld
2373
 
])# AC_PROG_LD_GNU
2374
 
 
2375
 
 
2376
 
# AC_PROG_LD_RELOAD_FLAG
2377
 
# ----------------------
 
3884
])# _LT_PATH_LD_GNU
 
3885
 
 
3886
 
 
3887
# _LT_CMD_RELOAD
 
3888
# --------------
2378
3889
# find reload flag for linker
2379
3890
#   -- PORTME Some linkers may need a different reload flag.
2380
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3891
m4_defun([_LT_CMD_RELOAD],
2381
3892
[AC_CACHE_CHECK([for $LD option to reload object files],
2382
3893
  lt_cv_ld_reload_flag,
2383
3894
  [lt_cv_ld_reload_flag='-r'])
2396
3907
    fi
2397
3908
    ;;
2398
3909
esac
2399
 
])# AC_PROG_LD_RELOAD_FLAG
2400
 
 
2401
 
 
2402
 
# AC_DEPLIBS_CHECK_METHOD
2403
 
# -----------------------
 
3910
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3911
_LT_DECL([], [reload_cmds], [2])dnl
 
3912
])# _LT_CMD_RELOAD
 
3913
 
 
3914
 
 
3915
# _LT_CHECK_MAGIC_METHOD
 
3916
# ----------------------
2404
3917
# how to check for library dependencies
2405
3918
#  -- PORTME fill in with the dynamic library characteristics
2406
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2407
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3919
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3920
[m4_require([_LT_DECL_EGREP])
 
3921
AC_CACHE_CHECK([how to recognize dependent libraries],
2408
3922
lt_cv_deplibs_check_method,
2409
3923
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2410
3924
lt_cv_file_magic_test_file=
2459
3973
  ;;
2460
3974
 
2461
3975
freebsd* | dragonfly*)
2462
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3976
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2463
3977
    case $host_cpu in
2464
3978
    i*86 )
2465
3979
      # Not sure whether the presence of OpenBSD here was a mistake.
2516
4030
  lt_cv_deplibs_check_method=pass_all
2517
4031
  ;;
2518
4032
 
2519
 
netbsd* | netbsdelf*-gnu)
2520
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4033
netbsd*)
 
4034
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2521
4035
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2522
4036
  else
2523
4037
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2530
4044
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2531
4045
  ;;
2532
4046
 
2533
 
nto-qnx*)
2534
 
  lt_cv_deplibs_check_method=unknown
 
4047
*nto* | *qnx*)
 
4048
  lt_cv_deplibs_check_method=pass_all
2535
4049
  ;;
2536
4050
 
2537
4051
openbsd*)
2538
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4052
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2539
4053
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2540
4054
  else
2541
4055
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2554
4068
  lt_cv_deplibs_check_method=pass_all
2555
4069
  ;;
2556
4070
 
 
4071
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4072
  lt_cv_deplibs_check_method=pass_all
 
4073
  ;;
 
4074
 
2557
4075
sysv4 | sysv4.3*)
2558
4076
  case $host_vendor in
2559
4077
  motorola)
2581
4099
  esac
2582
4100
  ;;
2583
4101
 
2584
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4102
tpf*)
2585
4103
  lt_cv_deplibs_check_method=pass_all
2586
4104
  ;;
2587
4105
esac
2589
4107
file_magic_cmd=$lt_cv_file_magic_cmd
2590
4108
deplibs_check_method=$lt_cv_deplibs_check_method
2591
4109
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2592
 
])# AC_DEPLIBS_CHECK_METHOD
2593
 
 
2594
 
 
2595
 
# AC_PROG_NM
 
4110
 
 
4111
_LT_DECL([], [deplibs_check_method], [1],
 
4112
    [Method to check whether dependent libraries are shared objects])
 
4113
_LT_DECL([], [file_magic_cmd], [1],
 
4114
    [Command to use when deplibs_check_method == "file_magic"])
 
4115
])# _LT_CHECK_MAGIC_METHOD
 
4116
 
 
4117
 
 
4118
# LT_PATH_NM
2596
4119
# ----------
2597
 
# find the pathname to a BSD-compatible name lister
2598
 
AC_DEFUN([AC_PROG_NM],
2599
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4120
# find the pathname to a BSD- or MS-compatible name lister
 
4121
AC_DEFUN([LT_PATH_NM],
 
4122
[AC_REQUIRE([AC_PROG_CC])dnl
 
4123
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2600
4124
[if test -n "$NM"; then
2601
4125
  # Let the user override the test.
2602
4126
  lt_cv_path_NM="$NM"
2638
4162
    done
2639
4163
    IFS="$lt_save_ifs"
2640
4164
  done
2641
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4165
  : ${lt_cv_path_NM=no}
2642
4166
fi])
2643
 
NM="$lt_cv_path_NM"
2644
 
])# AC_PROG_NM
2645
 
 
2646
 
 
2647
 
# AC_CHECK_LIBM
2648
 
# -------------
 
4167
if test "$lt_cv_path_NM" != "no"; then
 
4168
  NM="$lt_cv_path_NM"
 
4169
else
 
4170
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4171
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4172
  AC_SUBST([DUMPBIN])
 
4173
  if test "$DUMPBIN" != ":"; then
 
4174
    NM="$DUMPBIN"
 
4175
  fi
 
4176
fi
 
4177
test -z "$NM" && NM=nm
 
4178
AC_SUBST([NM])
 
4179
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4180
 
 
4181
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4182
  [lt_cv_nm_interface="BSD nm"
 
4183
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4184
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4185
  (eval "$ac_compile" 2>conftest.err)
 
4186
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4187
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4188
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4189
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4190
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4191
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4192
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4193
    lt_cv_nm_interface="MS dumpbin"
 
4194
  fi
 
4195
  rm -f conftest*])
 
4196
])# LT_PATH_NM
 
4197
 
 
4198
# Old names:
 
4199
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4200
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4201
dnl aclocal-1.4 backwards compatibility:
 
4202
dnl AC_DEFUN([AM_PROG_NM], [])
 
4203
dnl AC_DEFUN([AC_PROG_NM], [])
 
4204
 
 
4205
 
 
4206
# LT_LIB_M
 
4207
# --------
2649
4208
# check for math library
2650
 
AC_DEFUN([AC_CHECK_LIBM],
 
4209
AC_DEFUN([LT_LIB_M],
2651
4210
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2652
4211
LIBM=
2653
4212
case $host in
2662
4221
  AC_CHECK_LIB(m, cos, LIBM="-lm")
2663
4222
  ;;
2664
4223
esac
2665
 
])# AC_CHECK_LIBM
2666
 
 
2667
 
 
2668
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2669
 
# -----------------------------------
2670
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
2671
 
# LTDLINCL to the include flags for the libltdl header and adds
2672
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2673
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2674
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2675
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2676
 
# (note the single quotes!).  If your package is not flat and you're not
2677
 
# using automake, define top_builddir and top_srcdir appropriately in
2678
 
# the Makefiles.
2679
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2680
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2681
 
  case $enable_ltdl_convenience in
2682
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2683
 
  "") enable_ltdl_convenience=yes
2684
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2685
 
  esac
2686
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2687
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2688
 
  # For backwards non-gettext consistent compatibility...
2689
 
  INCLTDL="$LTDLINCL"
2690
 
])# AC_LIBLTDL_CONVENIENCE
2691
 
 
2692
 
 
2693
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2694
 
# -----------------------------------
2695
 
# sets LIBLTDL to the link flags for the libltdl installable library and
2696
 
# LTDLINCL to the include flags for the libltdl header and adds
2697
 
# --enable-ltdl-install to the configure arguments.  Note that
2698
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2699
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2700
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2701
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2702
 
# flat and you're not using automake, define top_builddir and top_srcdir
2703
 
# appropriately in the Makefiles.
2704
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2705
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2706
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2707
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
2708
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2709
 
  [if test x"$enable_ltdl_install" = xno; then
2710
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
2711
 
   else
2712
 
     enable_ltdl_install=yes
2713
 
   fi
2714
 
  ])
2715
 
  if test x"$enable_ltdl_install" = x"yes"; then
2716
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2717
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2718
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2719
 
  else
2720
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2721
 
    LIBLTDL="-lltdl"
2722
 
    LTDLINCL=
2723
 
  fi
2724
 
  # For backwards non-gettext consistent compatibility...
2725
 
  INCLTDL="$LTDLINCL"
2726
 
])# AC_LIBLTDL_INSTALLABLE
2727
 
 
2728
 
 
2729
 
# AC_LIBTOOL_CXX
2730
 
# --------------
2731
 
# enable support for C++ libraries
2732
 
AC_DEFUN([AC_LIBTOOL_CXX],
2733
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
2734
 
])# AC_LIBTOOL_CXX
2735
 
 
2736
 
 
2737
 
# _LT_AC_LANG_CXX
2738
 
# ---------------
2739
 
AC_DEFUN([_LT_AC_LANG_CXX],
2740
 
[AC_REQUIRE([AC_PROG_CXX])
2741
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2742
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2743
 
])# _LT_AC_LANG_CXX
2744
 
 
2745
 
# _LT_AC_PROG_CXXCPP
2746
 
# ------------------
2747
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2748
 
[
2749
 
AC_REQUIRE([AC_PROG_CXX])
2750
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2751
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2752
 
    (test "X$CXX" != "Xg++"))) ; then
2753
 
  AC_PROG_CXXCPP
2754
 
fi
2755
 
])# _LT_AC_PROG_CXXCPP
2756
 
 
2757
 
# AC_LIBTOOL_F77
2758
 
# --------------
2759
 
# enable support for Fortran 77 libraries
2760
 
AC_DEFUN([AC_LIBTOOL_F77],
2761
 
[AC_REQUIRE([_LT_AC_LANG_F77])
2762
 
])# AC_LIBTOOL_F77
2763
 
 
2764
 
 
2765
 
# _LT_AC_LANG_F77
2766
 
# ---------------
2767
 
AC_DEFUN([_LT_AC_LANG_F77],
2768
 
[AC_REQUIRE([AC_PROG_F77])
2769
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2770
 
])# _LT_AC_LANG_F77
2771
 
 
2772
 
 
2773
 
# AC_LIBTOOL_GCJ
2774
 
# --------------
2775
 
# enable support for GCJ libraries
2776
 
AC_DEFUN([AC_LIBTOOL_GCJ],
2777
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2778
 
])# AC_LIBTOOL_GCJ
2779
 
 
2780
 
 
2781
 
# _LT_AC_LANG_GCJ
2782
 
# ---------------
2783
 
AC_DEFUN([_LT_AC_LANG_GCJ],
2784
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2785
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2786
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2787
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2788
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2789
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2790
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2791
 
])# _LT_AC_LANG_GCJ
2792
 
 
2793
 
 
2794
 
# AC_LIBTOOL_RC
2795
 
# -------------
2796
 
# enable support for Windows resource files
2797
 
AC_DEFUN([AC_LIBTOOL_RC],
2798
 
[AC_REQUIRE([LT_AC_PROG_RC])
2799
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2800
 
])# AC_LIBTOOL_RC
2801
 
 
2802
 
 
2803
 
# AC_LIBTOOL_LANG_C_CONFIG
2804
 
# ------------------------
2805
 
# Ensure that the configuration vars for the C compiler are
2806
 
# suitably defined.  Those variables are subsequently used by
2807
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2808
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2809
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2810
 
[lt_save_CC="$CC"
2811
 
AC_LANG_PUSH(C)
2812
 
 
2813
 
# Source file extension for C test sources.
2814
 
ac_ext=c
2815
 
 
2816
 
# Object file extension for compiled C test sources.
2817
 
objext=o
2818
 
_LT_AC_TAGVAR(objext, $1)=$objext
2819
 
 
2820
 
# Code to be used in simple compile tests
2821
 
lt_simple_compile_test_code="int some_variable = 0;"
2822
 
 
2823
 
# Code to be used in simple link tests
2824
 
lt_simple_link_test_code='int main(){return(0);}'
2825
 
 
2826
 
_LT_AC_SYS_COMPILER
2827
 
 
2828
 
# save warnings/boilerplate of simple test code
2829
 
_LT_COMPILER_BOILERPLATE
2830
 
_LT_LINKER_BOILERPLATE
2831
 
 
2832
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2833
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2834
 
AC_LIBTOOL_PROG_CC_C_O($1)
2835
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2836
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2837
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2838
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2839
 
AC_LIBTOOL_SYS_LIB_STRIP
2840
 
AC_LIBTOOL_DLOPEN_SELF
2841
 
 
2842
 
# Report which library types will actually be built
2843
 
AC_MSG_CHECKING([if libtool supports shared libraries])
2844
 
AC_MSG_RESULT([$can_build_shared])
2845
 
 
2846
 
AC_MSG_CHECKING([whether to build shared libraries])
2847
 
test "$can_build_shared" = "no" && enable_shared=no
2848
 
 
2849
 
# On AIX, shared libraries and static libraries use the same namespace, and
2850
 
# are all built from PIC.
2851
 
case $host_os in
2852
 
aix3*)
2853
 
  test "$enable_shared" = yes && enable_static=no
2854
 
  if test -n "$RANLIB"; then
2855
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
2856
 
    postinstall_cmds='$RANLIB $lib'
2857
 
  fi
2858
 
  ;;
2859
 
 
2860
 
aix[[4-9]]*)
2861
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2862
 
    test "$enable_shared" = yes && enable_static=no
2863
 
  fi
2864
 
    ;;
2865
 
esac
2866
 
AC_MSG_RESULT([$enable_shared])
2867
 
 
2868
 
AC_MSG_CHECKING([whether to build static libraries])
2869
 
# Make sure either enable_shared or enable_static is yes.
2870
 
test "$enable_shared" = yes || enable_static=yes
2871
 
AC_MSG_RESULT([$enable_static])
2872
 
 
2873
 
AC_LIBTOOL_CONFIG($1)
2874
 
 
2875
 
AC_LANG_POP
2876
 
CC="$lt_save_CC"
2877
 
])# AC_LIBTOOL_LANG_C_CONFIG
2878
 
 
2879
 
 
2880
 
# AC_LIBTOOL_LANG_CXX_CONFIG
2881
 
# --------------------------
2882
 
# Ensure that the configuration vars for the C compiler are
2883
 
# suitably defined.  Those variables are subsequently used by
2884
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2885
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2886
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2887
 
[AC_LANG_PUSH(C++)
2888
 
AC_REQUIRE([AC_PROG_CXX])
2889
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2890
 
 
2891
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2892
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2893
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2894
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2895
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2896
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2897
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2898
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2899
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2900
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2901
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2902
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2903
 
_LT_AC_TAGVAR(module_cmds, $1)=
2904
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2905
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2906
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2907
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2908
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2909
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2910
 
 
2911
 
# Dependencies to place before and after the object being linked:
2912
 
_LT_AC_TAGVAR(predep_objects, $1)=
2913
 
_LT_AC_TAGVAR(postdep_objects, $1)=
2914
 
_LT_AC_TAGVAR(predeps, $1)=
2915
 
_LT_AC_TAGVAR(postdeps, $1)=
2916
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2917
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2918
 
 
2919
 
# Source file extension for C++ test sources.
2920
 
ac_ext=cpp
2921
 
 
2922
 
# Object file extension for compiled C++ test sources.
2923
 
objext=o
2924
 
_LT_AC_TAGVAR(objext, $1)=$objext
2925
 
 
2926
 
# Code to be used in simple compile tests
2927
 
lt_simple_compile_test_code="int some_variable = 0;"
2928
 
 
2929
 
# Code to be used in simple link tests
2930
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2931
 
 
2932
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2933
 
_LT_AC_SYS_COMPILER
2934
 
 
2935
 
# save warnings/boilerplate of simple test code
2936
 
_LT_COMPILER_BOILERPLATE
2937
 
_LT_LINKER_BOILERPLATE
2938
 
 
2939
 
# Allow CC to be a program name with arguments.
2940
 
lt_save_CC=$CC
2941
 
lt_save_LD=$LD
2942
 
lt_save_GCC=$GCC
2943
 
GCC=$GXX
2944
 
lt_save_with_gnu_ld=$with_gnu_ld
2945
 
lt_save_path_LD=$lt_cv_path_LD
2946
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2947
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2948
 
else
2949
 
  $as_unset lt_cv_prog_gnu_ld
2950
 
fi
2951
 
if test -n "${lt_cv_path_LDCXX+set}"; then
2952
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
2953
 
else
2954
 
  $as_unset lt_cv_path_LD
2955
 
fi
2956
 
test -z "${LDCXX+set}" || LD=$LDCXX
2957
 
CC=${CXX-"c++"}
2958
 
compiler=$CC
2959
 
_LT_AC_TAGVAR(compiler, $1)=$CC
2960
 
_LT_CC_BASENAME([$compiler])
2961
 
 
2962
 
# We don't want -fno-exception wen compiling C++ code, so set the
2963
 
# no_builtin_flag separately
2964
 
if test "$GXX" = yes; then
2965
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2966
 
else
2967
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2968
 
fi
2969
 
 
2970
 
if test "$GXX" = yes; then
2971
 
  # Set up default GNU C++ configuration
2972
 
 
2973
 
  AC_PROG_LD
2974
 
 
2975
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
2976
 
  # archiving commands below assume that GNU ld is being used.
2977
 
  if test "$with_gnu_ld" = yes; then
2978
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2979
 
    _LT_AC_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'
2980
 
 
2981
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2982
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2983
 
 
2984
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
2985
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2986
 
    #     investigate it a little bit more. (MM)
2987
 
    wlarc='${wl}'
2988
 
 
2989
 
    # ancient GNU ld didn't support --whole-archive et. al.
2990
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2991
 
        grep 'no-whole-archive' > /dev/null; then
2992
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2993
 
    else
2994
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2995
 
    fi
2996
 
  else
2997
 
    with_gnu_ld=no
2998
 
    wlarc=
2999
 
 
3000
 
    # A generic and very simple default shared library creation
3001
 
    # command for GNU C++ for the case where it uses the native
3002
 
    # linker, instead of GNU ld.  If possible, this setting should
3003
 
    # overridden to take advantage of the native linker features on
3004
 
    # the platform it is being used on.
3005
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3006
 
  fi
3007
 
 
3008
 
  # Commands to make compiler produce verbose output that lists
3009
 
  # what "hidden" libraries, object files and flags are used when
3010
 
  # linking a shared library.
3011
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3012
 
 
3013
 
else
3014
 
  GXX=no
3015
 
  with_gnu_ld=no
3016
 
  wlarc=
3017
 
fi
3018
 
 
3019
 
# PORTME: fill in a description of your system's C++ link characteristics
3020
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3021
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3022
 
case $host_os in
3023
 
  aix3*)
3024
 
    # FIXME: insert proper C++ library support
3025
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3026
 
    ;;
3027
 
  aix[[4-9]]*)
3028
 
    if test "$host_cpu" = ia64; then
3029
 
      # On IA64, the linker does run time linking by default, so we don't
3030
 
      # have to do anything special.
3031
 
      aix_use_runtimelinking=no
3032
 
      exp_sym_flag='-Bexport'
3033
 
      no_entry_flag=""
3034
 
    else
3035
 
      aix_use_runtimelinking=no
3036
 
 
3037
 
      # Test if we are trying to use run time linking or normal
3038
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3039
 
      # need to do runtime linking.
3040
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3041
 
        for ld_flag in $LDFLAGS; do
3042
 
          case $ld_flag in
3043
 
          *-brtl*)
3044
 
            aix_use_runtimelinking=yes
3045
 
            break
3046
 
            ;;
3047
 
          esac
3048
 
        done
3049
 
        ;;
3050
 
      esac
3051
 
 
3052
 
      exp_sym_flag='-bexport'
3053
 
      no_entry_flag='-bnoentry'
3054
 
    fi
3055
 
 
3056
 
    # When large executables or shared objects are built, AIX ld can
3057
 
    # have problems creating the table of contents.  If linking a library
3058
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3059
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3060
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3061
 
 
3062
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3063
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3064
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3065
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3066
 
 
3067
 
    if test "$GXX" = yes; then
3068
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3069
 
      # We only want to do this on AIX 4.2 and lower, the check
3070
 
      # below for broken collect2 doesn't work under 4.3+
3071
 
        collect2name=`${CC} -print-prog-name=collect2`
3072
 
        if test -f "$collect2name" && \
3073
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3074
 
        then
3075
 
          # We have reworked collect2
3076
 
          :
3077
 
        else
3078
 
          # We have old collect2
3079
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3080
 
          # It fails to find uninstalled libraries when the uninstalled
3081
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3082
 
          # to unsupported forces relinking
3083
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3084
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3085
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3086
 
        fi
3087
 
        ;;
3088
 
      esac
3089
 
      shared_flag='-shared'
3090
 
      if test "$aix_use_runtimelinking" = yes; then
3091
 
        shared_flag="$shared_flag "'${wl}-G'
3092
 
      fi
3093
 
    else
3094
 
      # not using gcc
3095
 
      if test "$host_cpu" = ia64; then
3096
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3097
 
        # chokes on -Wl,-G. The following line is correct:
3098
 
        shared_flag='-G'
3099
 
      else
3100
 
        if test "$aix_use_runtimelinking" = yes; then
3101
 
          shared_flag='${wl}-G'
3102
 
        else
3103
 
          shared_flag='${wl}-bM:SRE'
3104
 
        fi
3105
 
      fi
3106
 
    fi
3107
 
 
3108
 
    # It seems that -bexpall does not export symbols beginning with
3109
 
    # underscore (_), so it is better to generate a list of symbols to export.
3110
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3111
 
    if test "$aix_use_runtimelinking" = yes; then
3112
 
      # Warning - without using the other runtime loading flags (-brtl),
3113
 
      # -berok will link without error, but may produce a broken library.
3114
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3115
 
      # Determine the default libpath from the value encoded in an empty executable.
3116
 
      _LT_AC_SYS_LIBPATH_AIX
3117
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3118
 
 
3119
 
      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3120
 
     else
3121
 
      if test "$host_cpu" = ia64; then
3122
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3123
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3124
 
        _LT_AC_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"
3125
 
      else
3126
 
        # Determine the default libpath from the value encoded in an empty executable.
3127
 
        _LT_AC_SYS_LIBPATH_AIX
3128
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3129
 
        # Warning - without using the other run time loading flags,
3130
 
        # -berok will link without error, but may produce a broken library.
3131
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3132
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3133
 
        # Exported symbols can be pulled into shared objects from archives
3134
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3135
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3136
 
        # This is similar to how AIX traditionally builds its shared libraries.
3137
 
        _LT_AC_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'
3138
 
      fi
3139
 
    fi
3140
 
    ;;
3141
 
 
3142
 
  beos*)
3143
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3144
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3145
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3146
 
      # support --undefined.  This deserves some investigation.  FIXME
3147
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148
 
    else
3149
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3150
 
    fi
3151
 
    ;;
3152
 
 
3153
 
  chorus*)
3154
 
    case $cc_basename in
3155
 
      *)
3156
 
        # FIXME: insert proper C++ library support
3157
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3158
 
        ;;
3159
 
    esac
3160
 
    ;;
3161
 
 
3162
 
  cygwin* | mingw* | pw32*)
3163
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3164
 
    # as there is no search path for DLLs.
3165
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3166
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3167
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3168
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3169
 
 
3170
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3171
 
      _LT_AC_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'
3172
 
      # If the export-symbols file already is a .def file (1st line
3173
 
      # is EXPORTS), use it as is; otherwise, prepend...
3174
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3175
 
        cp $export_symbols $output_objdir/$soname.def;
3176
 
      else
3177
 
        echo EXPORTS > $output_objdir/$soname.def;
3178
 
        cat $export_symbols >> $output_objdir/$soname.def;
3179
 
      fi~
3180
 
      $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'
3181
 
    else
3182
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3183
 
    fi
3184
 
  ;;
3185
 
      darwin* | rhapsody*)
3186
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3187
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3188
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3189
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3190
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3191
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3192
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
 
      if test "$GXX" = yes ; then
3194
 
      output_verbose_link_cmd='echo'
3195
 
      _LT_AC_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}"
3196
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
 
      _LT_AC_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}"
3198
 
      _LT_AC_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}"
3199
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
 
        _LT_AC_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}"
3201
 
        _LT_AC_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}"
3202
 
      fi
3203
 
      else
3204
 
      case $cc_basename in
3205
 
        xlc*)
3206
 
         output_verbose_link_cmd='echo'
3207
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3208
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3211
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3212
 
          ;;
3213
 
       *)
3214
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3215
 
          ;;
3216
 
      esac
3217
 
      fi
3218
 
        ;;
3219
 
 
3220
 
  dgux*)
3221
 
    case $cc_basename in
3222
 
      ec++*)
3223
 
        # FIXME: insert proper C++ library support
3224
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225
 
        ;;
3226
 
      ghcx*)
3227
 
        # Green Hills C++ Compiler
3228
 
        # FIXME: insert proper C++ library support
3229
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3230
 
        ;;
3231
 
      *)
3232
 
        # FIXME: insert proper C++ library support
3233
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3234
 
        ;;
3235
 
    esac
3236
 
    ;;
3237
 
  freebsd[[12]]*)
3238
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3239
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3240
 
    ;;
3241
 
  freebsd-elf*)
3242
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3243
 
    ;;
3244
 
  freebsd* | dragonfly*)
3245
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3246
 
    # conventions
3247
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3248
 
    ;;
3249
 
  gnu*)
3250
 
    ;;
3251
 
  hpux9*)
3252
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3253
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3254
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3255
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3256
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3257
 
                                # but as the default
3258
 
                                # location of the library.
3259
 
 
3260
 
    case $cc_basename in
3261
 
    CC*)
3262
 
      # FIXME: insert proper C++ library support
3263
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3264
 
      ;;
3265
 
    aCC*)
3266
 
      _LT_AC_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'
3267
 
      # Commands to make compiler produce verbose output that lists
3268
 
      # what "hidden" libraries, object files and flags are used when
3269
 
      # linking a shared library.
3270
 
      #
3271
 
      # There doesn't appear to be a way to prevent this compiler from
3272
 
      # explicitly linking system object files so we need to strip them
3273
 
      # from the output so that they don't get included in the library
3274
 
      # dependencies.
3275
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3276
 
      ;;
3277
 
    *)
3278
 
      if test "$GXX" = yes; then
3279
 
        _LT_AC_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'
3280
 
      else
3281
 
        # FIXME: insert proper C++ library support
3282
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3283
 
      fi
3284
 
      ;;
3285
 
    esac
3286
 
    ;;
3287
 
  hpux10*|hpux11*)
3288
 
    if test $with_gnu_ld = no; then
3289
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3290
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3291
 
 
3292
 
      case $host_cpu in
3293
 
      hppa*64*|ia64*) ;;
3294
 
      *)
3295
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3296
 
        ;;
3297
 
      esac
3298
 
    fi
3299
 
    case $host_cpu in
3300
 
    hppa*64*|ia64*)
3301
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3302
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3303
 
      ;;
3304
 
    *)
3305
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3306
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3307
 
                                              # but as the default
3308
 
                                              # location of the library.
3309
 
      ;;
3310
 
    esac
3311
 
 
3312
 
    case $cc_basename in
3313
 
      CC*)
3314
 
        # FIXME: insert proper C++ library support
3315
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3316
 
        ;;
3317
 
      aCC*)
3318
 
        case $host_cpu in
3319
 
        hppa*64*)
3320
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3321
 
          ;;
3322
 
        ia64*)
3323
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3324
 
          ;;
3325
 
        *)
3326
 
          _LT_AC_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'
3327
 
          ;;
3328
 
        esac
3329
 
        # Commands to make compiler produce verbose output that lists
3330
 
        # what "hidden" libraries, object files and flags are used when
3331
 
        # linking a shared library.
3332
 
        #
3333
 
        # There doesn't appear to be a way to prevent this compiler from
3334
 
        # explicitly linking system object files so we need to strip them
3335
 
        # from the output so that they don't get included in the library
3336
 
        # dependencies.
3337
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3338
 
        ;;
3339
 
      *)
3340
 
        if test "$GXX" = yes; then
3341
 
          if test $with_gnu_ld = no; then
3342
 
            case $host_cpu in
3343
 
            hppa*64*)
3344
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3345
 
              ;;
3346
 
            ia64*)
3347
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3348
 
              ;;
3349
 
            *)
3350
 
              _LT_AC_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'
3351
 
              ;;
3352
 
            esac
3353
 
          fi
3354
 
        else
3355
 
          # FIXME: insert proper C++ library support
3356
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3357
 
        fi
3358
 
        ;;
3359
 
    esac
3360
 
    ;;
3361
 
  interix[[3-9]]*)
3362
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3363
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3364
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3365
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3366
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3367
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3368
 
    # default) and relocated if they conflict, which is a slow very memory
3369
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3370
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3371
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3372
 
    _LT_AC_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'
3373
 
    _LT_AC_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'
3374
 
    ;;
3375
 
  irix5* | irix6*)
3376
 
    case $cc_basename in
3377
 
      CC*)
3378
 
        # SGI C++
3379
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3380
 
 
3381
 
        # Archives containing C++ object files must be created using
3382
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3383
 
        # necessary to make sure instantiated templates are included
3384
 
        # in the archive.
3385
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3386
 
        ;;
3387
 
      *)
3388
 
        if test "$GXX" = yes; then
3389
 
          if test "$with_gnu_ld" = no; then
3390
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3391
 
          else
3392
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3393
 
          fi
3394
 
        fi
3395
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3396
 
        ;;
3397
 
    esac
3398
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3399
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3400
 
    ;;
3401
 
  linux* | k*bsd*-gnu)
3402
 
    case $cc_basename in
3403
 
      KCC*)
3404
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3405
 
 
3406
 
        # KCC will only create a shared library if the output file
3407
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3408
 
        # to its proper name (with version) after linking.
3409
 
        _LT_AC_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'
3410
 
        _LT_AC_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'
3411
 
        # Commands to make compiler produce verbose output that lists
3412
 
        # what "hidden" libraries, object files and flags are used when
3413
 
        # linking a shared library.
3414
 
        #
3415
 
        # There doesn't appear to be a way to prevent this compiler from
3416
 
        # explicitly linking system object files so we need to strip them
3417
 
        # from the output so that they don't get included in the library
3418
 
        # dependencies.
3419
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3420
 
 
3421
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3422
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3423
 
 
3424
 
        # Archives containing C++ object files must be created using
3425
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3426
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3427
 
        ;;
3428
 
      icpc*)
3429
 
        # Intel C++
3430
 
        with_gnu_ld=yes
3431
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3432
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3433
 
        # earlier do not add the objects themselves.
3434
 
        case `$CC -V 2>&1` in
3435
 
        *"Version 7."*)
3436
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3437
 
          _LT_AC_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'
3438
 
          ;;
3439
 
        *)  # Version 8.0 or newer
3440
 
          tmp_idyn=
3441
 
          case $host_cpu in
3442
 
            ia64*) tmp_idyn=' -i_dynamic';;
3443
 
          esac
3444
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445
 
          _LT_AC_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'
3446
 
          ;;
3447
 
        esac
3448
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3449
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3452
 
        ;;
3453
 
      pgCC* | pgcpp*)
3454
 
        # Portland Group C++ compiler
3455
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3456
 
        _LT_AC_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'
3457
 
 
3458
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3459
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3460
 
        _LT_AC_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'
3461
 
        ;;
3462
 
      cxx*)
3463
 
        # Compaq C++
3464
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3465
 
        _LT_AC_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'
3466
 
 
3467
 
        runpath_var=LD_RUN_PATH
3468
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3469
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3470
 
 
3471
 
        # Commands to make compiler produce verbose output that lists
3472
 
        # what "hidden" libraries, object files and flags are used when
3473
 
        # linking a shared library.
3474
 
        #
3475
 
        # There doesn't appear to be a way to prevent this compiler from
3476
 
        # explicitly linking system object files so we need to strip them
3477
 
        # from the output so that they don't get included in the library
3478
 
        # dependencies.
3479
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3480
 
        ;;
3481
 
      *)
3482
 
        case `$CC -V 2>&1 | sed 5q` in
3483
 
        *Sun\ C*)
3484
 
          # Sun C++ 5.9
3485
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
 
          _LT_AC_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'
3488
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
 
          _LT_AC_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'
3490
 
 
3491
 
          # Not sure whether something based on
3492
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3493
 
          # would be better.
3494
 
          output_verbose_link_cmd='echo'
3495
 
 
3496
 
          # Archives containing C++ object files must be created using
3497
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3498
 
          # necessary to make sure instantiated templates are included
3499
 
          # in the archive.
3500
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3501
 
          ;;
3502
 
        esac
3503
 
        ;;
3504
 
    esac
3505
 
    ;;
3506
 
  lynxos*)
3507
 
    # FIXME: insert proper C++ library support
3508
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3509
 
    ;;
3510
 
  m88k*)
3511
 
    # FIXME: insert proper C++ library support
3512
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3513
 
    ;;
3514
 
  mvs*)
3515
 
    case $cc_basename in
3516
 
      cxx*)
3517
 
        # FIXME: insert proper C++ library support
3518
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3519
 
        ;;
3520
 
      *)
3521
 
        # FIXME: insert proper C++ library support
3522
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3523
 
        ;;
3524
 
    esac
3525
 
    ;;
3526
 
  netbsd* | netbsdelf*-gnu)
3527
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3528
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3529
 
      wlarc=
3530
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3531
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3532
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533
 
    fi
3534
 
    # Workaround some broken pre-1.5 toolchains
3535
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3536
 
    ;;
3537
 
  openbsd2*)
3538
 
    # C++ shared libraries are fairly broken
3539
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3540
 
    ;;
3541
 
  openbsd*)
3542
 
    if test -f /usr/libexec/ld.so; then
3543
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
 
        _LT_AC_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'
3549
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3551
 
      fi
3552
 
      output_verbose_link_cmd='echo'
3553
 
    else
3554
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3555
 
    fi
3556
 
    ;;
3557
 
  osf3*)
3558
 
    case $cc_basename in
3559
 
      KCC*)
3560
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3561
 
 
3562
 
        # KCC will only create a shared library if the output file
3563
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3564
 
        # to its proper name (with version) after linking.
3565
 
        _LT_AC_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'
3566
 
 
3567
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3568
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3569
 
 
3570
 
        # Archives containing C++ object files must be created using
3571
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3572
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3573
 
 
3574
 
        ;;
3575
 
      RCC*)
3576
 
        # Rational C++ 2.4.1
3577
 
        # FIXME: insert proper C++ library support
3578
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3579
 
        ;;
3580
 
      cxx*)
3581
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3582
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3583
 
 
3584
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3585
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3586
 
 
3587
 
        # Commands to make compiler produce verbose output that lists
3588
 
        # what "hidden" libraries, object files and flags are used when
3589
 
        # linking a shared library.
3590
 
        #
3591
 
        # There doesn't appear to be a way to prevent this compiler from
3592
 
        # explicitly linking system object files so we need to strip them
3593
 
        # from the output so that they don't get included in the library
3594
 
        # dependencies.
3595
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3596
 
        ;;
3597
 
      *)
3598
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3599
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3600
 
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3601
 
 
3602
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3603
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3604
 
 
3605
 
          # Commands to make compiler produce verbose output that lists
3606
 
          # what "hidden" libraries, object files and flags are used when
3607
 
          # linking a shared library.
3608
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3609
 
 
3610
 
        else
3611
 
          # FIXME: insert proper C++ library support
3612
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3613
 
        fi
3614
 
        ;;
3615
 
    esac
3616
 
    ;;
3617
 
  osf4* | osf5*)
3618
 
    case $cc_basename in
3619
 
      KCC*)
3620
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3621
 
 
3622
 
        # KCC will only create a shared library if the output file
3623
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3624
 
        # to its proper name (with version) after linking.
3625
 
        _LT_AC_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'
3626
 
 
3627
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3628
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3629
 
 
3630
 
        # Archives containing C++ object files must be created using
3631
 
        # the KAI C++ compiler.
3632
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3633
 
        ;;
3634
 
      RCC*)
3635
 
        # Rational C++ 2.4.1
3636
 
        # FIXME: insert proper C++ library support
3637
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3638
 
        ;;
3639
 
      cxx*)
3640
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3641
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3642
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3643
 
          echo "-hidden">> $lib.exp~
3644
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3645
 
          $rm $lib.exp'
3646
 
 
3647
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3648
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3649
 
 
3650
 
        # Commands to make compiler produce verbose output that lists
3651
 
        # what "hidden" libraries, object files and flags are used when
3652
 
        # linking a shared library.
3653
 
        #
3654
 
        # There doesn't appear to be a way to prevent this compiler from
3655
 
        # explicitly linking system object files so we need to strip them
3656
 
        # from the output so that they don't get included in the library
3657
 
        # dependencies.
3658
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3659
 
        ;;
3660
 
      *)
3661
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3662
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3663
 
         _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3664
 
 
3665
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3666
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3667
 
 
3668
 
          # Commands to make compiler produce verbose output that lists
3669
 
          # what "hidden" libraries, object files and flags are used when
3670
 
          # linking a shared library.
3671
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3672
 
 
3673
 
        else
3674
 
          # FIXME: insert proper C++ library support
3675
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3676
 
        fi
3677
 
        ;;
3678
 
    esac
3679
 
    ;;
3680
 
  psos*)
3681
 
    # FIXME: insert proper C++ library support
3682
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683
 
    ;;
3684
 
  sunos4*)
3685
 
    case $cc_basename in
3686
 
      CC*)
3687
 
        # Sun C++ 4.x
3688
 
        # FIXME: insert proper C++ library support
3689
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3690
 
        ;;
3691
 
      lcc*)
3692
 
        # Lucid
3693
 
        # FIXME: insert proper C++ library support
3694
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3695
 
        ;;
3696
 
      *)
3697
 
        # FIXME: insert proper C++ library support
3698
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3699
 
        ;;
3700
 
    esac
3701
 
    ;;
3702
 
  solaris*)
3703
 
    case $cc_basename in
3704
 
      CC*)
3705
 
        # Sun C++ 4.2, 5.x and Centerline C++
3706
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3707
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3708
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3709
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3710
 
        $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'
3711
 
 
3712
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3713
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
 
        case $host_os in
3715
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3716
 
          *)
3717
 
            # The compiler driver will combine and reorder linker options,
3718
 
            # but understands `-z linker_flag'.
3719
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3720
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3721
 
            ;;
3722
 
        esac
3723
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3724
 
 
3725
 
        output_verbose_link_cmd='echo'
3726
 
 
3727
 
        # Archives containing C++ object files must be created using
3728
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3729
 
        # necessary to make sure instantiated templates are included
3730
 
        # in the archive.
3731
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3732
 
        ;;
3733
 
      gcx*)
3734
 
        # Green Hills C++ Compiler
3735
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3736
 
 
3737
 
        # The C++ compiler must be used to create the archive.
3738
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3739
 
        ;;
3740
 
      *)
3741
 
        # GNU C++ compiler with Solaris linker
3742
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3743
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3744
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
3745
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3746
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3747
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3748
 
 
3749
 
            # Commands to make compiler produce verbose output that lists
3750
 
            # what "hidden" libraries, object files and flags are used when
3751
 
            # linking a shared library.
3752
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3753
 
          else
3754
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3755
 
            # platform.
3756
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3757
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3758
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3759
 
 
3760
 
            # Commands to make compiler produce verbose output that lists
3761
 
            # what "hidden" libraries, object files and flags are used when
3762
 
            # linking a shared library.
3763
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3764
 
          fi
3765
 
 
3766
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3767
 
          case $host_os in
3768
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3769
 
          *)
3770
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3771
 
            ;;
3772
 
          esac
3773
 
        fi
3774
 
        ;;
3775
 
    esac
3776
 
    ;;
3777
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3778
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3779
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3780
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3781
 
    runpath_var='LD_RUN_PATH'
3782
 
 
3783
 
    case $cc_basename in
3784
 
      CC*)
3785
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3787
 
        ;;
3788
 
      *)
3789
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3791
 
        ;;
3792
 
    esac
3793
 
    ;;
3794
 
  sysv5* | sco3.2v5* | sco5v6*)
3795
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3796
 
    # link with -lc, and that would cause any symbols used from libc to
3797
 
    # always be unresolved, which means just about no library would
3798
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3799
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3800
 
    # as -z defs.
3801
 
    # For security reasons, it is highly recommended that you always
3802
 
    # use absolute paths for naming shared libraries, and exclude the
3803
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3804
 
    # requires that you compile everything twice, which is a pain.
3805
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3806
 
    # non-empty value in the environment.  Most likely only useful for
3807
 
    # creating official distributions of packages.
3808
 
    # This is a hack until libtool officially supports absolute path
3809
 
    # names for shared libraries.
3810
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3811
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3812
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3813
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3814
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3815
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3818
 
    runpath_var='LD_RUN_PATH'
3819
 
 
3820
 
    case $cc_basename in
3821
 
      CC*)
3822
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3824
 
        ;;
3825
 
      *)
3826
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3828
 
        ;;
3829
 
    esac
3830
 
    ;;
3831
 
  tandem*)
3832
 
    case $cc_basename in
3833
 
      NCC*)
3834
 
        # NonStop-UX NCC 3.20
3835
 
        # FIXME: insert proper C++ library support
3836
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3837
 
        ;;
3838
 
      *)
3839
 
        # FIXME: insert proper C++ library support
3840
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3841
 
        ;;
3842
 
    esac
3843
 
    ;;
3844
 
  vxworks*)
3845
 
    # FIXME: insert proper C++ library support
3846
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3847
 
    ;;
3848
 
  *)
3849
 
    # FIXME: insert proper C++ library support
3850
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3851
 
    ;;
3852
 
esac
3853
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3854
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3855
 
 
3856
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3857
 
_LT_AC_TAGVAR(LD, $1)="$LD"
3858
 
 
3859
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
3860
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3861
 
AC_LIBTOOL_PROG_CC_C_O($1)
3862
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3863
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3864
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3865
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3866
 
 
3867
 
AC_LIBTOOL_CONFIG($1)
3868
 
 
3869
 
AC_LANG_POP
3870
 
CC=$lt_save_CC
3871
 
LDCXX=$LD
3872
 
LD=$lt_save_LD
3873
 
GCC=$lt_save_GCC
3874
 
with_gnu_ldcxx=$with_gnu_ld
3875
 
with_gnu_ld=$lt_save_with_gnu_ld
3876
 
lt_cv_path_LDCXX=$lt_cv_path_LD
3877
 
lt_cv_path_LD=$lt_save_path_LD
3878
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3879
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3880
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
3881
 
 
3882
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3883
 
# ------------------------------------
3884
 
# Figure out "hidden" library dependencies from verbose
3885
 
# compiler output when linking a shared library.
3886
 
# Parse the compiler output and extract the necessary
3887
 
# objects, libraries and library flags.
3888
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3889
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3890
 
dnl we can't use the lt_simple_compile_test_code here,
3891
 
dnl because it contains code intended for an executable,
3892
 
dnl not a library.  It's possible we should let each
3893
 
dnl tag define a new lt_????_link_test_code variable,
3894
 
dnl but it's only used here...
3895
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3896
 
int a;
3897
 
void foo (void) { a = 0; }
3898
 
EOF
3899
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3900
 
class Foo
3901
 
{
3902
 
public:
3903
 
  Foo (void) { a = 0; }
3904
 
private:
3905
 
  int a;
3906
 
};
3907
 
EOF
3908
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3909
 
      subroutine foo
3910
 
      implicit none
3911
 
      integer*4 a
3912
 
      a=0
3913
 
      return
3914
 
      end
3915
 
EOF
3916
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3917
 
public class foo {
3918
 
  private int a;
3919
 
  public void bar (void) {
3920
 
    a = 0;
3921
 
  }
3922
 
};
3923
 
EOF
3924
 
])
3925
 
dnl Parse the compiler output and extract the necessary
3926
 
dnl objects, libraries and library flags.
3927
 
if AC_TRY_EVAL(ac_compile); then
3928
 
  # Parse the compiler output and extract the necessary
3929
 
  # objects, libraries and library flags.
3930
 
 
3931
 
  # Sentinel used to keep track of whether or not we are before
3932
 
  # the conftest object file.
3933
 
  pre_test_object_deps_done=no
3934
 
 
3935
 
  # The `*' in the case matches for architectures that use `case' in
3936
 
  # $output_verbose_cmd can trigger glob expansion during the loop
3937
 
  # eval without this substitution.
3938
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3939
 
 
3940
 
  for p in `eval $output_verbose_link_cmd`; do
3941
 
    case $p in
3942
 
 
3943
 
    -L* | -R* | -l*)
3944
 
       # Some compilers place space between "-{L,R}" and the path.
3945
 
       # Remove the space.
3946
 
       if test $p = "-L" \
3947
 
          || test $p = "-R"; then
3948
 
         prev=$p
3949
 
         continue
3950
 
       else
3951
 
         prev=
3952
 
       fi
3953
 
 
3954
 
       if test "$pre_test_object_deps_done" = no; then
3955
 
         case $p in
3956
 
         -L* | -R*)
3957
 
           # Internal compiler library paths should come after those
3958
 
           # provided the user.  The postdeps already come after the
3959
 
           # user supplied libs so there is no need to process them.
3960
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3961
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3962
 
           else
3963
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3964
 
           fi
3965
 
           ;;
3966
 
         # The "-l" case would never come before the object being
3967
 
         # linked, so don't bother handling this case.
3968
 
         esac
3969
 
       else
3970
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3971
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3972
 
         else
3973
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3974
 
         fi
3975
 
       fi
3976
 
       ;;
3977
 
 
3978
 
    *.$objext)
3979
 
       # This assumes that the test object file only shows up
3980
 
       # once in the compiler output.
3981
 
       if test "$p" = "conftest.$objext"; then
3982
 
         pre_test_object_deps_done=yes
3983
 
         continue
3984
 
       fi
3985
 
 
3986
 
       if test "$pre_test_object_deps_done" = no; then
3987
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3988
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
3989
 
         else
3990
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3991
 
         fi
3992
 
       else
3993
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3994
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3995
 
         else
3996
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3997
 
         fi
3998
 
       fi
3999
 
       ;;
4000
 
 
4001
 
    *) ;; # Ignore the rest.
4002
 
 
4003
 
    esac
4004
 
  done
4005
 
 
4006
 
  # Clean up.
4007
 
  rm -f a.out a.exe
4008
 
else
4009
 
  echo "libtool.m4: error: problem compiling $1 test program"
4010
 
fi
4011
 
 
4012
 
$rm -f confest.$objext
4013
 
 
4014
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4015
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4016
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4017
 
fi
4018
 
 
4019
 
# PORTME: override above test on systems where it is broken
4020
 
ifelse([$1],[CXX],
4021
 
[case $host_os in
4022
 
interix[[3-9]]*)
4023
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4024
 
  # hack all around it, let's just trust "g++" to DTRT.
4025
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4026
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4027
 
  _LT_AC_TAGVAR(postdeps,$1)=
4028
 
  ;;
4029
 
 
4030
 
linux*)
4031
 
  case `$CC -V 2>&1 | sed 5q` in
4032
 
  *Sun\ C*)
4033
 
    # Sun C++ 5.9
4034
 
    #
4035
 
    # The more standards-conforming stlport4 library is
4036
 
    # incompatible with the Cstd library. Avoid specifying
4037
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4038
 
    # -library=stlport4 depends on it.
4039
 
    case " $CXX $CXXFLAGS " in
4040
 
    *" -library=stlport4 "*)
4041
 
      solaris_use_stlport4=yes
4042
 
      ;;
4043
 
    esac
4044
 
    if test "$solaris_use_stlport4" != yes; then
4045
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4046
 
    fi
4047
 
    ;;
4048
 
  esac
4049
 
  ;;
4050
 
 
4051
 
solaris*)
4052
 
  case $cc_basename in
4053
 
  CC*)
4054
 
    # The more standards-conforming stlport4 library is
4055
 
    # incompatible with the Cstd library. Avoid specifying
4056
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4057
 
    # -library=stlport4 depends on it.
4058
 
    case " $CXX $CXXFLAGS " in
4059
 
    *" -library=stlport4 "*)
4060
 
      solaris_use_stlport4=yes
4061
 
      ;;
4062
 
    esac
4063
 
 
4064
 
    # Adding this requires a known-good setup of shared libraries for
4065
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4066
 
    # archive will be linked into the output, leading to subtle bugs.
4067
 
    if test "$solaris_use_stlport4" != yes; then
4068
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4069
 
    fi
4070
 
    ;;
4071
 
  esac
4072
 
  ;;
4073
 
esac
4074
 
])
4075
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4076
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4077
 
esac
4078
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4079
 
 
4080
 
# AC_LIBTOOL_LANG_F77_CONFIG
4081
 
# --------------------------
4082
 
# Ensure that the configuration vars for the C compiler are
4083
 
# suitably defined.  Those variables are subsequently used by
4084
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4085
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4086
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4087
 
[AC_REQUIRE([AC_PROG_F77])
4088
 
AC_LANG_PUSH(Fortran 77)
4089
 
 
4090
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4091
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4092
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4093
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4094
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4095
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4096
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4097
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4098
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4099
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4100
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4101
 
_LT_AC_TAGVAR(module_cmds, $1)=
4102
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4103
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4104
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4105
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4106
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4107
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4108
 
 
4109
 
# Source file extension for f77 test sources.
4110
 
ac_ext=f
4111
 
 
4112
 
# Object file extension for compiled f77 test sources.
4113
 
objext=o
4114
 
_LT_AC_TAGVAR(objext, $1)=$objext
4115
 
 
4116
 
# Code to be used in simple compile tests
4117
 
lt_simple_compile_test_code="\
4118
 
      subroutine t
4119
 
      return
4120
 
      end
4121
 
"
4122
 
 
4123
 
# Code to be used in simple link tests
4124
 
lt_simple_link_test_code="\
4125
 
      program t
4126
 
      end
4127
 
"
4128
 
 
4129
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4130
 
_LT_AC_SYS_COMPILER
4131
 
 
4132
 
# save warnings/boilerplate of simple test code
4133
 
_LT_COMPILER_BOILERPLATE
4134
 
_LT_LINKER_BOILERPLATE
4135
 
 
4136
 
# Allow CC to be a program name with arguments.
4137
 
lt_save_CC="$CC"
4138
 
CC=${F77-"f77"}
4139
 
compiler=$CC
4140
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4141
 
_LT_CC_BASENAME([$compiler])
4142
 
 
4143
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4144
 
AC_MSG_RESULT([$can_build_shared])
4145
 
 
4146
 
AC_MSG_CHECKING([whether to build shared libraries])
4147
 
test "$can_build_shared" = "no" && enable_shared=no
4148
 
 
4149
 
# On AIX, shared libraries and static libraries use the same namespace, and
4150
 
# are all built from PIC.
4151
 
case $host_os in
4152
 
aix3*)
4153
 
  test "$enable_shared" = yes && enable_static=no
4154
 
  if test -n "$RANLIB"; then
4155
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4156
 
    postinstall_cmds='$RANLIB $lib'
4157
 
  fi
4158
 
  ;;
4159
 
aix[[4-9]]*)
4160
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4161
 
    test "$enable_shared" = yes && enable_static=no
4162
 
  fi
4163
 
  ;;
4164
 
esac
4165
 
AC_MSG_RESULT([$enable_shared])
4166
 
 
4167
 
AC_MSG_CHECKING([whether to build static libraries])
4168
 
# Make sure either enable_shared or enable_static is yes.
4169
 
test "$enable_shared" = yes || enable_static=yes
4170
 
AC_MSG_RESULT([$enable_static])
4171
 
 
4172
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4173
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4174
 
 
4175
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4176
 
AC_LIBTOOL_PROG_CC_C_O($1)
4177
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4178
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4179
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4180
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4181
 
 
4182
 
AC_LIBTOOL_CONFIG($1)
4183
 
 
4184
 
AC_LANG_POP
4185
 
CC="$lt_save_CC"
4186
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4187
 
 
4188
 
 
4189
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4190
 
# --------------------------
4191
 
# Ensure that the configuration vars for the C compiler are
4192
 
# suitably defined.  Those variables are subsequently used by
4193
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4194
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4195
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4196
 
[AC_LANG_SAVE
4197
 
 
4198
 
# Source file extension for Java test sources.
4199
 
ac_ext=java
4200
 
 
4201
 
# Object file extension for compiled Java test sources.
4202
 
objext=o
4203
 
_LT_AC_TAGVAR(objext, $1)=$objext
4204
 
 
4205
 
# Code to be used in simple compile tests
4206
 
lt_simple_compile_test_code="class foo {}"
4207
 
 
4208
 
# Code to be used in simple link tests
4209
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4210
 
 
4211
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4212
 
_LT_AC_SYS_COMPILER
4213
 
 
4214
 
# save warnings/boilerplate of simple test code
4215
 
_LT_COMPILER_BOILERPLATE
4216
 
_LT_LINKER_BOILERPLATE
4217
 
 
4218
 
# Allow CC to be a program name with arguments.
4219
 
lt_save_CC="$CC"
4220
 
CC=${GCJ-"gcj"}
4221
 
compiler=$CC
4222
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4223
 
_LT_CC_BASENAME([$compiler])
4224
 
 
4225
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4226
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4227
 
 
4228
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4229
 
 
4230
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4231
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4232
 
AC_LIBTOOL_PROG_CC_C_O($1)
4233
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4234
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4235
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4236
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4237
 
 
4238
 
AC_LIBTOOL_CONFIG($1)
4239
 
 
4240
 
AC_LANG_RESTORE
4241
 
CC="$lt_save_CC"
4242
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4243
 
 
4244
 
 
4245
 
# AC_LIBTOOL_LANG_RC_CONFIG
4246
 
# -------------------------
4247
 
# Ensure that the configuration vars for the Windows resource compiler are
4248
 
# suitably defined.  Those variables are subsequently used by
4249
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4250
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4251
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4252
 
[AC_LANG_SAVE
4253
 
 
4254
 
# Source file extension for RC test sources.
4255
 
ac_ext=rc
4256
 
 
4257
 
# Object file extension for compiled RC test sources.
4258
 
objext=o
4259
 
_LT_AC_TAGVAR(objext, $1)=$objext
4260
 
 
4261
 
# Code to be used in simple compile tests
4262
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4263
 
 
4264
 
# Code to be used in simple link tests
4265
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4266
 
 
4267
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4268
 
_LT_AC_SYS_COMPILER
4269
 
 
4270
 
# save warnings/boilerplate of simple test code
4271
 
_LT_COMPILER_BOILERPLATE
4272
 
_LT_LINKER_BOILERPLATE
4273
 
 
4274
 
# Allow CC to be a program name with arguments.
4275
 
lt_save_CC="$CC"
4276
 
CC=${RC-"windres"}
4277
 
compiler=$CC
4278
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4279
 
_LT_CC_BASENAME([$compiler])
4280
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4281
 
 
4282
 
AC_LIBTOOL_CONFIG($1)
4283
 
 
4284
 
AC_LANG_RESTORE
4285
 
CC="$lt_save_CC"
4286
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4287
 
 
4288
 
 
4289
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4290
 
# ----------------------------
4291
 
# If TAGNAME is not passed, then create an initial libtool script
4292
 
# with a default configuration from the untagged config vars.  Otherwise
4293
 
# add code to config.status for appending the configuration named by
4294
 
# TAGNAME from the matching tagged config vars.
4295
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4296
 
[# The else clause should only fire when bootstrapping the
4297
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4298
 
# with your package, and you will get complaints that there are
4299
 
# no rules to generate ltmain.sh.
4300
 
if test -f "$ltmain"; then
4301
 
  # See if we are running on zsh, and set the options which allow our commands through
4302
 
  # without removal of \ escapes.
4303
 
  if test -n "${ZSH_VERSION+set}" ; then
4304
 
    setopt NO_GLOB_SUBST
4305
 
  fi
4306
 
  # Now quote all the things that may contain metacharacters while being
4307
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4308
 
  # variables and quote the copies for generation of the libtool script.
4309
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4310
 
    SED SHELL STRIP \
4311
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4312
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4313
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4314
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4315
 
    lt_cv_sys_global_symbol_to_c_name_address \
4316
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4317
 
    old_postinstall_cmds old_postuninstall_cmds \
4318
 
    _LT_AC_TAGVAR(compiler, $1) \
4319
 
    _LT_AC_TAGVAR(CC, $1) \
4320
 
    _LT_AC_TAGVAR(LD, $1) \
4321
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4322
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4323
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4324
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4325
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4326
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4327
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4328
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4329
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4330
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4331
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4332
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4333
 
    _LT_AC_TAGVAR(predeps, $1) \
4334
 
    _LT_AC_TAGVAR(postdeps, $1) \
4335
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4336
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4337
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4338
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4339
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4340
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4341
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4342
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4343
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4344
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4345
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4346
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4347
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4348
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4349
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4350
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4351
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4352
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4353
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4354
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4355
 
 
4356
 
    case $var in
4357
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4358
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4359
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4360
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4361
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4362
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4363
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4364
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4365
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4366
 
    postinstall_cmds | postuninstall_cmds | \
4367
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4368
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4369
 
      # Double-quote double-evaled strings.
4370
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4371
 
      ;;
4372
 
    *)
4373
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4374
 
      ;;
4375
 
    esac
4376
 
  done
4377
 
 
4378
 
  case $lt_echo in
4379
 
  *'\[$]0 --fallback-echo"')
4380
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4381
 
    ;;
4382
 
  esac
4383
 
 
4384
 
ifelse([$1], [],
4385
 
  [cfgfile="${ofile}T"
4386
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4387
 
  $rm -f "$cfgfile"
4388
 
  AC_MSG_NOTICE([creating $ofile])],
4389
 
  [cfgfile="$ofile"])
4390
 
 
4391
 
  cat <<__EOF__ >> "$cfgfile"
4392
 
ifelse([$1], [],
4393
 
[#! $SHELL
4394
 
 
4395
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4396
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4397
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4398
 
#
4399
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4400
 
# Free Software Foundation, Inc.
4401
 
#
4402
 
# This file is part of GNU Libtool:
4403
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4404
 
#
4405
 
# This program is free software; you can redistribute it and/or modify
4406
 
# it under the terms of the GNU General Public License as published by
4407
 
# the Free Software Foundation; either version 2 of the License, or
4408
 
# (at your option) any later version.
4409
 
#
4410
 
# This program is distributed in the hope that it will be useful, but
4411
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4412
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4413
 
# General Public License for more details.
4414
 
#
4415
 
# You should have received a copy of the GNU General Public License
4416
 
# along with this program; if not, write to the Free Software
4417
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4418
 
#
4419
 
# As a special exception to the GNU General Public License, if you
4420
 
# distribute this file as part of a program that contains a
4421
 
# configuration script generated by Autoconf, you may include it under
4422
 
# the same distribution terms that you use for the rest of that program.
4423
 
 
4424
 
# A sed program that does not truncate output.
4425
 
SED=$lt_SED
4426
 
 
4427
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4428
 
Xsed="$SED -e 1s/^X//"
4429
 
 
4430
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4431
 
# if CDPATH is set.
4432
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4433
 
 
4434
 
# The names of the tagged configurations supported by this script.
4435
 
available_tags=
4436
 
 
4437
 
# ### BEGIN LIBTOOL CONFIG],
4438
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4439
 
 
4440
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4441
 
 
4442
 
# Shell to use when invoking shell scripts.
4443
 
SHELL=$lt_SHELL
4444
 
 
4445
 
# Whether or not to build shared libraries.
4446
 
build_libtool_libs=$enable_shared
4447
 
 
4448
 
# Whether or not to build static libraries.
4449
 
build_old_libs=$enable_static
4450
 
 
4451
 
# Whether or not to add -lc for building shared libraries.
4452
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4453
 
 
4454
 
# Whether or not to disallow shared libs when runtime libs are static
4455
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4456
 
 
4457
 
# Whether or not to optimize for fast installation.
4458
 
fast_install=$enable_fast_install
4459
 
 
4460
 
# The host system.
4461
 
host_alias=$host_alias
4462
 
host=$host
4463
 
host_os=$host_os
4464
 
 
4465
 
# The build system.
4466
 
build_alias=$build_alias
4467
 
build=$build
4468
 
build_os=$build_os
4469
 
 
4470
 
# An echo program that does not interpret backslashes.
4471
 
echo=$lt_echo
4472
 
 
4473
 
# The archiver.
4474
 
AR=$lt_AR
4475
 
AR_FLAGS=$lt_AR_FLAGS
4476
 
 
4477
 
# A C compiler.
4478
 
LTCC=$lt_LTCC
4479
 
 
4480
 
# LTCC compiler flags.
4481
 
LTCFLAGS=$lt_LTCFLAGS
4482
 
 
4483
 
# A language-specific compiler.
4484
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4485
 
 
4486
 
# Is the compiler the GNU C compiler?
4487
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4488
 
 
4489
 
# An ERE matcher.
4490
 
EGREP=$lt_EGREP
4491
 
 
4492
 
# The linker used to build libraries.
4493
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4494
 
 
4495
 
# Whether we need hard or soft links.
4496
 
LN_S=$lt_LN_S
4497
 
 
4498
 
# A BSD-compatible nm program.
4499
 
NM=$lt_NM
4500
 
 
4501
 
# A symbol stripping program
4502
 
STRIP=$lt_STRIP
4503
 
 
4504
 
# Used to examine libraries when file_magic_cmd begins "file"
4505
 
MAGIC_CMD=$MAGIC_CMD
4506
 
 
4507
 
# Used on cygwin: DLL creation program.
4508
 
DLLTOOL="$DLLTOOL"
4509
 
 
4510
 
# Used on cygwin: object dumper.
4511
 
OBJDUMP="$OBJDUMP"
4512
 
 
4513
 
# Used on cygwin: assembler.
4514
 
AS="$AS"
4515
 
 
4516
 
# The name of the directory that contains temporary libtool files.
4517
 
objdir=$objdir
4518
 
 
4519
 
# How to create reloadable object files.
4520
 
reload_flag=$lt_reload_flag
4521
 
reload_cmds=$lt_reload_cmds
4522
 
 
4523
 
# How to pass a linker flag through the compiler.
4524
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4525
 
 
4526
 
# Object file suffix (normally "o").
4527
 
objext="$ac_objext"
4528
 
 
4529
 
# Old archive suffix (normally "a").
4530
 
libext="$libext"
4531
 
 
4532
 
# Shared library suffix (normally ".so").
4533
 
shrext_cmds='$shrext_cmds'
4534
 
 
4535
 
# Executable file suffix (normally "").
4536
 
exeext="$exeext"
4537
 
 
4538
 
# Additional compiler flags for building library objects.
4539
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4540
 
pic_mode=$pic_mode
4541
 
 
4542
 
# What is the maximum length of a command?
4543
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4544
 
 
4545
 
# Does compiler simultaneously support -c and -o options?
4546
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4547
 
 
4548
 
# Must we lock files when doing compilation?
4549
 
need_locks=$lt_need_locks
4550
 
 
4551
 
# Do we need the lib prefix for modules?
4552
 
need_lib_prefix=$need_lib_prefix
4553
 
 
4554
 
# Do we need a version for libraries?
4555
 
need_version=$need_version
4556
 
 
4557
 
# Whether dlopen is supported.
4558
 
dlopen_support=$enable_dlopen
4559
 
 
4560
 
# Whether dlopen of programs is supported.
4561
 
dlopen_self=$enable_dlopen_self
4562
 
 
4563
 
# Whether dlopen of statically linked programs is supported.
4564
 
dlopen_self_static=$enable_dlopen_self_static
4565
 
 
4566
 
# Compiler flag to prevent dynamic linking.
4567
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4568
 
 
4569
 
# Compiler flag to turn off builtin functions.
4570
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4571
 
 
4572
 
# Compiler flag to allow reflexive dlopens.
4573
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4574
 
 
4575
 
# Compiler flag to generate shared objects directly from archives.
4576
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4577
 
 
4578
 
# Compiler flag to generate thread-safe objects.
4579
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4580
 
 
4581
 
# Library versioning type.
4582
 
version_type=$version_type
4583
 
 
4584
 
# Format of library name prefix.
4585
 
libname_spec=$lt_libname_spec
4586
 
 
4587
 
# List of archive names.  First name is the real one, the rest are links.
4588
 
# The last name is the one that the linker finds with -lNAME.
4589
 
library_names_spec=$lt_library_names_spec
4590
 
 
4591
 
# The coded name of the library, if different from the real name.
4592
 
soname_spec=$lt_soname_spec
4593
 
 
4594
 
# Commands used to build and install an old-style archive.
4595
 
RANLIB=$lt_RANLIB
4596
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4597
 
old_postinstall_cmds=$lt_old_postinstall_cmds
4598
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4599
 
 
4600
 
# Create an old-style archive from a shared archive.
4601
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4602
 
 
4603
 
# Create a temporary old-style archive to link instead of a shared archive.
4604
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4605
 
 
4606
 
# Commands used to build and install a shared archive.
4607
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4608
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4609
 
postinstall_cmds=$lt_postinstall_cmds
4610
 
postuninstall_cmds=$lt_postuninstall_cmds
4611
 
 
4612
 
# Commands used to build a loadable module (assumed same as above if empty)
4613
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4614
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4615
 
 
4616
 
# Commands to strip libraries.
4617
 
old_striplib=$lt_old_striplib
4618
 
striplib=$lt_striplib
4619
 
 
4620
 
# Dependencies to place before the objects being linked to create a
4621
 
# shared library.
4622
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4623
 
 
4624
 
# Dependencies to place after the objects being linked to create a
4625
 
# shared library.
4626
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4627
 
 
4628
 
# Dependencies to place before the objects being linked to create a
4629
 
# shared library.
4630
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4631
 
 
4632
 
# Dependencies to place after the objects being linked to create a
4633
 
# shared library.
4634
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4635
 
 
4636
 
# The directories searched by this compiler when creating a shared
4637
 
# library
4638
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4639
 
 
4640
 
# The library search path used internally by the compiler when linking
4641
 
# a shared library.
4642
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4643
 
 
4644
 
# Method to check whether dependent libraries are shared objects.
4645
 
deplibs_check_method=$lt_deplibs_check_method
4646
 
 
4647
 
# Command to use when deplibs_check_method == file_magic.
4648
 
file_magic_cmd=$lt_file_magic_cmd
4649
 
 
4650
 
# Flag that allows shared libraries with undefined symbols to be built.
4651
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4652
 
 
4653
 
# Flag that forces no undefined symbols.
4654
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4655
 
 
4656
 
# Commands used to finish a libtool library installation in a directory.
4657
 
finish_cmds=$lt_finish_cmds
4658
 
 
4659
 
# Same as above, but a single script fragment to be evaled but not shown.
4660
 
finish_eval=$lt_finish_eval
4661
 
 
4662
 
# Take the output of nm and produce a listing of raw symbols and C names.
4663
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4664
 
 
4665
 
# Transform the output of nm in a proper C declaration
4666
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4667
 
 
4668
 
# Transform the output of nm in a C name address pair
4669
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4670
 
 
4671
 
# This is the shared library runtime path variable.
4672
 
runpath_var=$runpath_var
4673
 
 
4674
 
# This is the shared library path variable.
4675
 
shlibpath_var=$shlibpath_var
4676
 
 
4677
 
# Is shlibpath searched before the hard-coded library search path?
4678
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4679
 
 
4680
 
# How to hardcode a shared library path into an executable.
4681
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4682
 
 
4683
 
# Whether we should hardcode library paths into libraries.
4684
 
hardcode_into_libs=$hardcode_into_libs
4685
 
 
4686
 
# Flag to hardcode \$libdir into a binary during linking.
4687
 
# This must work even if \$libdir does not exist.
4688
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4689
 
 
4690
 
# If ld is used when linking, flag to hardcode \$libdir into
4691
 
# a binary during linking. This must work even if \$libdir does
4692
 
# not exist.
4693
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4694
 
 
4695
 
# Whether we need a single -rpath flag with a separated argument.
4696
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4697
 
 
4698
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4699
 
# resulting binary.
4700
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4701
 
 
4702
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4703
 
# resulting binary.
4704
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4705
 
 
4706
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4707
 
# the resulting binary.
4708
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4709
 
 
4710
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
4711
 
# and all subsequent libraries and executables linked against it.
4712
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4713
 
 
4714
 
# Variables whose values should be saved in libtool wrapper scripts and
4715
 
# restored at relink time.
4716
 
variables_saved_for_relink="$variables_saved_for_relink"
4717
 
 
4718
 
# Whether libtool must link a program against all its dependency libraries.
4719
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4720
 
 
4721
 
# Compile-time system search path for libraries
4722
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4723
 
 
4724
 
# Run-time system search path for libraries
4725
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4726
 
 
4727
 
# Fix the shell variable \$srcfile for the compiler.
4728
 
fix_srcfile_path=$lt_fix_srcfile_path
4729
 
 
4730
 
# Set to yes if exported symbols are required.
4731
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4732
 
 
4733
 
# The commands to list exported symbols.
4734
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4735
 
 
4736
 
# The commands to extract the exported symbol list from a shared archive.
4737
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4738
 
 
4739
 
# Symbols that should not be listed in the preloaded symbols.
4740
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4741
 
 
4742
 
# Symbols that must always be exported.
4743
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4744
 
 
4745
 
ifelse([$1],[],
4746
 
[# ### END LIBTOOL CONFIG],
4747
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
4748
 
 
4749
 
__EOF__
4750
 
 
4751
 
ifelse([$1],[], [
4752
 
  case $host_os in
4753
 
  aix3*)
4754
 
    cat <<\EOF >> "$cfgfile"
4755
 
 
4756
 
# AIX sometimes has problems with the GCC collect2 program.  For some
4757
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
4758
 
# vanish in a puff of smoke.
4759
 
if test "X${COLLECT_NAMES+set}" != Xset; then
4760
 
  COLLECT_NAMES=
4761
 
  export COLLECT_NAMES
4762
 
fi
4763
 
EOF
4764
 
    ;;
4765
 
  esac
4766
 
 
4767
 
  # We use sed instead of cat because bash on DJGPP gets confused if
4768
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4769
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
4770
 
  # is reportedly fixed, but why not run on old versions too?
4771
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4772
 
 
4773
 
  mv -f "$cfgfile" "$ofile" || \
4774
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4775
 
  chmod +x "$ofile"
4776
 
])
4777
 
else
4778
 
  # If there is no Makefile yet, we rely on a make rule to execute
4779
 
  # `config.status --recheck' to rerun these tests and create the
4780
 
  # libtool script then.
4781
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4782
 
  if test -f "$ltmain_in"; then
4783
 
    test -f Makefile && make "$ltmain"
4784
 
  fi
4785
 
fi
4786
 
])# AC_LIBTOOL_CONFIG
4787
 
 
4788
 
 
4789
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4790
 
# -------------------------------------------
4791
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4792
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4793
 
 
4794
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4224
AC_SUBST([LIBM])
 
4225
])# LT_LIB_M
 
4226
 
 
4227
# Old name:
 
4228
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4229
dnl aclocal-1.4 backwards compatibility:
 
4230
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4231
 
 
4232
 
 
4233
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4234
# -------------------------------
 
4235
m4_defun([_LT_COMPILER_NO_RTTI],
 
4236
[m4_require([_LT_TAG_COMPILER])dnl
 
4237
 
 
4238
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4795
4239
 
4796
4240
if test "$GCC" = yes; then
4797
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4241
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4798
4242
 
4799
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4243
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4800
4244
    lt_cv_prog_compiler_rtti_exceptions,
4801
4245
    [-fno-rtti -fno-exceptions], [],
4802
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4246
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4803
4247
fi
4804
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4805
 
 
4806
 
 
4807
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4808
 
# ---------------------------------
4809
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4810
 
[AC_REQUIRE([AC_CANONICAL_HOST])
4811
 
AC_REQUIRE([LT_AC_PROG_SED])
4812
 
AC_REQUIRE([AC_PROG_NM])
4813
 
AC_REQUIRE([AC_OBJEXT])
 
4248
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4249
        [Compiler flag to turn off builtin functions])
 
4250
])# _LT_COMPILER_NO_RTTI
 
4251
 
 
4252
 
 
4253
# _LT_CMD_GLOBAL_SYMBOLS
 
4254
# ----------------------
 
4255
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4256
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4257
AC_REQUIRE([AC_PROG_CC])dnl
 
4258
AC_REQUIRE([LT_PATH_NM])dnl
 
4259
AC_REQUIRE([LT_PATH_LD])dnl
 
4260
m4_require([_LT_DECL_SED])dnl
 
4261
m4_require([_LT_DECL_EGREP])dnl
 
4262
m4_require([_LT_TAG_COMPILER])dnl
 
4263
 
4814
4264
# Check for command to grab the raw symbol name followed by C symbol from nm.
4815
4265
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4816
4266
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4824
4274
# Regexp to match symbols that can be accessed directly from C.
4825
4275
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4826
4276
 
4827
 
# Transform an extracted symbol line into a proper C declaration
4828
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4829
 
 
4830
 
# Transform an extracted symbol line into symbol name and symbol address
4831
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4832
 
 
4833
4277
# Define system-specific variables.
4834
4278
case $host_os in
4835
4279
aix*)
4838
4282
cygwin* | mingw* | pw32*)
4839
4283
  symcode='[[ABCDGISTW]]'
4840
4284
  ;;
4841
 
hpux*) # Its linker distinguishes data from code symbols
 
4285
hpux*)
4842
4286
  if test "$host_cpu" = ia64; then
4843
4287
    symcode='[[ABCDEGRST]]'
4844
4288
  fi
4845
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4846
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4847
 
  ;;
4848
 
linux* | k*bsd*-gnu)
4849
 
  if test "$host_cpu" = ia64; then
4850
 
    symcode='[[ABCDGIRSTW]]'
4851
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4852
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4853
 
  fi
4854
4289
  ;;
4855
4290
irix* | nonstopux*)
4856
4291
  symcode='[[BCDEGRST]]'
4875
4310
  ;;
4876
4311
esac
4877
4312
 
 
4313
# If we're using GNU nm, then use its standard symbol codes.
 
4314
case `$NM -V 2>&1` in
 
4315
*GNU* | *'with BFD'*)
 
4316
  symcode='[[ABCDGIRSTW]]' ;;
 
4317
esac
 
4318
 
 
4319
# Transform an extracted symbol line into a proper C declaration.
 
4320
# Some systems (esp. on ia64) link data and code symbols differently,
 
4321
# so use this general approach.
 
4322
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4323
 
 
4324
# Transform an extracted symbol line into symbol name and symbol address
 
4325
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4326
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'"
 
4327
 
4878
4328
# Handle CRLF in mingw tool chain
4879
4329
opt_cr=
4880
4330
case $build_os in
4881
4331
mingw*)
4882
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4332
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4883
4333
  ;;
4884
4334
esac
4885
4335
 
4886
 
# If we're using GNU nm, then use its standard symbol codes.
4887
 
case `$NM -V 2>&1` in
4888
 
*GNU* | *'with BFD'*)
4889
 
  symcode='[[ABCDGIRSTW]]' ;;
4890
 
esac
4891
 
 
4892
 
# Try without a prefix undercore, then with it.
 
4336
# Try without a prefix underscore, then with it.
4893
4337
for ac_symprfx in "" "_"; do
4894
4338
 
4895
4339
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4896
4340
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4897
4341
 
4898
4342
  # Write the raw and C identifiers.
4899
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4343
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4344
    # Fake it for dumpbin and say T for any non-static function
 
4345
    # and D for any global variable.
 
4346
    # Also find C++ and __fastcall symbols from MSVC++,
 
4347
    # which start with @ or ?.
 
4348
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4349
"     {last_section=section; section=\$ 3};"\
 
4350
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4351
"     \$ 0!~/External *\|/{next};"\
 
4352
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4353
"     {if(hide[section]) next};"\
 
4354
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4355
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4356
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4357
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4358
"     ' prfx=^$ac_symprfx]"
 
4359
  else
 
4360
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4361
  fi
4900
4362
 
4901
4363
  # Check to see that the pipe works correctly.
4902
4364
  pipe_works=no
4903
4365
 
4904
4366
  rm -f conftest*
4905
 
  cat > conftest.$ac_ext <<EOF
 
4367
  cat > conftest.$ac_ext <<_LT_EOF
4906
4368
#ifdef __cplusplus
4907
4369
extern "C" {
4908
4370
#endif
4909
4371
char nm_test_var;
4910
 
void nm_test_func(){}
 
4372
void nm_test_func(void);
 
4373
void nm_test_func(void){}
4911
4374
#ifdef __cplusplus
4912
4375
}
4913
4376
#endif
4914
4377
int main(){nm_test_var='a';nm_test_func();return(0);}
4915
 
EOF
 
4378
_LT_EOF
4916
4379
 
4917
4380
  if AC_TRY_EVAL(ac_compile); then
4918
4381
    # Now try to grab the symbols.
4926
4389
      fi
4927
4390
 
4928
4391
      # Make sure that we snagged all the symbols we need.
4929
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
4930
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
4931
 
          cat <<EOF > conftest.$ac_ext
 
4392
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4393
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4394
          cat <<_LT_EOF > conftest.$ac_ext
4932
4395
#ifdef __cplusplus
4933
4396
extern "C" {
4934
4397
#endif
4935
4398
 
4936
 
EOF
 
4399
_LT_EOF
4937
4400
          # Now generate the symbol file.
4938
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4939
 
 
4940
 
          cat <<EOF >> conftest.$ac_ext
4941
 
#if defined (__STDC__) && __STDC__
4942
 
# define lt_ptr_t void *
4943
 
#else
4944
 
# define lt_ptr_t char *
4945
 
# define const
4946
 
#endif
4947
 
 
4948
 
/* The mapping between symbol names and symbols. */
 
4401
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4402
 
 
4403
          cat <<_LT_EOF >> conftest.$ac_ext
 
4404
 
 
4405
/* The mapping between symbol names and symbols.  */
4949
4406
const struct {
4950
4407
  const char *name;
4951
 
  lt_ptr_t address;
 
4408
  void       *address;
4952
4409
}
4953
 
lt_preloaded_symbols[[]] =
 
4410
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4954
4411
{
4955
 
EOF
4956
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4957
 
          cat <<\EOF >> conftest.$ac_ext
4958
 
  {0, (lt_ptr_t) 0}
 
4412
  { "@PROGRAM@", (void *) 0 },
 
4413
_LT_EOF
 
4414
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4415
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4416
  {0, (void *) 0}
4959
4417
};
4960
4418
 
 
4419
/* This works around a problem in FreeBSD linker */
 
4420
#ifdef FREEBSD_WORKAROUND
 
4421
static const void *lt_preloaded_setup() {
 
4422
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4423
}
 
4424
#endif
 
4425
 
4961
4426
#ifdef __cplusplus
4962
4427
}
4963
4428
#endif
4964
 
EOF
 
4429
_LT_EOF
4965
4430
          # Now try linking the two files.
4966
4431
          mv conftest.$ac_objext conftstm.$ac_objext
4967
4432
          lt_save_LIBS="$LIBS"
4968
4433
          lt_save_CFLAGS="$CFLAGS"
4969
4434
          LIBS="conftstm.$ac_objext"
4970
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4435
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4971
4436
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4972
4437
            pipe_works=yes
4973
4438
          fi
5004
4469
else
5005
4470
  AC_MSG_RESULT(ok)
5006
4471
fi
5007
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5008
 
 
5009
 
 
5010
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5011
 
# ---------------------------------------
5012
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5013
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5014
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5015
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4472
 
 
4473
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4474
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4475
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4476
    [Transform the output of nm in a proper C declaration])
 
4477
_LT_DECL([global_symbol_to_c_name_address],
 
4478
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4479
    [Transform the output of nm in a C name address pair])
 
4480
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4481
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4482
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4483
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4484
 
 
4485
 
 
4486
# _LT_COMPILER_PIC([TAGNAME])
 
4487
# ---------------------------
 
4488
m4_defun([_LT_COMPILER_PIC],
 
4489
[m4_require([_LT_TAG_COMPILER])dnl
 
4490
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4491
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4492
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5016
4493
 
5017
4494
AC_MSG_CHECKING([for $compiler option to produce PIC])
5018
 
 ifelse([$1],[CXX],[
 
4495
m4_if([$1], [CXX], [
5019
4496
  # C++ specific cases for pic, static, wl, etc.
5020
4497
  if test "$GXX" = yes; then
5021
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5022
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4498
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4499
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5023
4500
 
5024
4501
    case $host_os in
5025
4502
    aix*)
5026
4503
      # All AIX code is PIC.
5027
4504
      if test "$host_cpu" = ia64; then
5028
4505
        # AIX 5 now supports IA64 processor
5029
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4506
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5030
4507
      fi
5031
4508
      ;;
 
4509
 
5032
4510
    amigaos*)
5033
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5034
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5035
 
      # like `-m68040'.
5036
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4511
      case $host_cpu in
 
4512
      powerpc)
 
4513
            # see comment about AmigaOS4 .so support
 
4514
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4515
        ;;
 
4516
      m68k)
 
4517
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4518
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4519
            # like `-m68040'.
 
4520
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4521
        ;;
 
4522
      esac
5037
4523
      ;;
 
4524
 
5038
4525
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5039
4526
      # PIC is the default for these OSes.
5040
4527
      ;;
5044
4531
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5045
4532
      # (--disable-auto-import) libraries
5046
4533
      m4_if([$1], [GCJ], [],
5047
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4534
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5048
4535
      ;;
5049
4536
    darwin* | rhapsody*)
5050
4537
      # PIC is the default on this platform
5051
4538
      # Common symbols not allowed in MH_DYLIB files
5052
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4539
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5053
4540
      ;;
5054
4541
    *djgpp*)
5055
4542
      # DJGPP does not support shared libraries at all
5056
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4543
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5057
4544
      ;;
5058
4545
    interix[[3-9]]*)
5059
4546
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5061
4548
      ;;
5062
4549
    sysv4*MP*)
5063
4550
      if test -d /usr/nec; then
5064
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4551
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5065
4552
      fi
5066
4553
      ;;
5067
4554
    hpux*)
5071
4558
      hppa*64*|ia64*)
5072
4559
        ;;
5073
4560
      *)
5074
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4561
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5075
4562
        ;;
5076
4563
      esac
5077
4564
      ;;
 
4565
    *qnx* | *nto*)
 
4566
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4567
      # it will coredump.
 
4568
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4569
      ;;
5078
4570
    *)
5079
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4571
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5080
4572
      ;;
5081
4573
    esac
5082
4574
  else
5085
4577
        # All AIX code is PIC.
5086
4578
        if test "$host_cpu" = ia64; then
5087
4579
          # AIX 5 now supports IA64 processor
5088
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4580
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5089
4581
        else
5090
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4582
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5091
4583
        fi
5092
4584
        ;;
5093
4585
      chorus*)
5094
4586
        case $cc_basename in
5095
4587
        cxch68*)
5096
4588
          # Green Hills C++ Compiler
5097
 
          # _LT_AC_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"
 
4589
          # _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"
5098
4590
          ;;
5099
4591
        esac
5100
4592
        ;;
5101
 
       darwin*)
5102
 
         # PIC is the default on this platform
5103
 
         # Common symbols not allowed in MH_DYLIB files
5104
 
         case $cc_basename in
5105
 
           xlc*)
5106
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5107
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108
 
           ;;
5109
 
         esac
5110
 
       ;;
5111
4593
      dgux*)
5112
4594
        case $cc_basename in
5113
4595
          ec++*)
5114
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4596
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5115
4597
            ;;
5116
4598
          ghcx*)
5117
4599
            # Green Hills C++ Compiler
5118
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4600
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5119
4601
            ;;
5120
4602
          *)
5121
4603
            ;;
5127
4609
      hpux9* | hpux10* | hpux11*)
5128
4610
        case $cc_basename in
5129
4611
          CC*)
5130
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4612
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4613
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5132
4614
            if test "$host_cpu" != ia64; then
5133
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4615
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5134
4616
            fi
5135
4617
            ;;
5136
4618
          aCC*)
5137
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5138
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4619
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4620
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5139
4621
            case $host_cpu in
5140
4622
            hppa*64*|ia64*)
5141
4623
              # +Z the default
5142
4624
              ;;
5143
4625
            *)
5144
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4626
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5145
4627
              ;;
5146
4628
            esac
5147
4629
            ;;
5156
4638
      irix5* | irix6* | nonstopux*)
5157
4639
        case $cc_basename in
5158
4640
          CC*)
5159
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5160
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4641
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4642
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5161
4643
            # CC pic flag -KPIC is the default.
5162
4644
            ;;
5163
4645
          *)
5168
4650
        case $cc_basename in
5169
4651
          KCC*)
5170
4652
            # KAI C++ Compiler
5171
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5172
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4653
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4654
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5173
4655
            ;;
5174
 
          icpc* | ecpc*)
 
4656
          icpc* | ecpc* )
5175
4657
            # Intel C++
5176
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5177
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5178
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4658
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4659
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4660
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5179
4661
            ;;
5180
4662
          pgCC* | pgcpp*)
5181
 
            # Portland Group C++ compiler.
5182
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5183
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5184
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4663
            # Portland Group C++ compiler
 
4664
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4665
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4666
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5185
4667
            ;;
5186
4668
          cxx*)
5187
4669
            # Compaq C++
5188
4670
            # Make sure the PIC flag is empty.  It appears that all Alpha
5189
4671
            # Linux and Compaq Tru64 Unix objects are PIC.
5190
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5191
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4672
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4673
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4674
            ;;
 
4675
          xlc* | xlC*)
 
4676
            # IBM XL 8.0 on PPC
 
4677
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4678
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4679
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5192
4680
            ;;
5193
4681
          *)
5194
4682
            case `$CC -V 2>&1 | sed 5q` in
5195
4683
            *Sun\ C*)
5196
4684
              # Sun C++ 5.9
5197
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5198
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5199
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4685
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4686
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4687
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5200
4688
              ;;
5201
4689
            esac
5202
4690
            ;;
5209
4697
      mvs*)
5210
4698
        case $cc_basename in
5211
4699
          cxx*)
5212
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4700
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5213
4701
            ;;
5214
4702
          *)
5215
4703
            ;;
5216
4704
        esac
5217
4705
        ;;
5218
 
      netbsd* | netbsdelf*-gnu)
 
4706
      netbsd*)
5219
4707
        ;;
 
4708
      *qnx* | *nto*)
 
4709
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4710
        # it will coredump.
 
4711
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4712
        ;;
5220
4713
      osf3* | osf4* | osf5*)
5221
4714
        case $cc_basename in
5222
4715
          KCC*)
5223
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4716
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5224
4717
            ;;
5225
4718
          RCC*)
5226
4719
            # Rational C++ 2.4.1
5227
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4720
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5228
4721
            ;;
5229
4722
          cxx*)
5230
4723
            # Digital/Compaq C++
5231
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4724
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5232
4725
            # Make sure the PIC flag is empty.  It appears that all Alpha
5233
4726
            # Linux and Compaq Tru64 Unix objects are PIC.
5234
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5235
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4727
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4728
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5236
4729
            ;;
5237
4730
          *)
5238
4731
            ;;
5244
4737
        case $cc_basename in
5245
4738
          CC*)
5246
4739
            # Sun C++ 4.2, 5.x and Centerline C++
5247
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5248
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5249
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4740
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4741
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4742
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5250
4743
            ;;
5251
4744
          gcx*)
5252
4745
            # Green Hills C++ Compiler
5253
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4746
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5254
4747
            ;;
5255
4748
          *)
5256
4749
            ;;
5260
4753
        case $cc_basename in
5261
4754
          CC*)
5262
4755
            # Sun C++ 4.x
5263
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5264
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4756
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4757
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265
4758
            ;;
5266
4759
          lcc*)
5267
4760
            # Lucid
5268
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4761
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5269
4762
            ;;
5270
4763
          *)
5271
4764
            ;;
5272
4765
        esac
5273
4766
        ;;
 
4767
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4768
        case $cc_basename in
 
4769
          CC*)
 
4770
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4771
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4772
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4773
            ;;
 
4774
        esac
 
4775
        ;;
5274
4776
      tandem*)
5275
4777
        case $cc_basename in
5276
4778
          NCC*)
5277
4779
            # NonStop-UX NCC 3.20
5278
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4780
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5279
4781
            ;;
5280
4782
          *)
5281
4783
            ;;
5282
4784
        esac
5283
4785
        ;;
5284
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5285
 
        case $cc_basename in
5286
 
          CC*)
5287
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5288
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5289
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5290
 
            ;;
5291
 
        esac
5292
 
        ;;
5293
4786
      vxworks*)
5294
4787
        ;;
5295
4788
      *)
5296
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4789
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5297
4790
        ;;
5298
4791
    esac
5299
4792
  fi
5300
4793
],
5301
4794
[
5302
4795
  if test "$GCC" = yes; then
5303
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5304
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4796
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4797
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5305
4798
 
5306
4799
    case $host_os in
5307
4800
      aix*)
5308
4801
      # All AIX code is PIC.
5309
4802
      if test "$host_cpu" = ia64; then
5310
4803
        # AIX 5 now supports IA64 processor
5311
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4804
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5312
4805
      fi
5313
4806
      ;;
5314
4807
 
5315
4808
    amigaos*)
5316
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5317
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5318
 
      # like `-m68040'.
5319
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4809
      case $host_cpu in
 
4810
      powerpc)
 
4811
            # see comment about AmigaOS4 .so support
 
4812
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4813
        ;;
 
4814
      m68k)
 
4815
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4816
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4817
            # like `-m68040'.
 
4818
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4819
        ;;
 
4820
      esac
5320
4821
      ;;
5321
4822
 
5322
4823
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5329
4830
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5330
4831
      # (--disable-auto-import) libraries
5331
4832
      m4_if([$1], [GCJ], [],
5332
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4833
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5333
4834
      ;;
5334
4835
 
5335
4836
    darwin* | rhapsody*)
5336
4837
      # PIC is the default on this platform
5337
4838
      # Common symbols not allowed in MH_DYLIB files
5338
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4839
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4840
      ;;
 
4841
 
 
4842
    hpux*)
 
4843
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
4844
      # not for PA HP-UX.
 
4845
      case $host_cpu in
 
4846
      hppa*64*|ia64*)
 
4847
        # +Z the default
 
4848
        ;;
 
4849
      *)
 
4850
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4851
        ;;
 
4852
      esac
5339
4853
      ;;
5340
4854
 
5341
4855
    interix[[3-9]]*)
5346
4860
    msdosdjgpp*)
5347
4861
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5348
4862
      # on systems that don't support them.
5349
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4863
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5350
4864
      enable_shared=no
5351
4865
      ;;
5352
4866
 
 
4867
    *nto* | *qnx*)
 
4868
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4869
      # it will coredump.
 
4870
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4871
      ;;
 
4872
 
5353
4873
    sysv4*MP*)
5354
4874
      if test -d /usr/nec; then
5355
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4875
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5356
4876
      fi
5357
4877
      ;;
5358
4878
 
5359
 
    hpux*)
5360
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5361
 
      # not for PA HP-UX.
5362
 
      case $host_cpu in
5363
 
      hppa*64*|ia64*)
5364
 
        # +Z the default
5365
 
        ;;
5366
 
      *)
5367
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5368
 
        ;;
5369
 
      esac
5370
 
      ;;
5371
 
 
5372
4879
    *)
5373
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4880
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5374
4881
      ;;
5375
4882
    esac
5376
4883
  else
5377
4884
    # PORTME Check for flag to pass linker flags through the system compiler.
5378
4885
    case $host_os in
5379
4886
    aix*)
5380
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4887
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5381
4888
      if test "$host_cpu" = ia64; then
5382
4889
        # AIX 5 now supports IA64 processor
5383
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4890
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5384
4891
      else
5385
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4892
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5386
4893
      fi
5387
4894
      ;;
5388
 
      darwin*)
5389
 
        # PIC is the default on this platform
5390
 
        # Common symbols not allowed in MH_DYLIB files
5391
 
       case $cc_basename in
5392
 
         xlc*)
5393
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5394
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5395
 
         ;;
5396
 
       esac
5397
 
       ;;
5398
4895
 
5399
4896
    mingw* | cygwin* | pw32* | os2*)
5400
4897
      # This hack is so that the source file can tell whether it is being
5401
4898
      # built for inclusion in a dll (and should export symbols for example).
5402
4899
      m4_if([$1], [GCJ], [],
5403
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4900
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5404
4901
      ;;
5405
4902
 
5406
4903
    hpux9* | hpux10* | hpux11*)
5407
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4904
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5408
4905
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5409
4906
      # not for PA HP-UX.
5410
4907
      case $host_cpu in
5412
4909
        # +Z the default
5413
4910
        ;;
5414
4911
      *)
5415
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4912
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5416
4913
        ;;
5417
4914
      esac
5418
4915
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5419
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4916
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5420
4917
      ;;
5421
4918
 
5422
4919
    irix5* | irix6* | nonstopux*)
5423
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4920
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5424
4921
      # PIC (with -KPIC) is the default.
5425
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5426
 
      ;;
5427
 
 
5428
 
    newsos6)
5429
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5430
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4922
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5431
4923
      ;;
5432
4924
 
5433
4925
    linux* | k*bsd*-gnu)
5434
4926
      case $cc_basename in
5435
 
      icc* | ecc*)
5436
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5438
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4927
      icc* | ecc* | ifort*)
 
4928
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4929
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4930
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5439
4931
        ;;
5440
4932
      pgcc* | pgf77* | pgf90* | pgf95*)
5441
4933
        # Portland Group compilers (*not* the Pentium gcc compiler,
5442
4934
        # which looks to be a dead project)
5443
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5445
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4935
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4936
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4937
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5446
4938
        ;;
5447
4939
      ccc*)
5448
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4940
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449
4941
        # All Alpha code is PIC.
5450
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4942
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5451
4943
        ;;
 
4944
      xl*)
 
4945
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4946
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4947
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4948
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4949
        ;;
5452
4950
      *)
5453
 
        case `$CC -V 2>&1 | sed 5q` in
 
4951
        case `$CC -V 2>&1 | sed 5q` in
5454
4952
        *Sun\ C*)
5455
4953
          # Sun C 5.9
5456
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5457
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5458
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4954
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4955
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4956
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5459
4957
          ;;
5460
4958
        *Sun\ F*)
5461
4959
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5462
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4960
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4961
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4962
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5465
4963
          ;;
5466
4964
        esac
5467
4965
        ;;
5468
4966
      esac
5469
4967
      ;;
5470
4968
 
 
4969
    newsos6)
 
4970
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4971
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4972
      ;;
 
4973
 
 
4974
    *nto* | *qnx*)
 
4975
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4976
      # it will coredump.
 
4977
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4978
      ;;
 
4979
 
5471
4980
    osf3* | osf4* | osf5*)
5472
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4981
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5473
4982
      # All OSF/1 code is PIC.
5474
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4983
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5475
4984
      ;;
5476
4985
 
5477
4986
    rdos*)
5478
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4987
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5479
4988
      ;;
5480
4989
 
5481
4990
    solaris*)
5482
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5483
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4991
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4992
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484
4993
      case $cc_basename in
5485
4994
      f77* | f90* | f95*)
5486
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4995
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5487
4996
      *)
5488
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4997
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5489
4998
      esac
5490
4999
      ;;
5491
5000
 
5492
5001
    sunos4*)
5493
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5494
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5495
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5002
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5003
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5004
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5496
5005
      ;;
5497
5006
 
5498
5007
    sysv4 | sysv4.2uw2* | sysv4.3*)
5499
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5500
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5501
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5008
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5009
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5010
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5502
5011
      ;;
5503
5012
 
5504
5013
    sysv4*MP*)
5505
5014
      if test -d /usr/nec ;then
5506
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5507
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5015
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5016
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5508
5017
      fi
5509
5018
      ;;
5510
5019
 
5511
5020
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5512
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5513
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5021
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5022
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5023
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5515
5024
      ;;
5516
5025
 
5517
5026
    unicos*)
5518
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5519
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5027
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5028
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5520
5029
      ;;
5521
5030
 
5522
5031
    uts4*)
5523
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5524
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5032
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5033
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5525
5034
      ;;
5526
5035
 
5527
5036
    *)
5528
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5037
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5529
5038
      ;;
5530
5039
    esac
5531
5040
  fi
5532
5041
])
5533
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5042
case $host_os in
 
5043
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5044
  *djgpp*)
 
5045
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5046
    ;;
 
5047
  *)
 
5048
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5049
    ;;
 
5050
esac
 
5051
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5052
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5053
        [How to pass a linker flag through the compiler])
5534
5054
 
5535
5055
#
5536
5056
# Check to make sure the PIC flag actually works.
5537
5057
#
5538
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5539
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5540
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5541
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5542
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5058
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5059
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5060
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5061
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5062
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5543
5063
     "" | " "*) ;;
5544
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5064
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5545
5065
     esac],
5546
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5547
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5066
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5067
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5548
5068
fi
5549
 
case $host_os in
5550
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5551
 
  *djgpp*)
5552
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5553
 
    ;;
5554
 
  *)
5555
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5556
 
    ;;
5557
 
esac
 
5069
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5070
        [Additional compiler flags for building library objects])
5558
5071
 
5559
5072
#
5560
5073
# Check to make sure the static flag actually works.
5561
5074
#
5562
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5563
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5564
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5075
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5076
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5077
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5565
5078
  $lt_tmp_static_flag,
5566
5079
  [],
5567
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5568
 
])
5569
 
 
5570
 
 
5571
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5572
 
# ------------------------------------
 
5080
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5081
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5082
        [Compiler flag to prevent dynamic linking])
 
5083
])# _LT_COMPILER_PIC
 
5084
 
 
5085
 
 
5086
# _LT_LINKER_SHLIBS([TAGNAME])
 
5087
# ----------------------------
5573
5088
# See if the linker supports building shared libraries.
5574
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5575
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5089
m4_defun([_LT_LINKER_SHLIBS],
 
5090
[AC_REQUIRE([LT_PATH_LD])dnl
 
5091
AC_REQUIRE([LT_PATH_NM])dnl
 
5092
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5093
m4_require([_LT_DECL_EGREP])dnl
 
5094
m4_require([_LT_DECL_SED])dnl
 
5095
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5096
m4_require([_LT_TAG_COMPILER])dnl
5576
5097
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5577
 
ifelse([$1],[CXX],[
5578
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5098
m4_if([$1], [CXX], [
 
5099
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5579
5100
  case $host_os in
5580
5101
  aix[[4-9]]*)
5581
5102
    # If we're using GNU nm, then we don't want the "-C" option.
5582
5103
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5583
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5584
 
      _LT_AC_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'
 
5104
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5105
      _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'
5585
5106
    else
5586
 
      _LT_AC_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'
 
5107
      _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'
5587
5108
    fi
5588
5109
    ;;
5589
5110
  pw32*)
5590
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5111
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5591
5112
  ;;
5592
5113
  cygwin* | mingw*)
5593
 
    _LT_AC_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'
5594
 
  ;;
5595
 
  linux* | k*bsd*-gnu)
5596
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5114
    _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'
5597
5115
  ;;
5598
5116
  *)
5599
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5117
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600
5118
  ;;
5601
5119
  esac
5602
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5603
 
],[
 
5120
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5121
], [
5604
5122
  runpath_var=
5605
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5606
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5607
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
5608
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5609
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5610
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5611
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5612
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5613
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5614
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5615
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5616
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5617
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
5618
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5619
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5620
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5621
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5622
 
  _LT_AC_TAGVAR(module_cmds, $1)=
5623
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5624
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5625
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5123
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5124
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5125
  _LT_TAGVAR(archive_cmds, $1)=
 
5126
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5127
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5128
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5129
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5130
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5131
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5132
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5133
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5134
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5135
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5136
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5137
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5138
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5139
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5140
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5141
  _LT_TAGVAR(module_cmds, $1)=
 
5142
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5143
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5144
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5145
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5146
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5626
5147
  # include_expsyms should be a list of space-separated symbols to be *always*
5627
5148
  # included in the symbol list
5628
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5149
  _LT_TAGVAR(include_expsyms, $1)=
5629
5150
  # exclude_expsyms can be an extended regexp of symbols to exclude
5630
5151
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5631
5152
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5632
5153
  # as well as any symbol that contains `d'.
5633
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5154
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5634
5155
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5635
5156
  # platforms (ab)use it in PIC code, but their linkers get confused if
5636
5157
  # the symbol is explicitly referenced.  Since portable code cannot
5639
5160
  # Exclude shared library initialization/finalization symbols.
5640
5161
dnl Note also adjust exclude_expsyms for C++ above.
5641
5162
  extract_expsyms_cmds=
5642
 
  # Just being paranoid about ensuring that cc_basename is set.
5643
 
  _LT_CC_BASENAME([$compiler])
 
5163
 
5644
5164
  case $host_os in
5645
5165
  cygwin* | mingw* | pw32*)
5646
5166
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5659
5179
    ;;
5660
5180
  esac
5661
5181
 
5662
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5182
  _LT_TAGVAR(ld_shlibs, $1)=yes
5663
5183
  if test "$with_gnu_ld" = yes; then
5664
5184
    # If archive_cmds runs LD, not CC, wlarc should be empty
5665
5185
    wlarc='${wl}'
5668
5188
    # are reset later if shared libraries are not supported. Putting them
5669
5189
    # here allows them to be overridden if necessary.
5670
5190
    runpath_var=LD_RUN_PATH
5671
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5672
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5191
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5192
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5673
5193
    # ancient GNU ld didn't support --whole-archive et. al.
5674
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5675
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5676
 
      else
5677
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5194
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5195
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5196
    else
 
5197
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5678
5198
    fi
5679
5199
    supports_anon_versioning=no
5680
 
    case `$LD -v 2>/dev/null` in
 
5200
    case `$LD -v 2>&1` in
5681
5201
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5682
5202
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5683
5203
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5690
5210
    aix[[3-9]]*)
5691
5211
      # On AIX/PPC, the GNU linker is very broken
5692
5212
      if test "$host_cpu" != ia64; then
5693
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5694
 
        cat <<EOF 1>&2
 
5213
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5214
        cat <<_LT_EOF 1>&2
5695
5215
 
5696
5216
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5697
5217
*** to be unable to reliably create shared libraries on AIX.
5699
5219
*** really care for shared libraries, you may want to modify your PATH
5700
5220
*** so that a non-GNU linker is found, and then restart.
5701
5221
 
5702
 
EOF
 
5222
_LT_EOF
5703
5223
      fi
5704
5224
      ;;
5705
5225
 
5706
5226
    amigaos*)
5707
 
      _LT_AC_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)'
5708
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5709
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5710
 
 
5711
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5712
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
5713
 
      # to version 4, is to share data among multiple programs linked
5714
 
      # with the same dynamic library.  Since this doesn't match the
5715
 
      # behavior of shared libraries on other platforms, we can't use
5716
 
      # them.
5717
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5227
      case $host_cpu in
 
5228
      powerpc)
 
5229
            # see comment about AmigaOS4 .so support
 
5230
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5231
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5232
        ;;
 
5233
      m68k)
 
5234
            _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)'
 
5235
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5236
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5237
        ;;
 
5238
      esac
5718
5239
      ;;
5719
5240
 
5720
5241
    beos*)
5721
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5722
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5242
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5243
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5723
5244
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5724
5245
        # support --undefined.  This deserves some investigation.  FIXME
5725
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5246
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5726
5247
      else
5727
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5248
        _LT_TAGVAR(ld_shlibs, $1)=no
5728
5249
      fi
5729
5250
      ;;
5730
5251
 
5731
5252
    cygwin* | mingw* | pw32*)
5732
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5253
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5733
5254
      # as there is no search path for DLLs.
5734
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5735
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5736
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5737
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5738
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5255
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5256
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5257
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5258
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5259
      _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'
5739
5260
 
5740
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5741
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5261
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5262
        _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'
5742
5263
        # If the export-symbols file already is a .def file (1st line
5743
5264
        # is EXPORTS), use it as is; otherwise, prepend...
5744
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5265
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5745
5266
          cp $export_symbols $output_objdir/$soname.def;
5746
5267
        else
5747
5268
          echo EXPORTS > $output_objdir/$soname.def;
5749
5270
        fi~
5750
5271
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5751
5272
      else
5752
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5273
        _LT_TAGVAR(ld_shlibs, $1)=no
5753
5274
      fi
5754
5275
      ;;
5755
5276
 
5756
5277
    interix[[3-9]]*)
5757
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5278
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5279
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5280
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5281
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761
5282
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762
5283
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5763
5284
      # default) and relocated if they conflict, which is a slow very memory
5764
5285
      # consuming and fragmenting process.  To avoid this, we pick a random,
5765
5286
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766
5287
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5767
 
      _LT_AC_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'
5768
 
      _LT_AC_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'
 
5288
      _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'
 
5289
      _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'
5769
5290
      ;;
5770
5291
 
5771
 
    gnu* | linux* | k*bsd*-gnu)
5772
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5292
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5293
      tmp_diet=no
 
5294
      if test "$host_os" = linux-dietlibc; then
 
5295
        case $cc_basename in
 
5296
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5297
        esac
 
5298
      fi
 
5299
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5300
         && test "$tmp_diet" = no
 
5301
      then
5773
5302
        tmp_addflag=
 
5303
        tmp_sharedflag='-shared'
5774
5304
        case $cc_basename,$host_cpu in
5775
 
        pgcc*)                          # Portland Group C compiler
5776
 
          _LT_AC_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'
 
5305
        pgcc*)                          # Portland Group C compiler
 
5306
          _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'
5777
5307
          tmp_addflag=' $pic_flag'
5778
5308
          ;;
5779
5309
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5780
 
          _LT_AC_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'
 
5310
          _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'
5781
5311
          tmp_addflag=' $pic_flag -Mnomain' ;;
5782
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5312
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5783
5313
          tmp_addflag=' -i_dynamic' ;;
5784
5314
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5785
5315
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5786
5316
        ifc* | ifort*)                  # Intel Fortran compiler
5787
5317
          tmp_addflag=' -nofor_main' ;;
 
5318
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5319
          tmp_sharedflag='-qmkshrobj'
 
5320
          tmp_addflag= ;;
5788
5321
        esac
5789
5322
        case `$CC -V 2>&1 | sed 5q` in
5790
5323
        *Sun\ C*)                       # Sun C 5.9
5791
 
          _LT_AC_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'
 
5324
          _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'
 
5325
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5792
5326
          tmp_sharedflag='-G' ;;
5793
5327
        *Sun\ F*)                       # Sun Fortran 8.3
5794
5328
          tmp_sharedflag='-G' ;;
5795
 
        *)
5796
 
          tmp_sharedflag='-shared' ;;
5797
 
        esac
5798
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799
 
 
5800
 
        if test $supports_anon_versioning = yes; then
5801
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5802
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5803
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5804
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5805
 
        fi
5806
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5329
        esac
 
5330
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5331
 
 
5332
        if test "x$supports_anon_versioning" = xyes; then
 
5333
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5334
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5335
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5336
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5337
        fi
 
5338
 
 
5339
        case $cc_basename in
 
5340
        xlf*)
 
5341
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5342
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5343
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5344
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5345
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5346
          if test "x$supports_anon_versioning" = xyes; then
 
5347
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5348
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5349
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5350
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5351
          fi
 
5352
          ;;
 
5353
        esac
5807
5354
      else
5808
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5355
        _LT_TAGVAR(ld_shlibs, $1)=no
5809
5356
      fi
5810
5357
      ;;
5811
5358
 
5812
 
    netbsd* | netbsdelf*-gnu)
5813
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5814
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5359
    netbsd*)
 
5360
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5361
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5815
5362
        wlarc=
5816
5363
      else
5817
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5818
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5364
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5365
        _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'
5819
5366
      fi
5820
5367
      ;;
5821
5368
 
5822
5369
    solaris*)
5823
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5824
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5825
 
        cat <<EOF 1>&2
 
5370
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5371
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5372
        cat <<_LT_EOF 1>&2
5826
5373
 
5827
5374
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5828
5375
*** create shared libraries on Solaris systems.  Therefore, libtool
5831
5378
*** your PATH or compiler configuration so that the native linker is
5832
5379
*** used, and then restart.
5833
5380
 
5834
 
EOF
5835
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5836
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5837
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5381
_LT_EOF
 
5382
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5383
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5384
        _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'
5838
5385
      else
5839
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5386
        _LT_TAGVAR(ld_shlibs, $1)=no
5840
5387
      fi
5841
5388
      ;;
5842
5389
 
5843
5390
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5844
5391
      case `$LD -v 2>&1` in
5845
5392
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5846
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5393
        _LT_TAGVAR(ld_shlibs, $1)=no
5847
5394
        cat <<_LT_EOF 1>&2
5848
5395
 
5849
5396
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5856
5403
_LT_EOF
5857
5404
        ;;
5858
5405
        *)
5859
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5860
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5861
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5862
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5406
          # For security reasons, it is highly recommended that you always
 
5407
          # use absolute paths for naming shared libraries, and exclude the
 
5408
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5409
          # requires that you compile everything twice, which is a pain.
 
5410
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5411
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5412
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5413
            _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'
5863
5414
          else
5864
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5415
            _LT_TAGVAR(ld_shlibs, $1)=no
5865
5416
          fi
5866
5417
        ;;
5867
5418
      esac
5868
5419
      ;;
5869
5420
 
5870
5421
    sunos4*)
5871
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5422
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5872
5423
      wlarc=
5873
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5874
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5424
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5425
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5875
5426
      ;;
5876
5427
 
5877
5428
    *)
5878
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5879
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5880
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5429
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5430
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5431
        _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'
5881
5432
      else
5882
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5433
        _LT_TAGVAR(ld_shlibs, $1)=no
5883
5434
      fi
5884
5435
      ;;
5885
5436
    esac
5886
5437
 
5887
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5438
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5888
5439
      runpath_var=
5889
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5890
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5891
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5440
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5441
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5442
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5892
5443
    fi
5893
5444
  else
5894
5445
    # PORTME fill in a description of your system's linker (not GNU ld)
5895
5446
    case $host_os in
5896
5447
    aix3*)
5897
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5898
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5899
 
      _LT_AC_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'
 
5448
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5449
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5450
      _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'
5900
5451
      # Note: this linker hardcodes the directories in LIBPATH if there
5901
5452
      # are no directories specified by -L.
5902
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5453
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5903
5454
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5904
5455
        # Neither direct hardcoding nor static linking is supported with a
5905
5456
        # broken collect2.
5906
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5457
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5907
5458
      fi
5908
5459
      ;;
5909
5460
 
5917
5468
      else
5918
5469
        # If we're using GNU nm, then we don't want the "-C" option.
5919
5470
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5920
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5921
 
          _LT_AC_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'
 
5471
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5472
          _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'
5922
5473
        else
5923
 
          _LT_AC_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'
 
5474
          _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'
5924
5475
        fi
5925
5476
        aix_use_runtimelinking=no
5926
5477
 
5929
5480
        # need to do runtime linking.
5930
5481
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5931
5482
          for ld_flag in $LDFLAGS; do
5932
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5933
 
            aix_use_runtimelinking=yes
5934
 
            break
5935
 
          fi
 
5483
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5484
            aix_use_runtimelinking=yes
 
5485
            break
 
5486
          fi
5936
5487
          done
5937
5488
          ;;
5938
5489
        esac
5947
5498
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5948
5499
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5949
5500
 
5950
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
5951
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5952
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5953
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5501
      _LT_TAGVAR(archive_cmds, $1)=''
 
5502
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5503
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5504
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5505
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5506
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5954
5507
 
5955
5508
      if test "$GCC" = yes; then
5956
5509
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5957
5510
        # We only want to do this on AIX 4.2 and lower, the check
5958
5511
        # below for broken collect2 doesn't work under 4.3+
5959
5512
          collect2name=`${CC} -print-prog-name=collect2`
5960
 
          if test -f "$collect2name" && \
5961
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5513
          if test -f "$collect2name" &&
 
5514
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5962
5515
          then
5963
 
          # We have reworked collect2
5964
 
          :
 
5516
          # We have reworked collect2
 
5517
          :
5965
5518
          else
5966
 
          # We have old collect2
5967
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5968
 
          # It fails to find uninstalled libraries when the uninstalled
5969
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5970
 
          # to unsupported forces relinking
5971
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5972
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5973
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5519
          # We have old collect2
 
5520
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5521
          # It fails to find uninstalled libraries when the uninstalled
 
5522
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5523
          # to unsupported forces relinking
 
5524
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5525
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5526
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
5974
5527
          fi
5975
5528
          ;;
5976
5529
        esac
5981
5534
      else
5982
5535
        # not using gcc
5983
5536
        if test "$host_cpu" = ia64; then
5984
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5985
 
        # chokes on -Wl,-G. The following line is correct:
 
5537
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5538
        # chokes on -Wl,-G. The following line is correct:
5986
5539
          shared_flag='-G'
5987
5540
        else
5988
5541
          if test "$aix_use_runtimelinking" = yes; then
5995
5548
 
5996
5549
      # It seems that -bexpall does not export symbols beginning with
5997
5550
      # underscore (_), so it is better to generate a list of symbols to export.
5998
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5551
      _LT_TAGVAR(always_export_symbols, $1)=yes
5999
5552
      if test "$aix_use_runtimelinking" = yes; then
6000
5553
        # Warning - without using the other runtime loading flags (-brtl),
6001
5554
        # -berok will link without error, but may produce a broken library.
6002
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6003
 
       # Determine the default libpath from the value encoded in an empty executable.
6004
 
       _LT_AC_SYS_LIBPATH_AIX
6005
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6006
 
        _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6007
 
       else
 
5555
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5556
        # Determine the default libpath from the value encoded in an
 
5557
        # empty executable.
 
5558
        _LT_SYS_MODULE_PATH_AIX
 
5559
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5560
        _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"
 
5561
      else
6008
5562
        if test "$host_cpu" = ia64; then
6009
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6010
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6011
 
          _LT_AC_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"
 
5563
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5564
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5565
          _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"
6012
5566
        else
6013
 
         # Determine the default libpath from the value encoded in an empty executable.
6014
 
         _LT_AC_SYS_LIBPATH_AIX
6015
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5567
         # Determine the default libpath from the value encoded in an
 
5568
         # empty executable.
 
5569
         _LT_SYS_MODULE_PATH_AIX
 
5570
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6016
5571
          # Warning - without using the other run time loading flags,
6017
5572
          # -berok will link without error, but may produce a broken library.
6018
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6019
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5573
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5574
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6020
5575
          # Exported symbols can be pulled into shared objects from archives
6021
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6022
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5576
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5577
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6023
5578
          # This is similar to how AIX traditionally builds its shared libraries.
6024
 
          _LT_AC_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'
 
5579
          _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'
6025
5580
        fi
6026
5581
      fi
6027
5582
      ;;
6028
5583
 
6029
5584
    amigaos*)
6030
 
      _LT_AC_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)'
6031
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6032
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6033
 
      # see comment about different semantics on the GNU ld section
6034
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5585
      case $host_cpu in
 
5586
      powerpc)
 
5587
            # see comment about AmigaOS4 .so support
 
5588
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5589
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5590
        ;;
 
5591
      m68k)
 
5592
            _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)'
 
5593
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5594
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5595
        ;;
 
5596
      esac
6035
5597
      ;;
6036
5598
 
6037
5599
    bsdi[[45]]*)
6038
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5600
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6039
5601
      ;;
6040
5602
 
6041
5603
    cygwin* | mingw* | pw32*)
6043
5605
      # Microsoft Visual C++.
6044
5606
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6045
5607
      # no search path for DLLs.
6046
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6047
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5608
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5609
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6048
5610
      # Tell ltmain to make .lib files, not .a files.
6049
5611
      libext=lib
6050
5612
      # Tell ltmain to make .dll files, not .so files.
6051
5613
      shrext_cmds=".dll"
6052
5614
      # FIXME: Setting linknames here is a bad hack.
6053
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5615
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6054
5616
      # The linker will automatically build a .lib file if we build a DLL.
6055
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5617
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6056
5618
      # FIXME: Should let the user specify the lib program.
6057
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6058
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6059
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5619
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5620
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5621
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6060
5622
      ;;
6061
5623
 
6062
5624
    darwin* | rhapsody*)
6063
 
      case $host_os in
6064
 
        rhapsody* | darwin1.[[012]])
6065
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6066
 
         ;;
6067
 
       *) # Darwin 1.3 on
6068
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6069
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6070
 
         else
6071
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6072
 
             10.[[012]])
6073
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6074
 
               ;;
6075
 
             10.*)
6076
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6077
 
               ;;
6078
 
           esac
6079
 
         fi
6080
 
         ;;
6081
 
      esac
6082
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6083
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6084
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6085
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6086
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6087
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6088
 
    if test "$GCC" = yes ; then
6089
 
        output_verbose_link_cmd='echo'
6090
 
        _LT_AC_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}"
6091
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6092
 
        _LT_AC_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}"
6093
 
        _LT_AC_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}"
6094
 
    else
6095
 
      case $cc_basename in
6096
 
        xlc*)
6097
 
         output_verbose_link_cmd='echo'
6098
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6099
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6100
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6101
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6102
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6103
 
          ;;
6104
 
       *)
6105
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6106
 
          ;;
6107
 
      esac
6108
 
    fi
 
5625
      _LT_DARWIN_LINKER_FEATURES($1)
6109
5626
      ;;
6110
5627
 
6111
5628
    dgux*)
6112
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6113
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6114
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5629
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5630
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5631
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6115
5632
      ;;
6116
5633
 
6117
5634
    freebsd1*)
6118
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5635
      _LT_TAGVAR(ld_shlibs, $1)=no
6119
5636
      ;;
6120
5637
 
6121
5638
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6123
5640
    # does not break anything, and helps significantly (at the cost of a little
6124
5641
    # extra space).
6125
5642
    freebsd2.2*)
6126
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6127
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6128
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6129
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5643
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5644
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5645
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5646
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6130
5647
      ;;
6131
5648
 
6132
5649
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6133
5650
    freebsd2*)
6134
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6135
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6136
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6137
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5651
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5652
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5653
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5654
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6138
5655
      ;;
6139
5656
 
6140
5657
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6141
5658
    freebsd* | dragonfly*)
6142
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6143
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6144
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6145
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5659
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5660
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5661
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5662
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6146
5663
      ;;
6147
5664
 
6148
5665
    hpux9*)
6149
5666
      if test "$GCC" = yes; then
6150
 
        _LT_AC_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'
 
5667
        _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'
6151
5668
      else
6152
 
        _LT_AC_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'
 
5669
        _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'
6153
5670
      fi
6154
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6155
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6156
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5671
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5672
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5673
      _LT_TAGVAR(hardcode_direct, $1)=yes
6157
5674
 
6158
5675
      # hardcode_minus_L: Not really in the search PATH,
6159
5676
      # but as the default location of the library.
6160
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6161
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5677
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5678
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6162
5679
      ;;
6163
5680
 
6164
5681
    hpux10*)
6165
5682
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5683
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6167
5684
      else
6168
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5685
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6169
5686
      fi
6170
5687
      if test "$with_gnu_ld" = no; then
6171
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6173
 
 
6174
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6175
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6176
 
 
 
5688
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5689
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5690
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5691
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5692
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5693
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6177
5694
        # hardcode_minus_L: Not really in the search PATH,
6178
5695
        # but as the default location of the library.
6179
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5696
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6180
5697
      fi
6181
5698
      ;;
6182
5699
 
6184
5701
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6185
5702
        case $host_cpu in
6186
5703
        hppa*64*)
6187
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5704
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6188
5705
          ;;
6189
5706
        ia64*)
6190
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5707
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6191
5708
          ;;
6192
5709
        *)
6193
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5710
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6194
5711
          ;;
6195
5712
        esac
6196
5713
      else
6197
5714
        case $host_cpu in
6198
5715
        hppa*64*)
6199
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5716
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6200
5717
          ;;
6201
5718
        ia64*)
6202
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5719
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6203
5720
          ;;
6204
5721
        *)
6205
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5722
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6206
5723
          ;;
6207
5724
        esac
6208
5725
      fi
6209
5726
      if test "$with_gnu_ld" = no; then
6210
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6211
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5727
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5728
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6212
5729
 
6213
5730
        case $host_cpu in
6214
5731
        hppa*64*|ia64*)
6215
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6216
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6217
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5732
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5733
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6218
5734
          ;;
6219
5735
        *)
6220
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6221
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5736
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5737
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5738
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6222
5739
 
6223
5740
          # hardcode_minus_L: Not really in the search PATH,
6224
5741
          # but as the default location of the library.
6225
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5742
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6226
5743
          ;;
6227
5744
        esac
6228
5745
      fi
6230
5747
 
6231
5748
    irix5* | irix6* | nonstopux*)
6232
5749
      if test "$GCC" = yes; then
6233
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5750
        _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'
 
5751
        # Try to use the -exported_symbol ld option, if it does not
 
5752
        # work, assume that -exports_file does not work either and
 
5753
        # implicitly export all symbols.
 
5754
        save_LDFLAGS="$LDFLAGS"
 
5755
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5756
        AC_LINK_IFELSE(int foo(void) {},
 
5757
          _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'
 
5758
        )
 
5759
        LDFLAGS="$save_LDFLAGS"
6234
5760
      else
6235
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6236
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5761
        _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'
 
5762
        _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'
6237
5763
      fi
6238
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6239
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6240
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5764
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5765
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5766
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5767
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5768
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6241
5769
      ;;
6242
5770
 
6243
 
    netbsd* | netbsdelf*-gnu)
6244
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6245
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5771
    netbsd*)
 
5772
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5773
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6246
5774
      else
6247
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5775
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6248
5776
      fi
6249
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6250
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6251
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5777
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5778
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5779
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6252
5780
      ;;
6253
5781
 
6254
5782
    newsos6)
6255
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6257
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6258
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6259
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5783
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5784
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5785
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5786
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5787
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5788
      ;;
 
5789
 
 
5790
    *nto* | *qnx*)
6260
5791
      ;;
6261
5792
 
6262
5793
    openbsd*)
6263
5794
      if test -f /usr/libexec/ld.so; then
6264
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5795
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5796
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5797
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5798
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5799
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5800
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5801
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5802
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6271
5803
        else
6272
5804
          case $host_os in
6273
5805
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5806
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5807
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6276
5808
             ;;
6277
5809
           *)
6278
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5810
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5811
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6280
5812
             ;;
6281
5813
          esac
6282
 
        fi
 
5814
        fi
6283
5815
      else
6284
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5816
        _LT_TAGVAR(ld_shlibs, $1)=no
6285
5817
      fi
6286
5818
      ;;
6287
5819
 
6288
5820
    os2*)
6289
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6290
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6291
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6292
 
      _LT_AC_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'
6293
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5821
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5822
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5823
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5824
      _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'
 
5825
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6294
5826
      ;;
6295
5827
 
6296
5828
    osf3*)
6297
5829
      if test "$GCC" = yes; then
6298
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6299
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5830
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5831
        _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'
6300
5832
      else
6301
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6302
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5833
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5834
        _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'
6303
5835
      fi
6304
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6305
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5836
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5837
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5838
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6306
5839
      ;;
6307
5840
 
6308
5841
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6309
5842
      if test "$GCC" = yes; then
6310
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6311
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6312
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5843
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5844
        _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'
 
5845
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6313
5846
      else
6314
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6315
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6316
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6317
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5847
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5848
        _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'
 
5849
        _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~
 
5850
        $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'
6318
5851
 
6319
5852
        # Both c and cxx compiler support -rpath directly
6320
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5853
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6321
5854
      fi
6322
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5855
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5856
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6323
5857
      ;;
6324
5858
 
6325
5859
    solaris*)
6326
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5860
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6327
5861
      if test "$GCC" = yes; then
6328
5862
        wlarc='${wl}'
6329
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6330
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6331
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5863
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5864
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5865
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6332
5866
      else
6333
 
        wlarc=''
6334
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6335
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6336
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5867
        case `$CC -V 2>&1` in
 
5868
        *"Compilers 5.0"*)
 
5869
          wlarc=''
 
5870
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5871
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5872
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5873
          ;;
 
5874
        *)
 
5875
          wlarc='${wl}'
 
5876
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5877
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5878
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5879
          ;;
 
5880
        esac
6337
5881
      fi
6338
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6339
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5882
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5883
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6340
5884
      case $host_os in
6341
5885
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6342
5886
      *)
6343
5887
        # The compiler driver will combine and reorder linker options,
6344
5888
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6345
5889
        # but is careful enough not to reorder.
6346
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5890
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6347
5891
        if test "$GCC" = yes; then
6348
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5892
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6349
5893
        else
6350
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5894
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6351
5895
        fi
6352
5896
        ;;
6353
5897
      esac
6354
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5898
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6355
5899
      ;;
6356
5900
 
6357
5901
    sunos4*)
6358
5902
      if test "x$host_vendor" = xsequent; then
6359
5903
        # Use $CC to link under sequent, because it throws in some extra .o
6360
5904
        # files that make .init and .fini sections work.
6361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5905
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6362
5906
      else
6363
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5907
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6364
5908
      fi
6365
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6366
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6367
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6368
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5909
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5910
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5911
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5912
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6369
5913
      ;;
6370
5914
 
6371
5915
    sysv4)
6372
5916
      case $host_vendor in
6373
5917
        sni)
6374
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6375
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5918
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5919
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6376
5920
        ;;
6377
5921
        siemens)
6378
5922
          ## LD is ld it makes a PLAMLIB
6379
5923
          ## CC just makes a GrossModule.
6380
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6381
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6382
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5924
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5925
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5926
          _LT_TAGVAR(hardcode_direct, $1)=no
6383
5927
        ;;
6384
5928
        motorola)
6385
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6386
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5929
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5930
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6387
5931
        ;;
6388
5932
      esac
6389
5933
      runpath_var='LD_RUN_PATH'
6390
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5934
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6391
5935
      ;;
6392
5936
 
6393
5937
    sysv4.3*)
6394
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6395
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5938
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5939
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5940
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6397
5941
      ;;
6398
5942
 
6399
5943
    sysv4*MP*)
6400
5944
      if test -d /usr/nec; then
6401
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6402
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5945
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5946
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6403
5947
        runpath_var=LD_RUN_PATH
6404
5948
        hardcode_runpath_var=yes
6405
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5949
        _LT_TAGVAR(ld_shlibs, $1)=yes
6406
5950
      fi
6407
5951
      ;;
6408
5952
 
6409
5953
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6410
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6412
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5954
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5955
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5956
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6413
5957
      runpath_var='LD_RUN_PATH'
6414
5958
 
6415
5959
      if test "$GCC" = yes; then
6416
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5960
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5961
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6418
5962
      else
6419
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5963
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5964
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6421
5965
      fi
6422
5966
      ;;
6423
5967
 
6428
5972
      # ever link correctly.  If we're not using GNU ld we use -z text
6429
5973
      # though, which does catch some bad symbols but isn't as heavy-handed
6430
5974
      # as -z defs.
6431
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6432
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6433
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6434
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6436
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6437
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6438
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5975
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5976
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5977
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5978
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5979
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5980
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5981
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5982
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6439
5983
      runpath_var='LD_RUN_PATH'
6440
5984
 
6441
5985
      if test "$GCC" = yes; then
6442
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6443
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5986
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5987
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
5988
      else
6445
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6446
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5989
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5990
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6447
5991
      fi
6448
5992
      ;;
6449
5993
 
6450
5994
    uts4*)
6451
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6452
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6453
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5995
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5996
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5997
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6454
5998
      ;;
6455
5999
 
6456
6000
    *)
6457
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6001
      _LT_TAGVAR(ld_shlibs, $1)=no
6458
6002
      ;;
6459
6003
    esac
 
6004
 
 
6005
    if test x$host_vendor = xsni; then
 
6006
      case $host in
 
6007
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6008
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6009
        ;;
 
6010
      esac
 
6011
    fi
6460
6012
  fi
6461
6013
])
6462
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6463
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6014
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6015
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6016
 
 
6017
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6018
 
 
6019
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6020
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6021
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6022
    [The commands to extract the exported symbol list from a shared archive])
6464
6023
 
6465
6024
#
6466
6025
# Do we need to explicitly link libc?
6467
6026
#
6468
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6027
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6469
6028
x|xyes)
6470
6029
  # Assume -lc should be added
6471
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6030
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6472
6031
 
6473
6032
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6474
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6033
    case $_LT_TAGVAR(archive_cmds, $1) in
6475
6034
    *'~'*)
6476
6035
      # FIXME: we may have to deal with multi-command sequences.
6477
6036
      ;;
6480
6039
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6481
6040
      # to ld, don't add -lc before -lgcc.
6482
6041
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6483
 
      $rm conftest*
 
6042
      $RM conftest*
6484
6043
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6485
6044
 
6486
6045
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6488
6047
        lib=conftest
6489
6048
        libobjs=conftest.$ac_objext
6490
6049
        deplibs=
6491
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6492
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6050
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6051
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6493
6052
        compiler_flags=-v
6494
6053
        linker_flags=-v
6495
6054
        verstring=
6496
6055
        output_objdir=.
6497
6056
        libname=conftest
6498
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6499
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6500
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6057
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6058
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6059
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6501
6060
        then
6502
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6061
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6503
6062
        else
6504
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6063
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6505
6064
        fi
6506
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6065
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6507
6066
      else
6508
6067
        cat conftest.err 1>&5
6509
6068
      fi
6510
 
      $rm conftest*
6511
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6069
      $RM conftest*
 
6070
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6512
6071
      ;;
6513
6072
    esac
6514
6073
  fi
6515
6074
  ;;
6516
6075
esac
6517
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
6518
 
 
6519
 
 
6520
 
# _LT_AC_FILE_LTDLL_C
6521
 
# -------------------
6522
 
# Be careful that the start marker always follows a newline.
6523
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6524
 
# /* ltdll.c starts here */
6525
 
# #define WIN32_LEAN_AND_MEAN
6526
 
# #include <windows.h>
6527
 
# #undef WIN32_LEAN_AND_MEAN
6528
 
# #include <stdio.h>
6529
 
#
6530
 
# #ifndef __CYGWIN__
6531
 
# #  ifdef __CYGWIN32__
6532
 
# #    define __CYGWIN__ __CYGWIN32__
6533
 
# #  endif
6534
 
# #endif
6535
 
#
6536
 
# #ifdef __cplusplus
6537
 
# extern "C" {
6538
 
# #endif
6539
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6540
 
# #ifdef __cplusplus
6541
 
# }
6542
 
# #endif
6543
 
#
6544
 
# #ifdef __CYGWIN__
6545
 
# #include <cygwin/cygwin_dll.h>
6546
 
# DECLARE_CYGWIN_DLL( DllMain );
6547
 
# #endif
6548
 
# HINSTANCE __hDllInstance_base;
6549
 
#
6550
 
# BOOL APIENTRY
6551
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6552
 
# {
6553
 
#   __hDllInstance_base = hInst;
6554
 
#   return TRUE;
6555
 
# }
6556
 
# /* ltdll.c ends here */
6557
 
])# _LT_AC_FILE_LTDLL_C
6558
 
 
6559
 
 
6560
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6076
 
 
6077
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6078
    [Whether or not to add -lc for building shared libraries])
 
6079
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6080
    [enable_shared_with_static_runtimes], [0],
 
6081
    [Whether or not to disallow shared libs when runtime libs are static])
 
6082
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6083
    [Compiler flag to allow reflexive dlopens])
 
6084
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6085
    [Compiler flag to generate shared objects directly from archives])
 
6086
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6087
    [Whether the compiler copes with passing no objects directly])
 
6088
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6089
    [Create an old-style archive from a shared archive])
 
6090
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6091
    [Create a temporary old-style archive to link instead of a shared archive])
 
6092
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6093
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6094
_LT_TAGDECL([], [module_cmds], [2],
 
6095
    [Commands used to build a loadable module if different from building
 
6096
    a shared archive.])
 
6097
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6098
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6099
    [Whether we are building with GNU ld or not])
 
6100
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6101
    [Flag that allows shared libraries with undefined symbols to be built])
 
6102
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6103
    [Flag that enforces no undefined symbols])
 
6104
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6105
    [Flag to hardcode $libdir into a binary during linking.
 
6106
    This must work even if $libdir does not exist])
 
6107
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6108
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6109
    during linking.  This must work even if $libdir does not exist]])
 
6110
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6111
    [Whether we need a single "-rpath" flag with a separated argument])
 
6112
_LT_TAGDECL([], [hardcode_direct], [0],
 
6113
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6114
    DIR into the resulting binary])
 
6115
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6116
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6117
    DIR into the resulting binary and the resulting library dependency is
 
6118
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6119
    library is relocated])
 
6120
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6121
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6122
    into the resulting binary])
 
6123
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6124
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6125
    into the resulting binary])
 
6126
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6127
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6128
    into the library and all subsequent libraries and executables linked
 
6129
    against it])
 
6130
_LT_TAGDECL([], [inherit_rpath], [0],
 
6131
    [Set to yes if linker adds runtime paths of dependent libraries
 
6132
    to runtime path list])
 
6133
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6134
    [Whether libtool must link a program against all its dependency libraries])
 
6135
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6136
    [Fix the shell variable $srcfile for the compiler])
 
6137
_LT_TAGDECL([], [always_export_symbols], [0],
 
6138
    [Set to "yes" if exported symbols are required])
 
6139
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6140
    [The commands to list exported symbols])
 
6141
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6142
    [Symbols that should not be listed in the preloaded symbols])
 
6143
_LT_TAGDECL([], [include_expsyms], [1],
 
6144
    [Symbols that must always be exported])
 
6145
_LT_TAGDECL([], [prelink_cmds], [2],
 
6146
    [Commands necessary for linking programs (against libraries) with templates])
 
6147
_LT_TAGDECL([], [file_list_spec], [1],
 
6148
    [Specify filename containing input files])
 
6149
dnl FIXME: Not yet implemented
 
6150
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6151
dnl    [Compiler flag to generate thread safe objects])
 
6152
])# _LT_LINKER_SHLIBS
 
6153
 
 
6154
 
 
6155
# _LT_LANG_C_CONFIG([TAG])
 
6156
# ------------------------
 
6157
# Ensure that the configuration variables for a C compiler are suitably
 
6158
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6159
# the compiler configuration to `libtool'.
 
6160
m4_defun([_LT_LANG_C_CONFIG],
 
6161
[m4_require([_LT_DECL_EGREP])dnl
 
6162
lt_save_CC="$CC"
 
6163
AC_LANG_PUSH(C)
 
6164
 
 
6165
# Source file extension for C test sources.
 
6166
ac_ext=c
 
6167
 
 
6168
# Object file extension for compiled C test sources.
 
6169
objext=o
 
6170
_LT_TAGVAR(objext, $1)=$objext
 
6171
 
 
6172
# Code to be used in simple compile tests
 
6173
lt_simple_compile_test_code="int some_variable = 0;"
 
6174
 
 
6175
# Code to be used in simple link tests
 
6176
lt_simple_link_test_code='int main(){return(0);}'
 
6177
 
 
6178
_LT_TAG_COMPILER
 
6179
# Save the default compiler, since it gets overwritten when the other
 
6180
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6181
compiler_DEFAULT=$CC
 
6182
 
 
6183
# save warnings/boilerplate of simple test code
 
6184
_LT_COMPILER_BOILERPLATE
 
6185
_LT_LINKER_BOILERPLATE
 
6186
 
 
6187
if test -n "$compiler"; then
 
6188
  _LT_COMPILER_NO_RTTI($1)
 
6189
  _LT_COMPILER_PIC($1)
 
6190
  _LT_COMPILER_C_O($1)
 
6191
  _LT_COMPILER_FILE_LOCKS($1)
 
6192
  _LT_LINKER_SHLIBS($1)
 
6193
  _LT_SYS_DYNAMIC_LINKER($1)
 
6194
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6195
  LT_SYS_DLOPEN_SELF
 
6196
  _LT_CMD_STRIPLIB
 
6197
 
 
6198
  # Report which library types will actually be built
 
6199
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6200
  AC_MSG_RESULT([$can_build_shared])
 
6201
 
 
6202
  AC_MSG_CHECKING([whether to build shared libraries])
 
6203
  test "$can_build_shared" = "no" && enable_shared=no
 
6204
 
 
6205
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6206
  # are all built from PIC.
 
6207
  case $host_os in
 
6208
  aix3*)
 
6209
    test "$enable_shared" = yes && enable_static=no
 
6210
    if test -n "$RANLIB"; then
 
6211
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6212
      postinstall_cmds='$RANLIB $lib'
 
6213
    fi
 
6214
    ;;
 
6215
 
 
6216
  aix[[4-9]]*)
 
6217
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6218
      test "$enable_shared" = yes && enable_static=no
 
6219
    fi
 
6220
    ;;
 
6221
  esac
 
6222
  AC_MSG_RESULT([$enable_shared])
 
6223
 
 
6224
  AC_MSG_CHECKING([whether to build static libraries])
 
6225
  # Make sure either enable_shared or enable_static is yes.
 
6226
  test "$enable_shared" = yes || enable_static=yes
 
6227
  AC_MSG_RESULT([$enable_static])
 
6228
 
 
6229
  _LT_CONFIG($1)
 
6230
fi
 
6231
AC_LANG_POP
 
6232
CC="$lt_save_CC"
 
6233
])# _LT_LANG_C_CONFIG
 
6234
 
 
6235
 
 
6236
# _LT_PROG_CXX
 
6237
# ------------
 
6238
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6239
# compiler, we have our own version here.
 
6240
m4_defun([_LT_PROG_CXX],
 
6241
[
 
6242
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6243
AC_PROG_CXX
 
6244
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6245
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6246
    (test "X$CXX" != "Xg++"))) ; then
 
6247
  AC_PROG_CXXCPP
 
6248
else
 
6249
  _lt_caught_CXX_error=yes
 
6250
fi
 
6251
popdef([AC_MSG_ERROR])
 
6252
])# _LT_PROG_CXX
 
6253
 
 
6254
dnl aclocal-1.4 backwards compatibility:
 
6255
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6256
 
 
6257
 
 
6258
# _LT_LANG_CXX_CONFIG([TAG])
 
6259
# --------------------------
 
6260
# Ensure that the configuration variables for a C++ compiler are suitably
 
6261
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6262
# the compiler configuration to `libtool'.
 
6263
m4_defun([_LT_LANG_CXX_CONFIG],
 
6264
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6265
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6266
m4_require([_LT_DECL_EGREP])dnl
 
6267
 
 
6268
AC_LANG_PUSH(C++)
 
6269
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6270
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6271
_LT_TAGVAR(always_export_symbols, $1)=no
 
6272
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6273
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6274
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6275
_LT_TAGVAR(hardcode_direct, $1)=no
 
6276
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6277
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6278
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6279
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6280
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6281
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6282
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6283
_LT_TAGVAR(inherit_rpath, $1)=no
 
6284
_LT_TAGVAR(module_cmds, $1)=
 
6285
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6286
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6287
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6288
_LT_TAGVAR(no_undefined_flag, $1)=
 
6289
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6290
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6291
 
 
6292
# Source file extension for C++ test sources.
 
6293
ac_ext=cpp
 
6294
 
 
6295
# Object file extension for compiled C++ test sources.
 
6296
objext=o
 
6297
_LT_TAGVAR(objext, $1)=$objext
 
6298
 
 
6299
# No sense in running all these tests if we already determined that
 
6300
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6301
# are currently assumed to apply to all compilers on this platform,
 
6302
# and will be corrupted by setting them based on a non-working compiler.
 
6303
if test "$_lt_caught_CXX_error" != yes; then
 
6304
  # Code to be used in simple compile tests
 
6305
  lt_simple_compile_test_code="int some_variable = 0;"
 
6306
 
 
6307
  # Code to be used in simple link tests
 
6308
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6309
 
 
6310
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6311
  _LT_TAG_COMPILER
 
6312
 
 
6313
  # save warnings/boilerplate of simple test code
 
6314
  _LT_COMPILER_BOILERPLATE
 
6315
  _LT_LINKER_BOILERPLATE
 
6316
 
 
6317
  # Allow CC to be a program name with arguments.
 
6318
  lt_save_CC=$CC
 
6319
  lt_save_LD=$LD
 
6320
  lt_save_GCC=$GCC
 
6321
  GCC=$GXX
 
6322
  lt_save_with_gnu_ld=$with_gnu_ld
 
6323
  lt_save_path_LD=$lt_cv_path_LD
 
6324
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6325
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6326
  else
 
6327
    $as_unset lt_cv_prog_gnu_ld
 
6328
  fi
 
6329
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6330
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6331
  else
 
6332
    $as_unset lt_cv_path_LD
 
6333
  fi
 
6334
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6335
  CC=${CXX-"c++"}
 
6336
  compiler=$CC
 
6337
  _LT_TAGVAR(compiler, $1)=$CC
 
6338
  _LT_CC_BASENAME([$compiler])
 
6339
 
 
6340
  if test -n "$compiler"; then
 
6341
    # We don't want -fno-exception when compiling C++ code, so set the
 
6342
    # no_builtin_flag separately
 
6343
    if test "$GXX" = yes; then
 
6344
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6345
    else
 
6346
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6347
    fi
 
6348
 
 
6349
    if test "$GXX" = yes; then
 
6350
      # Set up default GNU C++ configuration
 
6351
 
 
6352
      LT_PATH_LD
 
6353
 
 
6354
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6355
      # archiving commands below assume that GNU ld is being used.
 
6356
      if test "$with_gnu_ld" = yes; then
 
6357
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6358
        _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'
 
6359
 
 
6360
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6361
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6362
 
 
6363
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6364
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6365
        #     investigate it a little bit more. (MM)
 
6366
        wlarc='${wl}'
 
6367
 
 
6368
        # ancient GNU ld didn't support --whole-archive et. al.
 
6369
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6370
          $GREP 'no-whole-archive' > /dev/null; then
 
6371
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6372
        else
 
6373
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6374
        fi
 
6375
      else
 
6376
        with_gnu_ld=no
 
6377
        wlarc=
 
6378
 
 
6379
        # A generic and very simple default shared library creation
 
6380
        # command for GNU C++ for the case where it uses the native
 
6381
        # linker, instead of GNU ld.  If possible, this setting should
 
6382
        # overridden to take advantage of the native linker features on
 
6383
        # the platform it is being used on.
 
6384
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6385
      fi
 
6386
 
 
6387
      # Commands to make compiler produce verbose output that lists
 
6388
      # what "hidden" libraries, object files and flags are used when
 
6389
      # linking a shared library.
 
6390
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6391
 
 
6392
    else
 
6393
      GXX=no
 
6394
      with_gnu_ld=no
 
6395
      wlarc=
 
6396
    fi
 
6397
 
 
6398
    # PORTME: fill in a description of your system's C++ link characteristics
 
6399
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6400
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6401
    case $host_os in
 
6402
      aix3*)
 
6403
        # FIXME: insert proper C++ library support
 
6404
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6405
        ;;
 
6406
      aix[[4-9]]*)
 
6407
        if test "$host_cpu" = ia64; then
 
6408
          # On IA64, the linker does run time linking by default, so we don't
 
6409
          # have to do anything special.
 
6410
          aix_use_runtimelinking=no
 
6411
          exp_sym_flag='-Bexport'
 
6412
          no_entry_flag=""
 
6413
        else
 
6414
          aix_use_runtimelinking=no
 
6415
 
 
6416
          # Test if we are trying to use run time linking or normal
 
6417
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6418
          # need to do runtime linking.
 
6419
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6420
            for ld_flag in $LDFLAGS; do
 
6421
              case $ld_flag in
 
6422
              *-brtl*)
 
6423
                aix_use_runtimelinking=yes
 
6424
                break
 
6425
                ;;
 
6426
              esac
 
6427
            done
 
6428
            ;;
 
6429
          esac
 
6430
 
 
6431
          exp_sym_flag='-bexport'
 
6432
          no_entry_flag='-bnoentry'
 
6433
        fi
 
6434
 
 
6435
        # When large executables or shared objects are built, AIX ld can
 
6436
        # have problems creating the table of contents.  If linking a library
 
6437
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6438
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6439
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6440
 
 
6441
        _LT_TAGVAR(archive_cmds, $1)=''
 
6442
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6443
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6444
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6445
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6446
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6447
 
 
6448
        if test "$GXX" = yes; then
 
6449
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6450
          # We only want to do this on AIX 4.2 and lower, the check
 
6451
          # below for broken collect2 doesn't work under 4.3+
 
6452
          collect2name=`${CC} -print-prog-name=collect2`
 
6453
          if test -f "$collect2name" &&
 
6454
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6455
          then
 
6456
            # We have reworked collect2
 
6457
            :
 
6458
          else
 
6459
            # We have old collect2
 
6460
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6461
            # It fails to find uninstalled libraries when the uninstalled
 
6462
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6463
            # to unsupported forces relinking
 
6464
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6465
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6466
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6467
          fi
 
6468
          esac
 
6469
          shared_flag='-shared'
 
6470
          if test "$aix_use_runtimelinking" = yes; then
 
6471
            shared_flag="$shared_flag "'${wl}-G'
 
6472
          fi
 
6473
        else
 
6474
          # not using gcc
 
6475
          if test "$host_cpu" = ia64; then
 
6476
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6477
          # chokes on -Wl,-G. The following line is correct:
 
6478
          shared_flag='-G'
 
6479
          else
 
6480
            if test "$aix_use_runtimelinking" = yes; then
 
6481
              shared_flag='${wl}-G'
 
6482
            else
 
6483
              shared_flag='${wl}-bM:SRE'
 
6484
            fi
 
6485
          fi
 
6486
        fi
 
6487
 
 
6488
        # It seems that -bexpall does not export symbols beginning with
 
6489
        # underscore (_), so it is better to generate a list of symbols to
 
6490
        # export.
 
6491
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6492
        if test "$aix_use_runtimelinking" = yes; then
 
6493
          # Warning - without using the other runtime loading flags (-brtl),
 
6494
          # -berok will link without error, but may produce a broken library.
 
6495
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6496
          # Determine the default libpath from the value encoded in an empty
 
6497
          # executable.
 
6498
          _LT_SYS_MODULE_PATH_AIX
 
6499
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6500
 
 
6501
          _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"
 
6502
        else
 
6503
          if test "$host_cpu" = ia64; then
 
6504
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6505
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6506
            _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"
 
6507
          else
 
6508
            # Determine the default libpath from the value encoded in an
 
6509
            # empty executable.
 
6510
            _LT_SYS_MODULE_PATH_AIX
 
6511
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6512
            # Warning - without using the other run time loading flags,
 
6513
            # -berok will link without error, but may produce a broken library.
 
6514
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6515
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6516
            # Exported symbols can be pulled into shared objects from archives
 
6517
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6518
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6519
            # This is similar to how AIX traditionally builds its shared
 
6520
            # libraries.
 
6521
            _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'
 
6522
          fi
 
6523
        fi
 
6524
        ;;
 
6525
 
 
6526
      beos*)
 
6527
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6528
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6529
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6530
          # support --undefined.  This deserves some investigation.  FIXME
 
6531
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6532
        else
 
6533
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6534
        fi
 
6535
        ;;
 
6536
 
 
6537
      chorus*)
 
6538
        case $cc_basename in
 
6539
          *)
 
6540
          # FIXME: insert proper C++ library support
 
6541
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6542
          ;;
 
6543
        esac
 
6544
        ;;
 
6545
 
 
6546
      cygwin* | mingw* | pw32*)
 
6547
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6548
        # as there is no search path for DLLs.
 
6549
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6550
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6551
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6552
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6553
 
 
6554
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6555
          _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'
 
6556
          # If the export-symbols file already is a .def file (1st line
 
6557
          # is EXPORTS), use it as is; otherwise, prepend...
 
6558
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6559
            cp $export_symbols $output_objdir/$soname.def;
 
6560
          else
 
6561
            echo EXPORTS > $output_objdir/$soname.def;
 
6562
            cat $export_symbols >> $output_objdir/$soname.def;
 
6563
          fi~
 
6564
          $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'
 
6565
        else
 
6566
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6567
        fi
 
6568
        ;;
 
6569
      darwin* | rhapsody*)
 
6570
        _LT_DARWIN_LINKER_FEATURES($1)
 
6571
        ;;
 
6572
 
 
6573
      dgux*)
 
6574
        case $cc_basename in
 
6575
          ec++*)
 
6576
            # FIXME: insert proper C++ library support
 
6577
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6578
            ;;
 
6579
          ghcx*)
 
6580
            # Green Hills C++ Compiler
 
6581
            # FIXME: insert proper C++ library support
 
6582
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6583
            ;;
 
6584
          *)
 
6585
            # FIXME: insert proper C++ library support
 
6586
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6587
            ;;
 
6588
        esac
 
6589
        ;;
 
6590
 
 
6591
      freebsd[[12]]*)
 
6592
        # C++ shared libraries reported to be fairly broken before
 
6593
        # switch to ELF
 
6594
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6595
        ;;
 
6596
 
 
6597
      freebsd-elf*)
 
6598
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6599
        ;;
 
6600
 
 
6601
      freebsd* | dragonfly*)
 
6602
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6603
        # conventions
 
6604
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6605
        ;;
 
6606
 
 
6607
      gnu*)
 
6608
        ;;
 
6609
 
 
6610
      hpux9*)
 
6611
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6612
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6613
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6614
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6615
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6616
                                             # but as the default
 
6617
                                             # location of the library.
 
6618
 
 
6619
        case $cc_basename in
 
6620
          CC*)
 
6621
            # FIXME: insert proper C++ library support
 
6622
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6623
            ;;
 
6624
          aCC*)
 
6625
            _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'
 
6626
            # Commands to make compiler produce verbose output that lists
 
6627
            # what "hidden" libraries, object files and flags are used when
 
6628
            # linking a shared library.
 
6629
            #
 
6630
            # There doesn't appear to be a way to prevent this compiler from
 
6631
            # explicitly linking system object files so we need to strip them
 
6632
            # from the output so that they don't get included in the library
 
6633
            # dependencies.
 
6634
            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'
 
6635
            ;;
 
6636
          *)
 
6637
            if test "$GXX" = yes; then
 
6638
              _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'
 
6639
            else
 
6640
              # FIXME: insert proper C++ library support
 
6641
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6642
            fi
 
6643
            ;;
 
6644
        esac
 
6645
        ;;
 
6646
 
 
6647
      hpux10*|hpux11*)
 
6648
        if test $with_gnu_ld = no; then
 
6649
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6650
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6651
 
 
6652
          case $host_cpu in
 
6653
            hppa*64*|ia64*)
 
6654
              ;;
 
6655
            *)
 
6656
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6657
              ;;
 
6658
          esac
 
6659
        fi
 
6660
        case $host_cpu in
 
6661
          hppa*64*|ia64*)
 
6662
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6663
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6664
            ;;
 
6665
          *)
 
6666
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6667
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6668
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6669
                                                 # but as the default
 
6670
                                                 # location of the library.
 
6671
            ;;
 
6672
        esac
 
6673
 
 
6674
        case $cc_basename in
 
6675
          CC*)
 
6676
            # FIXME: insert proper C++ library support
 
6677
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6678
            ;;
 
6679
          aCC*)
 
6680
            case $host_cpu in
 
6681
              hppa*64*)
 
6682
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6683
                ;;
 
6684
              ia64*)
 
6685
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6686
                ;;
 
6687
              *)
 
6688
                _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'
 
6689
                ;;
 
6690
            esac
 
6691
            # Commands to make compiler produce verbose output that lists
 
6692
            # what "hidden" libraries, object files and flags are used when
 
6693
            # linking a shared library.
 
6694
            #
 
6695
            # There doesn't appear to be a way to prevent this compiler from
 
6696
            # explicitly linking system object files so we need to strip them
 
6697
            # from the output so that they don't get included in the library
 
6698
            # dependencies.
 
6699
            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'
 
6700
            ;;
 
6701
          *)
 
6702
            if test "$GXX" = yes; then
 
6703
              if test $with_gnu_ld = no; then
 
6704
                case $host_cpu in
 
6705
                  hppa*64*)
 
6706
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6707
                    ;;
 
6708
                  ia64*)
 
6709
                    _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'
 
6710
                    ;;
 
6711
                  *)
 
6712
                    _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'
 
6713
                    ;;
 
6714
                esac
 
6715
              fi
 
6716
            else
 
6717
              # FIXME: insert proper C++ library support
 
6718
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6719
            fi
 
6720
            ;;
 
6721
        esac
 
6722
        ;;
 
6723
 
 
6724
      interix[[3-9]]*)
 
6725
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6726
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6727
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6728
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6729
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6730
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6731
        # default) and relocated if they conflict, which is a slow very memory
 
6732
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6733
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6734
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6735
        _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'
 
6736
        _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'
 
6737
        ;;
 
6738
      irix5* | irix6*)
 
6739
        case $cc_basename in
 
6740
          CC*)
 
6741
            # SGI C++
 
6742
            _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'
 
6743
 
 
6744
            # Archives containing C++ object files must be created using
 
6745
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6746
            # necessary to make sure instantiated templates are included
 
6747
            # in the archive.
 
6748
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6749
            ;;
 
6750
          *)
 
6751
            if test "$GXX" = yes; then
 
6752
              if test "$with_gnu_ld" = no; then
 
6753
                _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'
 
6754
              else
 
6755
                _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'
 
6756
              fi
 
6757
            fi
 
6758
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6759
            ;;
 
6760
        esac
 
6761
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6762
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6763
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6764
        ;;
 
6765
 
 
6766
      linux* | k*bsd*-gnu)
 
6767
        case $cc_basename in
 
6768
          KCC*)
 
6769
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6770
 
 
6771
            # KCC will only create a shared library if the output file
 
6772
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6773
            # to its proper name (with version) after linking.
 
6774
            _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'
 
6775
            _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'
 
6776
            # Commands to make compiler produce verbose output that lists
 
6777
            # what "hidden" libraries, object files and flags are used when
 
6778
            # linking a shared library.
 
6779
            #
 
6780
            # There doesn't appear to be a way to prevent this compiler from
 
6781
            # explicitly linking system object files so we need to strip them
 
6782
            # from the output so that they don't get included in the library
 
6783
            # dependencies.
 
6784
            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'
 
6785
 
 
6786
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6787
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6788
 
 
6789
            # Archives containing C++ object files must be created using
 
6790
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6791
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6792
            ;;
 
6793
          icpc* | ecpc* )
 
6794
            # Intel C++
 
6795
            with_gnu_ld=yes
 
6796
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6797
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6798
            # earlier do not add the objects themselves.
 
6799
            case `$CC -V 2>&1` in
 
6800
              *"Version 7."*)
 
6801
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6802
                _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'
 
6803
                ;;
 
6804
              *)  # Version 8.0 or newer
 
6805
                tmp_idyn=
 
6806
                case $host_cpu in
 
6807
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6808
                esac
 
6809
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6810
                _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'
 
6811
                ;;
 
6812
            esac
 
6813
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6814
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6815
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6816
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6817
            ;;
 
6818
          pgCC* | pgcpp*)
 
6819
            # Portland Group C++ compiler
 
6820
            case `$CC -V` in
 
6821
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6822
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6823
                rm -rf $tpldir~
 
6824
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6825
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6826
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6827
                rm -rf $tpldir~
 
6828
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6829
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6830
                $RANLIB $oldlib'
 
6831
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6832
                rm -rf $tpldir~
 
6833
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6834
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6835
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6836
                rm -rf $tpldir~
 
6837
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6838
                $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'
 
6839
              ;;
 
6840
            *) # Version 6 will use weak symbols
 
6841
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6842
              _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'
 
6843
              ;;
 
6844
            esac
 
6845
 
 
6846
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6847
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6848
            _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'
 
6849
            ;;
 
6850
          cxx*)
 
6851
            # Compaq C++
 
6852
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6853
            _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'
 
6854
 
 
6855
            runpath_var=LD_RUN_PATH
 
6856
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6857
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6858
 
 
6859
            # Commands to make compiler produce verbose output that lists
 
6860
            # what "hidden" libraries, object files and flags are used when
 
6861
            # linking a shared library.
 
6862
            #
 
6863
            # There doesn't appear to be a way to prevent this compiler from
 
6864
            # explicitly linking system object files so we need to strip them
 
6865
            # from the output so that they don't get included in the library
 
6866
            # dependencies.
 
6867
            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'
 
6868
            ;;
 
6869
          xl*)
 
6870
            # IBM XL 8.0 on PPC, with GNU ld
 
6871
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6872
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6873
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6874
            if test "x$supports_anon_versioning" = xyes; then
 
6875
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6876
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6877
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6878
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6879
            fi
 
6880
            ;;
 
6881
          *)
 
6882
            case `$CC -V 2>&1 | sed 5q` in
 
6883
            *Sun\ C*)
 
6884
              # Sun C++ 5.9
 
6885
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6886
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6887
              _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'
 
6888
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6889
              _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'
 
6890
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6891
 
 
6892
              # Not sure whether something based on
 
6893
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6894
              # would be better.
 
6895
              output_verbose_link_cmd='echo'
 
6896
 
 
6897
              # Archives containing C++ object files must be created using
 
6898
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6899
              # necessary to make sure instantiated templates are included
 
6900
              # in the archive.
 
6901
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6902
              ;;
 
6903
            esac
 
6904
            ;;
 
6905
        esac
 
6906
        ;;
 
6907
 
 
6908
      lynxos*)
 
6909
        # FIXME: insert proper C++ library support
 
6910
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6911
        ;;
 
6912
 
 
6913
      m88k*)
 
6914
        # FIXME: insert proper C++ library support
 
6915
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6916
        ;;
 
6917
 
 
6918
      mvs*)
 
6919
        case $cc_basename in
 
6920
          cxx*)
 
6921
            # FIXME: insert proper C++ library support
 
6922
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6923
            ;;
 
6924
          *)
 
6925
            # FIXME: insert proper C++ library support
 
6926
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6927
            ;;
 
6928
        esac
 
6929
        ;;
 
6930
 
 
6931
      netbsd*)
 
6932
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6933
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6934
          wlarc=
 
6935
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6936
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6937
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6938
        fi
 
6939
        # Workaround some broken pre-1.5 toolchains
 
6940
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6941
        ;;
 
6942
 
 
6943
      *nto* | *qnx*)
 
6944
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6945
        ;;
 
6946
 
 
6947
      openbsd2*)
 
6948
        # C++ shared libraries are fairly broken
 
6949
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6950
        ;;
 
6951
 
 
6952
      openbsd*)
 
6953
        if test -f /usr/libexec/ld.so; then
 
6954
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6955
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6956
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6957
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6958
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6959
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6960
            _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'
 
6961
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6962
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6963
          fi
 
6964
          output_verbose_link_cmd=echo
 
6965
        else
 
6966
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6967
        fi
 
6968
        ;;
 
6969
 
 
6970
      osf3* | osf4* | osf5*)
 
6971
        case $cc_basename in
 
6972
          KCC*)
 
6973
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6974
 
 
6975
            # KCC will only create a shared library if the output file
 
6976
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6977
            # to its proper name (with version) after linking.
 
6978
            _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'
 
6979
 
 
6980
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6981
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6982
 
 
6983
            # Archives containing C++ object files must be created using
 
6984
            # the KAI C++ compiler.
 
6985
            case $host in
 
6986
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6987
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6988
            esac
 
6989
            ;;
 
6990
          RCC*)
 
6991
            # Rational C++ 2.4.1
 
6992
            # FIXME: insert proper C++ library support
 
6993
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6994
            ;;
 
6995
          cxx*)
 
6996
            case $host in
 
6997
              osf3*)
 
6998
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6999
                _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'
 
7000
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7001
                ;;
 
7002
              *)
 
7003
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7004
                _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'
 
7005
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7006
                  echo "-hidden">> $lib.exp~
 
7007
                  $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~
 
7008
                  $RM $lib.exp'
 
7009
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7010
                ;;
 
7011
            esac
 
7012
 
 
7013
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7014
 
 
7015
            # Commands to make compiler produce verbose output that lists
 
7016
            # what "hidden" libraries, object files and flags are used when
 
7017
            # linking a shared library.
 
7018
            #
 
7019
            # There doesn't appear to be a way to prevent this compiler from
 
7020
            # explicitly linking system object files so we need to strip them
 
7021
            # from the output so that they don't get included in the library
 
7022
            # dependencies.
 
7023
            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'
 
7024
            ;;
 
7025
          *)
 
7026
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7027
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7028
              case $host in
 
7029
                osf3*)
 
7030
                  _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'
 
7031
                  ;;
 
7032
                *)
 
7033
                  _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'
 
7034
                  ;;
 
7035
              esac
 
7036
 
 
7037
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7038
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7039
 
 
7040
              # Commands to make compiler produce verbose output that lists
 
7041
              # what "hidden" libraries, object files and flags are used when
 
7042
              # linking a shared library.
 
7043
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7044
 
 
7045
            else
 
7046
              # FIXME: insert proper C++ library support
 
7047
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7048
            fi
 
7049
            ;;
 
7050
        esac
 
7051
        ;;
 
7052
 
 
7053
      psos*)
 
7054
        # FIXME: insert proper C++ library support
 
7055
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7056
        ;;
 
7057
 
 
7058
      sunos4*)
 
7059
        case $cc_basename in
 
7060
          CC*)
 
7061
            # Sun C++ 4.x
 
7062
            # FIXME: insert proper C++ library support
 
7063
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7064
            ;;
 
7065
          lcc*)
 
7066
            # Lucid
 
7067
            # FIXME: insert proper C++ library support
 
7068
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7069
            ;;
 
7070
          *)
 
7071
            # FIXME: insert proper C++ library support
 
7072
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7073
            ;;
 
7074
        esac
 
7075
        ;;
 
7076
 
 
7077
      solaris*)
 
7078
        case $cc_basename in
 
7079
          CC*)
 
7080
            # Sun C++ 4.2, 5.x and Centerline C++
 
7081
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7082
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7083
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7084
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7085
              $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'
 
7086
 
 
7087
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7088
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7089
            case $host_os in
 
7090
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7091
              *)
 
7092
                # The compiler driver will combine and reorder linker options,
 
7093
                # but understands `-z linker_flag'.
 
7094
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7095
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7096
                ;;
 
7097
            esac
 
7098
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7099
 
 
7100
            output_verbose_link_cmd='echo'
 
7101
 
 
7102
            # Archives containing C++ object files must be created using
 
7103
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7104
            # necessary to make sure instantiated templates are included
 
7105
            # in the archive.
 
7106
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7107
            ;;
 
7108
          gcx*)
 
7109
            # Green Hills C++ Compiler
 
7110
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7111
 
 
7112
            # The C++ compiler must be used to create the archive.
 
7113
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7114
            ;;
 
7115
          *)
 
7116
            # GNU C++ compiler with Solaris linker
 
7117
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7118
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7119
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7120
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7121
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7122
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7123
 
 
7124
                # Commands to make compiler produce verbose output that lists
 
7125
                # what "hidden" libraries, object files and flags are used when
 
7126
                # linking a shared library.
 
7127
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7128
              else
 
7129
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7130
                # platform.
 
7131
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7132
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7133
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7134
 
 
7135
                # Commands to make compiler produce verbose output that lists
 
7136
                # what "hidden" libraries, object files and flags are used when
 
7137
                # linking a shared library.
 
7138
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7139
              fi
 
7140
 
 
7141
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7142
              case $host_os in
 
7143
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7144
                *)
 
7145
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7146
                  ;;
 
7147
              esac
 
7148
            fi
 
7149
            ;;
 
7150
        esac
 
7151
        ;;
 
7152
 
 
7153
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7154
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7155
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7156
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7157
      runpath_var='LD_RUN_PATH'
 
7158
 
 
7159
      case $cc_basename in
 
7160
        CC*)
 
7161
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7162
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7163
          ;;
 
7164
        *)
 
7165
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7166
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7167
          ;;
 
7168
      esac
 
7169
      ;;
 
7170
 
 
7171
      sysv5* | sco3.2v5* | sco5v6*)
 
7172
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7173
        # link with -lc, and that would cause any symbols used from libc to
 
7174
        # always be unresolved, which means just about no library would
 
7175
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7176
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7177
        # as -z defs.
 
7178
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7179
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7180
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7181
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7182
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7183
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7184
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7185
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7186
        runpath_var='LD_RUN_PATH'
 
7187
 
 
7188
        case $cc_basename in
 
7189
          CC*)
 
7190
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7191
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7192
            ;;
 
7193
          *)
 
7194
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7195
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7196
            ;;
 
7197
        esac
 
7198
      ;;
 
7199
 
 
7200
      tandem*)
 
7201
        case $cc_basename in
 
7202
          NCC*)
 
7203
            # NonStop-UX NCC 3.20
 
7204
            # FIXME: insert proper C++ library support
 
7205
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7206
            ;;
 
7207
          *)
 
7208
            # FIXME: insert proper C++ library support
 
7209
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7210
            ;;
 
7211
        esac
 
7212
        ;;
 
7213
 
 
7214
      vxworks*)
 
7215
        # FIXME: insert proper C++ library support
 
7216
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7217
        ;;
 
7218
 
 
7219
      *)
 
7220
        # FIXME: insert proper C++ library support
 
7221
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7222
        ;;
 
7223
    esac
 
7224
 
 
7225
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7226
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7227
 
 
7228
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7229
    _LT_TAGVAR(LD, $1)="$LD"
 
7230
 
 
7231
    ## CAVEAT EMPTOR:
 
7232
    ## There is no encapsulation within the following macros, do not change
 
7233
    ## the running order or otherwise move them around unless you know exactly
 
7234
    ## what you are doing...
 
7235
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7236
    _LT_COMPILER_PIC($1)
 
7237
    _LT_COMPILER_C_O($1)
 
7238
    _LT_COMPILER_FILE_LOCKS($1)
 
7239
    _LT_LINKER_SHLIBS($1)
 
7240
    _LT_SYS_DYNAMIC_LINKER($1)
 
7241
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7242
 
 
7243
    _LT_CONFIG($1)
 
7244
  fi # test -n "$compiler"
 
7245
 
 
7246
  CC=$lt_save_CC
 
7247
  LDCXX=$LD
 
7248
  LD=$lt_save_LD
 
7249
  GCC=$lt_save_GCC
 
7250
  with_gnu_ld=$lt_save_with_gnu_ld
 
7251
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7252
  lt_cv_path_LD=$lt_save_path_LD
 
7253
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7254
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7255
fi # test "$_lt_caught_CXX_error" != yes
 
7256
 
 
7257
AC_LANG_POP
 
7258
])# _LT_LANG_CXX_CONFIG
 
7259
 
 
7260
 
 
7261
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6561
7262
# ---------------------------------
6562
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6563
 
 
6564
 
 
6565
 
# old names
6566
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6567
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6568
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6569
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6570
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6571
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6572
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
6573
 
 
6574
 
# This is just to silence aclocal about the macro not being used
6575
 
ifelse([AC_DISABLE_FAST_INSTALL])
6576
 
 
6577
 
AC_DEFUN([LT_AC_PROG_GCJ],
6578
 
[AC_CHECK_TOOL(GCJ, gcj, no)
6579
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6580
 
  AC_SUBST(GCJFLAGS)
6581
 
])
6582
 
 
6583
 
AC_DEFUN([LT_AC_PROG_RC],
6584
 
[AC_CHECK_TOOL(RC, windres, no)
6585
 
])
6586
 
 
6587
 
 
6588
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6589
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6590
 
 
6591
 
# _AS_TEST_PREPARE
6592
 
# ----------------
6593
 
m4_ifndef([_AS_TEST_PREPARE],
6594
 
[m4_defun([_AS_TEST_PREPARE],
6595
 
[if test -x / >/dev/null 2>&1; then
6596
 
  as_executable_p='test -x'
 
7263
# Figure out "hidden" library dependencies from verbose
 
7264
# compiler output when linking a shared library.
 
7265
# Parse the compiler output and extract the necessary
 
7266
# objects, libraries and library flags.
 
7267
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7268
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7269
# Dependencies to place before and after the object being linked:
 
7270
_LT_TAGVAR(predep_objects, $1)=
 
7271
_LT_TAGVAR(postdep_objects, $1)=
 
7272
_LT_TAGVAR(predeps, $1)=
 
7273
_LT_TAGVAR(postdeps, $1)=
 
7274
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7275
 
 
7276
dnl we can't use the lt_simple_compile_test_code here,
 
7277
dnl because it contains code intended for an executable,
 
7278
dnl not a library.  It's possible we should let each
 
7279
dnl tag define a new lt_????_link_test_code variable,
 
7280
dnl but it's only used here...
 
7281
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7282
int a;
 
7283
void foo (void) { a = 0; }
 
7284
_LT_EOF
 
7285
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7286
class Foo
 
7287
{
 
7288
public:
 
7289
  Foo (void) { a = 0; }
 
7290
private:
 
7291
  int a;
 
7292
};
 
7293
_LT_EOF
 
7294
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7295
      subroutine foo
 
7296
      implicit none
 
7297
      integer*4 a
 
7298
      a=0
 
7299
      return
 
7300
      end
 
7301
_LT_EOF
 
7302
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7303
      subroutine foo
 
7304
      implicit none
 
7305
      integer a
 
7306
      a=0
 
7307
      return
 
7308
      end
 
7309
_LT_EOF
 
7310
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7311
public class foo {
 
7312
  private int a;
 
7313
  public void bar (void) {
 
7314
    a = 0;
 
7315
  }
 
7316
};
 
7317
_LT_EOF
 
7318
])
 
7319
dnl Parse the compiler output and extract the necessary
 
7320
dnl objects, libraries and library flags.
 
7321
if AC_TRY_EVAL(ac_compile); then
 
7322
  # Parse the compiler output and extract the necessary
 
7323
  # objects, libraries and library flags.
 
7324
 
 
7325
  # Sentinel used to keep track of whether or not we are before
 
7326
  # the conftest object file.
 
7327
  pre_test_object_deps_done=no
 
7328
 
 
7329
  for p in `eval "$output_verbose_link_cmd"`; do
 
7330
    case $p in
 
7331
 
 
7332
    -L* | -R* | -l*)
 
7333
       # Some compilers place space between "-{L,R}" and the path.
 
7334
       # Remove the space.
 
7335
       if test $p = "-L" ||
 
7336
          test $p = "-R"; then
 
7337
         prev=$p
 
7338
         continue
 
7339
       else
 
7340
         prev=
 
7341
       fi
 
7342
 
 
7343
       if test "$pre_test_object_deps_done" = no; then
 
7344
         case $p in
 
7345
         -L* | -R*)
 
7346
           # Internal compiler library paths should come after those
 
7347
           # provided the user.  The postdeps already come after the
 
7348
           # user supplied libs so there is no need to process them.
 
7349
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7350
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7351
           else
 
7352
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7353
           fi
 
7354
           ;;
 
7355
         # The "-l" case would never come before the object being
 
7356
         # linked, so don't bother handling this case.
 
7357
         esac
 
7358
       else
 
7359
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7360
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7361
         else
 
7362
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7363
         fi
 
7364
       fi
 
7365
       ;;
 
7366
 
 
7367
    *.$objext)
 
7368
       # This assumes that the test object file only shows up
 
7369
       # once in the compiler output.
 
7370
       if test "$p" = "conftest.$objext"; then
 
7371
         pre_test_object_deps_done=yes
 
7372
         continue
 
7373
       fi
 
7374
 
 
7375
       if test "$pre_test_object_deps_done" = no; then
 
7376
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7377
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7378
         else
 
7379
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7380
         fi
 
7381
       else
 
7382
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7383
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7384
         else
 
7385
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7386
         fi
 
7387
       fi
 
7388
       ;;
 
7389
 
 
7390
    *) ;; # Ignore the rest.
 
7391
 
 
7392
    esac
 
7393
  done
 
7394
 
 
7395
  # Clean up.
 
7396
  rm -f a.out a.exe
6597
7397
else
6598
 
  as_executable_p='test -f'
6599
 
fi
6600
 
])])# _AS_TEST_PREPARE
6601
 
 
6602
 
# AS_EXECUTABLE_P
6603
 
# ---------------
6604
 
# Check whether a file is executable.
6605
 
m4_ifndef([AS_EXECUTABLE_P],
6606
 
[m4_defun([AS_EXECUTABLE_P],
6607
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6608
 
$as_executable_p $1[]dnl
6609
 
])])# AS_EXECUTABLE_P
6610
 
 
 
7398
  echo "libtool.m4: error: problem compiling $1 test program"
 
7399
fi
 
7400
 
 
7401
$RM -f confest.$objext
 
7402
 
 
7403
# PORTME: override above test on systems where it is broken
 
7404
m4_if([$1], [CXX],
 
7405
[case $host_os in
 
7406
interix[[3-9]]*)
 
7407
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7408
  # hack all around it, let's just trust "g++" to DTRT.
 
7409
  _LT_TAGVAR(predep_objects,$1)=
 
7410
  _LT_TAGVAR(postdep_objects,$1)=
 
7411
  _LT_TAGVAR(postdeps,$1)=
 
7412
  ;;
 
7413
 
 
7414
linux*)
 
7415
  case `$CC -V 2>&1 | sed 5q` in
 
7416
  *Sun\ C*)
 
7417
    # Sun C++ 5.9
 
7418
 
 
7419
    # The more standards-conforming stlport4 library is
 
7420
    # incompatible with the Cstd library. Avoid specifying
 
7421
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7422
    # -library=stlport4 depends on it.
 
7423
    case " $CXX $CXXFLAGS " in
 
7424
    *" -library=stlport4 "*)
 
7425
      solaris_use_stlport4=yes
 
7426
      ;;
 
7427
    esac
 
7428
 
 
7429
    if test "$solaris_use_stlport4" != yes; then
 
7430
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7431
    fi
 
7432
    ;;
 
7433
  esac
 
7434
  ;;
 
7435
 
 
7436
solaris*)
 
7437
  case $cc_basename in
 
7438
  CC*)
 
7439
    # The more standards-conforming stlport4 library is
 
7440
    # incompatible with the Cstd library. Avoid specifying
 
7441
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7442
    # -library=stlport4 depends on it.
 
7443
    case " $CXX $CXXFLAGS " in
 
7444
    *" -library=stlport4 "*)
 
7445
      solaris_use_stlport4=yes
 
7446
      ;;
 
7447
    esac
 
7448
 
 
7449
    # Adding this requires a known-good setup of shared libraries for
 
7450
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7451
    # archive will be linked into the output, leading to subtle bugs.
 
7452
    if test "$solaris_use_stlport4" != yes; then
 
7453
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7454
    fi
 
7455
    ;;
 
7456
  esac
 
7457
  ;;
 
7458
esac
 
7459
])
 
7460
 
 
7461
case " $_LT_TAGVAR(postdeps, $1) " in
 
7462
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7463
esac
 
7464
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7465
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7466
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7467
fi
 
7468
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7469
    [The directories searched by this compiler when creating a shared library])
 
7470
_LT_TAGDECL([], [predep_objects], [1],
 
7471
    [Dependencies to place before and after the objects being linked to
 
7472
    create a shared library])
 
7473
_LT_TAGDECL([], [postdep_objects], [1])
 
7474
_LT_TAGDECL([], [predeps], [1])
 
7475
_LT_TAGDECL([], [postdeps], [1])
 
7476
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7477
    [The library search path used internally by the compiler when linking
 
7478
    a shared library])
 
7479
])# _LT_SYS_HIDDEN_LIBDEPS
 
7480
 
 
7481
 
 
7482
# _LT_PROG_F77
 
7483
# ------------
 
7484
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7485
# if there is no fortran compiler, we have our own version here.
 
7486
m4_defun([_LT_PROG_F77],
 
7487
[
 
7488
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7489
AC_PROG_F77
 
7490
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7491
  _lt_disable_F77=yes
 
7492
fi
 
7493
popdef([AC_MSG_ERROR])
 
7494
])# _LT_PROG_F77
 
7495
 
 
7496
dnl aclocal-1.4 backwards compatibility:
 
7497
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7498
 
 
7499
 
 
7500
# _LT_LANG_F77_CONFIG([TAG])
 
7501
# --------------------------
 
7502
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7503
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7504
# to write the compiler configuration to `libtool'.
 
7505
m4_defun([_LT_LANG_F77_CONFIG],
 
7506
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7507
AC_LANG_PUSH(Fortran 77)
 
7508
 
 
7509
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7510
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7511
_LT_TAGVAR(always_export_symbols, $1)=no
 
7512
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7513
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7514
_LT_TAGVAR(hardcode_direct, $1)=no
 
7515
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7516
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7517
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7518
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7519
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7520
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7521
_LT_TAGVAR(inherit_rpath, $1)=no
 
7522
_LT_TAGVAR(module_cmds, $1)=
 
7523
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7524
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7525
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7526
_LT_TAGVAR(no_undefined_flag, $1)=
 
7527
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7528
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7529
 
 
7530
# Source file extension for f77 test sources.
 
7531
ac_ext=f
 
7532
 
 
7533
# Object file extension for compiled f77 test sources.
 
7534
objext=o
 
7535
_LT_TAGVAR(objext, $1)=$objext
 
7536
 
 
7537
# No sense in running all these tests if we already determined that
 
7538
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7539
# are currently assumed to apply to all compilers on this platform,
 
7540
# and will be corrupted by setting them based on a non-working compiler.
 
7541
if test "$_lt_disable_F77" != yes; then
 
7542
  # Code to be used in simple compile tests
 
7543
  lt_simple_compile_test_code="\
 
7544
      subroutine t
 
7545
      return
 
7546
      end
 
7547
"
 
7548
 
 
7549
  # Code to be used in simple link tests
 
7550
  lt_simple_link_test_code="\
 
7551
      program t
 
7552
      end
 
7553
"
 
7554
 
 
7555
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7556
  _LT_TAG_COMPILER
 
7557
 
 
7558
  # save warnings/boilerplate of simple test code
 
7559
  _LT_COMPILER_BOILERPLATE
 
7560
  _LT_LINKER_BOILERPLATE
 
7561
 
 
7562
  # Allow CC to be a program name with arguments.
 
7563
  lt_save_CC="$CC"
 
7564
  lt_save_GCC=$GCC
 
7565
  CC=${F77-"f77"}
 
7566
  compiler=$CC
 
7567
  _LT_TAGVAR(compiler, $1)=$CC
 
7568
  _LT_CC_BASENAME([$compiler])
 
7569
  GCC=$G77
 
7570
  if test -n "$compiler"; then
 
7571
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7572
    AC_MSG_RESULT([$can_build_shared])
 
7573
 
 
7574
    AC_MSG_CHECKING([whether to build shared libraries])
 
7575
    test "$can_build_shared" = "no" && enable_shared=no
 
7576
 
 
7577
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7578
    # are all built from PIC.
 
7579
    case $host_os in
 
7580
      aix3*)
 
7581
        test "$enable_shared" = yes && enable_static=no
 
7582
        if test -n "$RANLIB"; then
 
7583
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7584
          postinstall_cmds='$RANLIB $lib'
 
7585
        fi
 
7586
        ;;
 
7587
      aix[[4-9]]*)
 
7588
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7589
          test "$enable_shared" = yes && enable_static=no
 
7590
        fi
 
7591
        ;;
 
7592
    esac
 
7593
    AC_MSG_RESULT([$enable_shared])
 
7594
 
 
7595
    AC_MSG_CHECKING([whether to build static libraries])
 
7596
    # Make sure either enable_shared or enable_static is yes.
 
7597
    test "$enable_shared" = yes || enable_static=yes
 
7598
    AC_MSG_RESULT([$enable_static])
 
7599
 
 
7600
    _LT_TAGVAR(GCC, $1)="$G77"
 
7601
    _LT_TAGVAR(LD, $1)="$LD"
 
7602
 
 
7603
    ## CAVEAT EMPTOR:
 
7604
    ## There is no encapsulation within the following macros, do not change
 
7605
    ## the running order or otherwise move them around unless you know exactly
 
7606
    ## what you are doing...
 
7607
    _LT_COMPILER_PIC($1)
 
7608
    _LT_COMPILER_C_O($1)
 
7609
    _LT_COMPILER_FILE_LOCKS($1)
 
7610
    _LT_LINKER_SHLIBS($1)
 
7611
    _LT_SYS_DYNAMIC_LINKER($1)
 
7612
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7613
 
 
7614
    _LT_CONFIG($1)
 
7615
  fi # test -n "$compiler"
 
7616
 
 
7617
  GCC=$lt_save_GCC
 
7618
  CC="$lt_save_CC"
 
7619
fi # test "$_lt_disable_F77" != yes
 
7620
 
 
7621
AC_LANG_POP
 
7622
])# _LT_LANG_F77_CONFIG
 
7623
 
 
7624
 
 
7625
# _LT_PROG_FC
 
7626
# -----------
 
7627
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7628
# if there is no fortran compiler, we have our own version here.
 
7629
m4_defun([_LT_PROG_FC],
 
7630
[
 
7631
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7632
AC_PROG_FC
 
7633
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7634
  _lt_disable_FC=yes
 
7635
fi
 
7636
popdef([AC_MSG_ERROR])
 
7637
])# _LT_PROG_FC
 
7638
 
 
7639
dnl aclocal-1.4 backwards compatibility:
 
7640
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7641
 
 
7642
 
 
7643
# _LT_LANG_FC_CONFIG([TAG])
 
7644
# -------------------------
 
7645
# Ensure that the configuration variables for a Fortran compiler are
 
7646
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7647
# to write the compiler configuration to `libtool'.
 
7648
m4_defun([_LT_LANG_FC_CONFIG],
 
7649
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7650
AC_LANG_PUSH(Fortran)
 
7651
 
 
7652
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7653
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7654
_LT_TAGVAR(always_export_symbols, $1)=no
 
7655
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7656
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7657
_LT_TAGVAR(hardcode_direct, $1)=no
 
7658
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7660
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7661
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7662
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7663
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7664
_LT_TAGVAR(inherit_rpath, $1)=no
 
7665
_LT_TAGVAR(module_cmds, $1)=
 
7666
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7667
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7668
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7669
_LT_TAGVAR(no_undefined_flag, $1)=
 
7670
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7671
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7672
 
 
7673
# Source file extension for fc test sources.
 
7674
ac_ext=${ac_fc_srcext-f}
 
7675
 
 
7676
# Object file extension for compiled fc test sources.
 
7677
objext=o
 
7678
_LT_TAGVAR(objext, $1)=$objext
 
7679
 
 
7680
# No sense in running all these tests if we already determined that
 
7681
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7682
# are currently assumed to apply to all compilers on this platform,
 
7683
# and will be corrupted by setting them based on a non-working compiler.
 
7684
if test "$_lt_disable_FC" != yes; then
 
7685
  # Code to be used in simple compile tests
 
7686
  lt_simple_compile_test_code="\
 
7687
      subroutine t
 
7688
      return
 
7689
      end
 
7690
"
 
7691
 
 
7692
  # Code to be used in simple link tests
 
7693
  lt_simple_link_test_code="\
 
7694
      program t
 
7695
      end
 
7696
"
 
7697
 
 
7698
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7699
  _LT_TAG_COMPILER
 
7700
 
 
7701
  # save warnings/boilerplate of simple test code
 
7702
  _LT_COMPILER_BOILERPLATE
 
7703
  _LT_LINKER_BOILERPLATE
 
7704
 
 
7705
  # Allow CC to be a program name with arguments.
 
7706
  lt_save_CC="$CC"
 
7707
  lt_save_GCC=$GCC
 
7708
  CC=${FC-"f95"}
 
7709
  compiler=$CC
 
7710
  GCC=$ac_cv_fc_compiler_gnu
 
7711
 
 
7712
  _LT_TAGVAR(compiler, $1)=$CC
 
7713
  _LT_CC_BASENAME([$compiler])
 
7714
 
 
7715
  if test -n "$compiler"; then
 
7716
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7717
    AC_MSG_RESULT([$can_build_shared])
 
7718
 
 
7719
    AC_MSG_CHECKING([whether to build shared libraries])
 
7720
    test "$can_build_shared" = "no" && enable_shared=no
 
7721
 
 
7722
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7723
    # are all built from PIC.
 
7724
    case $host_os in
 
7725
      aix3*)
 
7726
        test "$enable_shared" = yes && enable_static=no
 
7727
        if test -n "$RANLIB"; then
 
7728
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7729
          postinstall_cmds='$RANLIB $lib'
 
7730
        fi
 
7731
        ;;
 
7732
      aix[[4-9]]*)
 
7733
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7734
          test "$enable_shared" = yes && enable_static=no
 
7735
        fi
 
7736
        ;;
 
7737
    esac
 
7738
    AC_MSG_RESULT([$enable_shared])
 
7739
 
 
7740
    AC_MSG_CHECKING([whether to build static libraries])
 
7741
    # Make sure either enable_shared or enable_static is yes.
 
7742
    test "$enable_shared" = yes || enable_static=yes
 
7743
    AC_MSG_RESULT([$enable_static])
 
7744
 
 
7745
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7746
    _LT_TAGVAR(LD, $1)="$LD"
 
7747
 
 
7748
    ## CAVEAT EMPTOR:
 
7749
    ## There is no encapsulation within the following macros, do not change
 
7750
    ## the running order or otherwise move them around unless you know exactly
 
7751
    ## what you are doing...
 
7752
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7753
    _LT_COMPILER_PIC($1)
 
7754
    _LT_COMPILER_C_O($1)
 
7755
    _LT_COMPILER_FILE_LOCKS($1)
 
7756
    _LT_LINKER_SHLIBS($1)
 
7757
    _LT_SYS_DYNAMIC_LINKER($1)
 
7758
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7759
 
 
7760
    _LT_CONFIG($1)
 
7761
  fi # test -n "$compiler"
 
7762
 
 
7763
  GCC=$lt_save_GCC
 
7764
  CC="$lt_save_CC"
 
7765
fi # test "$_lt_disable_FC" != yes
 
7766
 
 
7767
AC_LANG_POP
 
7768
])# _LT_LANG_FC_CONFIG
 
7769
 
 
7770
 
 
7771
# _LT_LANG_GCJ_CONFIG([TAG])
 
7772
# --------------------------
 
7773
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7774
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7775
# to write the compiler configuration to `libtool'.
 
7776
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7777
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7778
AC_LANG_SAVE
 
7779
 
 
7780
# Source file extension for Java test sources.
 
7781
ac_ext=java
 
7782
 
 
7783
# Object file extension for compiled Java test sources.
 
7784
objext=o
 
7785
_LT_TAGVAR(objext, $1)=$objext
 
7786
 
 
7787
# Code to be used in simple compile tests
 
7788
lt_simple_compile_test_code="class foo {}"
 
7789
 
 
7790
# Code to be used in simple link tests
 
7791
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7792
 
 
7793
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7794
_LT_TAG_COMPILER
 
7795
 
 
7796
# save warnings/boilerplate of simple test code
 
7797
_LT_COMPILER_BOILERPLATE
 
7798
_LT_LINKER_BOILERPLATE
 
7799
 
 
7800
# Allow CC to be a program name with arguments.
 
7801
lt_save_CC="$CC"
 
7802
lt_save_GCC=$GCC
 
7803
GCC=yes
 
7804
CC=${GCJ-"gcj"}
 
7805
compiler=$CC
 
7806
_LT_TAGVAR(compiler, $1)=$CC
 
7807
_LT_TAGVAR(LD, $1)="$LD"
 
7808
_LT_CC_BASENAME([$compiler])
 
7809
 
 
7810
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7811
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7812
 
 
7813
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7814
 
 
7815
if test -n "$compiler"; then
 
7816
  _LT_COMPILER_NO_RTTI($1)
 
7817
  _LT_COMPILER_PIC($1)
 
7818
  _LT_COMPILER_C_O($1)
 
7819
  _LT_COMPILER_FILE_LOCKS($1)
 
7820
  _LT_LINKER_SHLIBS($1)
 
7821
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7822
 
 
7823
  _LT_CONFIG($1)
 
7824
fi
 
7825
 
 
7826
AC_LANG_RESTORE
 
7827
 
 
7828
GCC=$lt_save_GCC
 
7829
CC="$lt_save_CC"
 
7830
])# _LT_LANG_GCJ_CONFIG
 
7831
 
 
7832
 
 
7833
# _LT_LANG_RC_CONFIG([TAG])
 
7834
# -------------------------
 
7835
# Ensure that the configuration variables for the Windows resource compiler
 
7836
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7837
# to write the compiler configuration to `libtool'.
 
7838
m4_defun([_LT_LANG_RC_CONFIG],
 
7839
[AC_REQUIRE([LT_PROG_RC])dnl
 
7840
AC_LANG_SAVE
 
7841
 
 
7842
# Source file extension for RC test sources.
 
7843
ac_ext=rc
 
7844
 
 
7845
# Object file extension for compiled RC test sources.
 
7846
objext=o
 
7847
_LT_TAGVAR(objext, $1)=$objext
 
7848
 
 
7849
# Code to be used in simple compile tests
 
7850
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7851
 
 
7852
# Code to be used in simple link tests
 
7853
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7854
 
 
7855
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7856
_LT_TAG_COMPILER
 
7857
 
 
7858
# save warnings/boilerplate of simple test code
 
7859
_LT_COMPILER_BOILERPLATE
 
7860
_LT_LINKER_BOILERPLATE
 
7861
 
 
7862
# Allow CC to be a program name with arguments.
 
7863
lt_save_CC="$CC"
 
7864
lt_save_GCC=$GCC
 
7865
GCC=
 
7866
CC=${RC-"windres"}
 
7867
compiler=$CC
 
7868
_LT_TAGVAR(compiler, $1)=$CC
 
7869
_LT_CC_BASENAME([$compiler])
 
7870
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7871
 
 
7872
if test -n "$compiler"; then
 
7873
  :
 
7874
  _LT_CONFIG($1)
 
7875
fi
 
7876
 
 
7877
GCC=$lt_save_GCC
 
7878
AC_LANG_RESTORE
 
7879
CC="$lt_save_CC"
 
7880
])# _LT_LANG_RC_CONFIG
 
7881
 
 
7882
 
 
7883
# LT_PROG_GCJ
 
7884
# -----------
 
7885
AC_DEFUN([LT_PROG_GCJ],
 
7886
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7887
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7888
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7889
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7890
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7891
])
 
7892
 
 
7893
# Old name:
 
7894
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7895
dnl aclocal-1.4 backwards compatibility:
 
7896
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7897
 
 
7898
 
 
7899
# LT_PROG_RC
 
7900
# ----------
 
7901
AC_DEFUN([LT_PROG_RC],
 
7902
[AC_CHECK_TOOL(RC, windres,)
 
7903
])
 
7904
 
 
7905
# Old name:
 
7906
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7907
dnl aclocal-1.4 backwards compatibility:
 
7908
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7909
 
 
7910
 
 
7911
# _LT_DECL_EGREP
 
7912
# --------------
 
7913
# If we don't have a new enough Autoconf to choose the best grep
 
7914
# available, choose the one first in the user's PATH.
 
7915
m4_defun([_LT_DECL_EGREP],
 
7916
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7917
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7918
test -z "$GREP" && GREP=grep
 
7919
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7920
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7921
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7922
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7923
AC_SUBST([GREP])
 
7924
])
 
7925
 
 
7926
 
 
7927
# _LT_DECL_SED
 
7928
# ------------
 
7929
# Check for a fully-functional sed program, that truncates
 
7930
# as few characters as possible.  Prefer GNU sed if found.
 
7931
m4_defun([_LT_DECL_SED],
 
7932
[AC_PROG_SED
 
7933
test -z "$SED" && SED=sed
 
7934
Xsed="$SED -e 1s/^X//"
 
7935
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7936
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7937
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7938
])# _LT_DECL_SED
 
7939
 
 
7940
m4_ifndef([AC_PROG_SED], [
6611
7941
# NOTE: This macro has been submitted for inclusion into   #
6612
7942
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6613
7943
#  a released version of Autoconf we should remove this    #
6614
7944
#  macro and use it instead.                               #
6615
 
# LT_AC_PROG_SED
6616
 
# --------------
6617
 
# Check for a fully-functional sed program, that truncates
6618
 
# as few characters as possible.  Prefer GNU sed if found.
6619
 
AC_DEFUN([LT_AC_PROG_SED],
 
7945
 
 
7946
m4_defun([AC_PROG_SED],
6620
7947
[AC_MSG_CHECKING([for a sed that does not truncate output])
6621
7948
AC_CACHE_VAL(lt_cv_path_SED,
6622
7949
[# Loop through the user's path and test for sed and gsed.
6628
7955
  test -z "$as_dir" && as_dir=.
6629
7956
  for lt_ac_prog in sed gsed; do
6630
7957
    for ac_exec_ext in '' $ac_executable_extensions; do
6631
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7958
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6632
7959
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6633
7960
      fi
6634
7961
    done
6669
7996
SED=$lt_cv_path_SED
6670
7997
AC_SUBST([SED])
6671
7998
AC_MSG_RESULT([$SED])
6672
 
])
 
7999
])#AC_PROG_SED
 
8000
])#m4_ifndef
 
8001
 
 
8002
# Old name:
 
8003
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8004
dnl aclocal-1.4 backwards compatibility:
 
8005
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8006
 
 
8007
 
 
8008
# _LT_CHECK_SHELL_FEATURES
 
8009
# ------------------------
 
8010
# Find out whether the shell is Bourne or XSI compatible,
 
8011
# or has some other useful features.
 
8012
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8013
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8014
# Try some XSI features
 
8015
xsi_shell=no
 
8016
( _lt_dummy="a/b/c"
 
8017
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8018
      = c,a/b,, \
 
8019
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8020
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8021
  && xsi_shell=yes
 
8022
AC_MSG_RESULT([$xsi_shell])
 
8023
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8024
 
 
8025
AC_MSG_CHECKING([whether the shell understands "+="])
 
8026
lt_shell_append=no
 
8027
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8028
    >/dev/null 2>&1 \
 
8029
  && lt_shell_append=yes
 
8030
AC_MSG_RESULT([$lt_shell_append])
 
8031
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8032
 
 
8033
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8034
  lt_unset=unset
 
8035
else
 
8036
  lt_unset=false
 
8037
fi
 
8038
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8039
 
 
8040
# test EBCDIC or ASCII
 
8041
case `echo X|tr X '\101'` in
 
8042
 A) # ASCII based system
 
8043
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8044
  lt_SP2NL='tr \040 \012'
 
8045
  lt_NL2SP='tr \015\012 \040\040'
 
8046
  ;;
 
8047
 *) # EBCDIC based system
 
8048
  lt_SP2NL='tr \100 \n'
 
8049
  lt_NL2SP='tr \r\n \100\100'
 
8050
  ;;
 
8051
esac
 
8052
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8053
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8054
])# _LT_CHECK_SHELL_FEATURES
 
8055
 
 
8056
 
 
8057
# _LT_PROG_XSI_SHELLFNS
 
8058
# ---------------------
 
8059
# Bourne and XSI compatible variants of some useful shell functions.
 
8060
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8061
[case $xsi_shell in
 
8062
  yes)
 
8063
    cat << \_LT_EOF >> "$cfgfile"
 
8064
 
 
8065
# func_dirname file append nondir_replacement
 
8066
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8067
# otherwise set result to NONDIR_REPLACEMENT.
 
8068
func_dirname ()
 
8069
{
 
8070
  case ${1} in
 
8071
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8072
    *  ) func_dirname_result="${3}" ;;
 
8073
  esac
 
8074
}
 
8075
 
 
8076
# func_basename file
 
8077
func_basename ()
 
8078
{
 
8079
  func_basename_result="${1##*/}"
 
8080
}
 
8081
 
 
8082
# func_dirname_and_basename file append nondir_replacement
 
8083
# perform func_basename and func_dirname in a single function
 
8084
# call:
 
8085
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8086
#             add APPEND to the result, otherwise set result
 
8087
#             to NONDIR_REPLACEMENT.
 
8088
#             value returned in "$func_dirname_result"
 
8089
#   basename: Compute filename of FILE.
 
8090
#             value retuned in "$func_basename_result"
 
8091
# Implementation must be kept synchronized with func_dirname
 
8092
# and func_basename. For efficiency, we do not delegate to
 
8093
# those functions but instead duplicate the functionality here.
 
8094
func_dirname_and_basename ()
 
8095
{
 
8096
  case ${1} in
 
8097
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8098
    *  ) func_dirname_result="${3}" ;;
 
8099
  esac
 
8100
  func_basename_result="${1##*/}"
 
8101
}
 
8102
 
 
8103
# func_stripname prefix suffix name
 
8104
# strip PREFIX and SUFFIX off of NAME.
 
8105
# PREFIX and SUFFIX must not contain globbing or regex special
 
8106
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8107
# dot (in which case that matches only a dot).
 
8108
func_stripname ()
 
8109
{
 
8110
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8111
  # positional parameters, so assign one to ordinary parameter first.
 
8112
  func_stripname_result=${3}
 
8113
  func_stripname_result=${func_stripname_result#"${1}"}
 
8114
  func_stripname_result=${func_stripname_result%"${2}"}
 
8115
}
 
8116
 
 
8117
# func_opt_split
 
8118
func_opt_split ()
 
8119
{
 
8120
  func_opt_split_opt=${1%%=*}
 
8121
  func_opt_split_arg=${1#*=}
 
8122
}
 
8123
 
 
8124
# func_lo2o object
 
8125
func_lo2o ()
 
8126
{
 
8127
  case ${1} in
 
8128
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8129
    *)    func_lo2o_result=${1} ;;
 
8130
  esac
 
8131
}
 
8132
 
 
8133
# func_xform libobj-or-source
 
8134
func_xform ()
 
8135
{
 
8136
  func_xform_result=${1%.*}.lo
 
8137
}
 
8138
 
 
8139
# func_arith arithmetic-term...
 
8140
func_arith ()
 
8141
{
 
8142
  func_arith_result=$(( $[*] ))
 
8143
}
 
8144
 
 
8145
# func_len string
 
8146
# STRING may not start with a hyphen.
 
8147
func_len ()
 
8148
{
 
8149
  func_len_result=${#1}
 
8150
}
 
8151
 
 
8152
_LT_EOF
 
8153
    ;;
 
8154
  *) # Bourne compatible functions.
 
8155
    cat << \_LT_EOF >> "$cfgfile"
 
8156
 
 
8157
# func_dirname file append nondir_replacement
 
8158
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8159
# otherwise set result to NONDIR_REPLACEMENT.
 
8160
func_dirname ()
 
8161
{
 
8162
  # Extract subdirectory from the argument.
 
8163
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8164
  if test "X$func_dirname_result" = "X${1}"; then
 
8165
    func_dirname_result="${3}"
 
8166
  else
 
8167
    func_dirname_result="$func_dirname_result${2}"
 
8168
  fi
 
8169
}
 
8170
 
 
8171
# func_basename file
 
8172
func_basename ()
 
8173
{
 
8174
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8175
}
 
8176
 
 
8177
dnl func_dirname_and_basename
 
8178
dnl A portable version of this function is already defined in general.m4sh
 
8179
dnl so there is no need for it here.
 
8180
 
 
8181
# func_stripname prefix suffix name
 
8182
# strip PREFIX and SUFFIX off of NAME.
 
8183
# PREFIX and SUFFIX must not contain globbing or regex special
 
8184
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8185
# dot (in which case that matches only a dot).
 
8186
# func_strip_suffix prefix name
 
8187
func_stripname ()
 
8188
{
 
8189
  case ${2} in
 
8190
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8191
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8192
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8193
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8194
  esac
 
8195
}
 
8196
 
 
8197
# sed scripts:
 
8198
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8199
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8200
 
 
8201
# func_opt_split
 
8202
func_opt_split ()
 
8203
{
 
8204
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8205
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8206
}
 
8207
 
 
8208
# func_lo2o object
 
8209
func_lo2o ()
 
8210
{
 
8211
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8212
}
 
8213
 
 
8214
# func_xform libobj-or-source
 
8215
func_xform ()
 
8216
{
 
8217
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8218
}
 
8219
 
 
8220
# func_arith arithmetic-term...
 
8221
func_arith ()
 
8222
{
 
8223
  func_arith_result=`expr "$[@]"`
 
8224
}
 
8225
 
 
8226
# func_len string
 
8227
# STRING may not start with a hyphen.
 
8228
func_len ()
 
8229
{
 
8230
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8231
}
 
8232
 
 
8233
_LT_EOF
 
8234
esac
 
8235
 
 
8236
case $lt_shell_append in
 
8237
  yes)
 
8238
    cat << \_LT_EOF >> "$cfgfile"
 
8239
 
 
8240
# func_append var value
 
8241
# Append VALUE to the end of shell variable VAR.
 
8242
func_append ()
 
8243
{
 
8244
  eval "$[1]+=\$[2]"
 
8245
}
 
8246
_LT_EOF
 
8247
    ;;
 
8248
  *)
 
8249
    cat << \_LT_EOF >> "$cfgfile"
 
8250
 
 
8251
# func_append var value
 
8252
# Append VALUE to the end of shell variable VAR.
 
8253
func_append ()
 
8254
{
 
8255
  eval "$[1]=\$$[1]\$[2]"
 
8256
}
 
8257
 
 
8258
_LT_EOF
 
8259
    ;;
 
8260
  esac
 
8261
])
 
8262
 
 
8263
# Helper functions for option handling.                    -*- Autoconf -*-
 
8264
#
 
8265
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8266
#   Written by Gary V. Vaughan, 2004
 
8267
#
 
8268
# This file is free software; the Free Software Foundation gives
 
8269
# unlimited permission to copy and/or distribute it, with or without
 
8270
# modifications, as long as this notice is preserved.
 
8271
 
 
8272
# serial 6 ltoptions.m4
 
8273
 
 
8274
# This is to help aclocal find these macros, as it can't see m4_define.
 
8275
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8276
 
 
8277
 
 
8278
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8279
# ------------------------------------------
 
8280
m4_define([_LT_MANGLE_OPTION],
 
8281
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8282
 
 
8283
 
 
8284
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8285
# ---------------------------------------
 
8286
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8287
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8288
# saved as a flag.
 
8289
m4_define([_LT_SET_OPTION],
 
8290
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8291
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8292
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8293
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8294
])
 
8295
 
 
8296
 
 
8297
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8298
# ------------------------------------------------------------
 
8299
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8300
m4_define([_LT_IF_OPTION],
 
8301
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8302
 
 
8303
 
 
8304
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8305
# -------------------------------------------------------
 
8306
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8307
# are set.
 
8308
m4_define([_LT_UNLESS_OPTIONS],
 
8309
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8310
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8311
                      [m4_define([$0_found])])])[]dnl
 
8312
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8313
])[]dnl
 
8314
])
 
8315
 
 
8316
 
 
8317
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8318
# ----------------------------------------
 
8319
# OPTION-LIST is a space-separated list of Libtool options associated
 
8320
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8321
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8322
# the unknown option and exit.
 
8323
m4_defun([_LT_SET_OPTIONS],
 
8324
[# Set options
 
8325
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8326
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8327
 
 
8328
m4_if([$1],[LT_INIT],[
 
8329
  dnl
 
8330
  dnl Simply set some default values (i.e off) if boolean options were not
 
8331
  dnl specified:
 
8332
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8333
  ])
 
8334
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8335
  ])
 
8336
  dnl
 
8337
  dnl If no reference was made to various pairs of opposing options, then
 
8338
  dnl we run the default mode handler for the pair.  For example, if neither
 
8339
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8340
  dnl archives by default:
 
8341
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8342
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8343
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8344
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8345
                   [_LT_ENABLE_FAST_INSTALL])
 
8346
  ])
 
8347
])# _LT_SET_OPTIONS
 
8348
 
 
8349
 
 
8350
 
 
8351
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8352
# -----------------------------------------
 
8353
m4_define([_LT_MANGLE_DEFUN],
 
8354
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8355
 
 
8356
 
 
8357
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8358
# -----------------------------------------------
 
8359
m4_define([LT_OPTION_DEFINE],
 
8360
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8361
])# LT_OPTION_DEFINE
 
8362
 
 
8363
 
 
8364
# dlopen
 
8365
# ------
 
8366
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8367
])
 
8368
 
 
8369
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8370
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8371
AC_DIAGNOSE([obsolete],
 
8372
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8373
put the `dlopen' option into LT_INIT's first parameter.])
 
8374
])
 
8375
 
 
8376
dnl aclocal-1.4 backwards compatibility:
 
8377
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8378
 
 
8379
 
 
8380
# win32-dll
 
8381
# ---------
 
8382
# Declare package support for building win32 dll's.
 
8383
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8384
[enable_win32_dll=yes
 
8385
 
 
8386
case $host in
 
8387
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
8388
  AC_CHECK_TOOL(AS, as, false)
 
8389
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8390
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8391
  ;;
 
8392
esac
 
8393
 
 
8394
test -z "$AS" && AS=as
 
8395
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8396
 
 
8397
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8398
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8399
 
 
8400
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8401
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8402
])# win32-dll
 
8403
 
 
8404
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8405
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8406
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8407
AC_DIAGNOSE([obsolete],
 
8408
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8409
put the `win32-dll' option into LT_INIT's first parameter.])
 
8410
])
 
8411
 
 
8412
dnl aclocal-1.4 backwards compatibility:
 
8413
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8414
 
 
8415
 
 
8416
# _LT_ENABLE_SHARED([DEFAULT])
 
8417
# ----------------------------
 
8418
# implement the --enable-shared flag, and supports the `shared' and
 
8419
# `disable-shared' LT_INIT options.
 
8420
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8421
m4_define([_LT_ENABLE_SHARED],
 
8422
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8423
AC_ARG_ENABLE([shared],
 
8424
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8425
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8426
    [p=${PACKAGE-default}
 
8427
    case $enableval in
 
8428
    yes) enable_shared=yes ;;
 
8429
    no) enable_shared=no ;;
 
8430
    *)
 
8431
      enable_shared=no
 
8432
      # Look at the argument we got.  We use all the common list separators.
 
8433
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8434
      for pkg in $enableval; do
 
8435
        IFS="$lt_save_ifs"
 
8436
        if test "X$pkg" = "X$p"; then
 
8437
          enable_shared=yes
 
8438
        fi
 
8439
      done
 
8440
      IFS="$lt_save_ifs"
 
8441
      ;;
 
8442
    esac],
 
8443
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8444
 
 
8445
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8446
        [Whether or not to build shared libraries])
 
8447
])# _LT_ENABLE_SHARED
 
8448
 
 
8449
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8450
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8451
 
 
8452
# Old names:
 
8453
AC_DEFUN([AC_ENABLE_SHARED],
 
8454
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8455
])
 
8456
 
 
8457
AC_DEFUN([AC_DISABLE_SHARED],
 
8458
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8459
])
 
8460
 
 
8461
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8462
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8463
 
 
8464
dnl aclocal-1.4 backwards compatibility:
 
8465
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8466
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8467
 
 
8468
 
 
8469
 
 
8470
# _LT_ENABLE_STATIC([DEFAULT])
 
8471
# ----------------------------
 
8472
# implement the --enable-static flag, and support the `static' and
 
8473
# `disable-static' LT_INIT options.
 
8474
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8475
m4_define([_LT_ENABLE_STATIC],
 
8476
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8477
AC_ARG_ENABLE([static],
 
8478
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8479
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8480
    [p=${PACKAGE-default}
 
8481
    case $enableval in
 
8482
    yes) enable_static=yes ;;
 
8483
    no) enable_static=no ;;
 
8484
    *)
 
8485
     enable_static=no
 
8486
      # Look at the argument we got.  We use all the common list separators.
 
8487
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8488
      for pkg in $enableval; do
 
8489
        IFS="$lt_save_ifs"
 
8490
        if test "X$pkg" = "X$p"; then
 
8491
          enable_static=yes
 
8492
        fi
 
8493
      done
 
8494
      IFS="$lt_save_ifs"
 
8495
      ;;
 
8496
    esac],
 
8497
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8498
 
 
8499
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8500
        [Whether or not to build static libraries])
 
8501
])# _LT_ENABLE_STATIC
 
8502
 
 
8503
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8504
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8505
 
 
8506
# Old names:
 
8507
AC_DEFUN([AC_ENABLE_STATIC],
 
8508
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8509
])
 
8510
 
 
8511
AC_DEFUN([AC_DISABLE_STATIC],
 
8512
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8513
])
 
8514
 
 
8515
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8516
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8517
 
 
8518
dnl aclocal-1.4 backwards compatibility:
 
8519
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8520
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8521
 
 
8522
 
 
8523
 
 
8524
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8525
# ----------------------------------
 
8526
# implement the --enable-fast-install flag, and support the `fast-install'
 
8527
# and `disable-fast-install' LT_INIT options.
 
8528
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8529
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8530
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8531
AC_ARG_ENABLE([fast-install],
 
8532
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8533
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8534
    [p=${PACKAGE-default}
 
8535
    case $enableval in
 
8536
    yes) enable_fast_install=yes ;;
 
8537
    no) enable_fast_install=no ;;
 
8538
    *)
 
8539
      enable_fast_install=no
 
8540
      # Look at the argument we got.  We use all the common list separators.
 
8541
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8542
      for pkg in $enableval; do
 
8543
        IFS="$lt_save_ifs"
 
8544
        if test "X$pkg" = "X$p"; then
 
8545
          enable_fast_install=yes
 
8546
        fi
 
8547
      done
 
8548
      IFS="$lt_save_ifs"
 
8549
      ;;
 
8550
    esac],
 
8551
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8552
 
 
8553
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8554
         [Whether or not to optimize for fast installation])dnl
 
8555
])# _LT_ENABLE_FAST_INSTALL
 
8556
 
 
8557
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8558
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8559
 
 
8560
# Old names:
 
8561
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8562
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8563
AC_DIAGNOSE([obsolete],
 
8564
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8565
the `fast-install' option into LT_INIT's first parameter.])
 
8566
])
 
8567
 
 
8568
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8569
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8570
AC_DIAGNOSE([obsolete],
 
8571
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8572
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8573
])
 
8574
 
 
8575
dnl aclocal-1.4 backwards compatibility:
 
8576
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8577
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8578
 
 
8579
 
 
8580
# _LT_WITH_PIC([MODE])
 
8581
# --------------------
 
8582
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8583
# LT_INIT options.
 
8584
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8585
m4_define([_LT_WITH_PIC],
 
8586
[AC_ARG_WITH([pic],
 
8587
    [AS_HELP_STRING([--with-pic],
 
8588
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8589
    [pic_mode="$withval"],
 
8590
    [pic_mode=default])
 
8591
 
 
8592
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8593
 
 
8594
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8595
])# _LT_WITH_PIC
 
8596
 
 
8597
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8598
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8599
 
 
8600
# Old name:
 
8601
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8602
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8603
AC_DIAGNOSE([obsolete],
 
8604
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8605
put the `pic-only' option into LT_INIT's first parameter.])
 
8606
])
 
8607
 
 
8608
dnl aclocal-1.4 backwards compatibility:
 
8609
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8610
 
 
8611
 
 
8612
m4_define([_LTDL_MODE], [])
 
8613
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8614
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8615
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8616
                 [m4_define([_LTDL_MODE], [recursive])])
 
8617
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8618
                 [m4_define([_LTDL_MODE], [subproject])])
 
8619
 
 
8620
m4_define([_LTDL_TYPE], [])
 
8621
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8622
                 [m4_define([_LTDL_TYPE], [installable])])
 
8623
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8624
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8625
 
 
8626
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8627
#
 
8628
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8629
#   Written by Gary V. Vaughan, 2004
 
8630
#
 
8631
# This file is free software; the Free Software Foundation gives
 
8632
# unlimited permission to copy and/or distribute it, with or without
 
8633
# modifications, as long as this notice is preserved.
 
8634
 
 
8635
# serial 5 ltsugar.m4
 
8636
 
 
8637
# This is to help aclocal find these macros, as it can't see m4_define.
 
8638
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8639
 
 
8640
 
 
8641
# lt_join(SEP, ARG1, [ARG2...])
 
8642
# -----------------------------
 
8643
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8644
# associated separator.
 
8645
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8646
# versions in m4sugar had bugs.
 
8647
m4_define([lt_join],
 
8648
[m4_if([$#], [1], [],
 
8649
       [$#], [2], [[$2]],
 
8650
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8651
m4_define([_lt_join],
 
8652
[m4_if([$#$2], [2], [],
 
8653
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8654
 
 
8655
 
 
8656
# lt_car(LIST)
 
8657
# lt_cdr(LIST)
 
8658
# ------------
 
8659
# Manipulate m4 lists.
 
8660
# These macros are necessary as long as will still need to support
 
8661
# Autoconf-2.59 which quotes differently.
 
8662
m4_define([lt_car], [[$1]])
 
8663
m4_define([lt_cdr],
 
8664
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8665
       [$#], 1, [],
 
8666
       [m4_dquote(m4_shift($@))])])
 
8667
m4_define([lt_unquote], $1)
 
8668
 
 
8669
 
 
8670
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8671
# ------------------------------------------
 
8672
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8673
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8674
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8675
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8676
# than defined and empty).
 
8677
#
 
8678
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8679
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8680
m4_define([lt_append],
 
8681
[m4_define([$1],
 
8682
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8683
 
 
8684
 
 
8685
 
 
8686
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8687
# ----------------------------------------------------------
 
8688
# Produce a SEP delimited list of all paired combinations of elements of
 
8689
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8690
# has the form PREFIXmINFIXSUFFIXn.
 
8691
m4_define([lt_combine],
 
8692
[m4_if([$2], [], [],
 
8693
  [m4_if([$4], [], [],
 
8694
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
 
8695
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
 
8696
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
 
8697
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
 
8698
])
 
8699
 
 
8700
 
 
8701
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8702
# -----------------------------------------------------------------------
 
8703
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8704
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8705
m4_define([lt_if_append_uniq],
 
8706
[m4_ifdef([$1],
 
8707
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8708
                 [lt_append([$1], [$2], [$3])$4],
 
8709
                 [$5])],
 
8710
          [lt_append([$1], [$2], [$3])$4])])
 
8711
 
 
8712
 
 
8713
# lt_dict_add(DICT, KEY, VALUE)
 
8714
# -----------------------------
 
8715
m4_define([lt_dict_add],
 
8716
[m4_define([$1($2)], [$3])])
 
8717
 
 
8718
 
 
8719
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8720
# --------------------------------------------
 
8721
m4_define([lt_dict_add_subkey],
 
8722
[m4_define([$1($2:$3)], [$4])])
 
8723
 
 
8724
 
 
8725
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8726
# ----------------------------------
 
8727
m4_define([lt_dict_fetch],
 
8728
[m4_ifval([$3],
 
8729
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8730
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8731
 
 
8732
 
 
8733
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8734
# -----------------------------------------------------------------
 
8735
m4_define([lt_if_dict_fetch],
 
8736
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8737
        [$5],
 
8738
    [$6])])
 
8739
 
 
8740
 
 
8741
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8742
# --------------------------------------------------------------
 
8743
m4_define([lt_dict_filter],
 
8744
[m4_if([$5], [], [],
 
8745
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8746
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8747
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8748
])
 
8749
 
 
8750
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8751
#
 
8752
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8753
#   Written by Scott James Remnant, 2004
 
8754
#
 
8755
# This file is free software; the Free Software Foundation gives
 
8756
# unlimited permission to copy and/or distribute it, with or without
 
8757
# modifications, as long as this notice is preserved.
 
8758
 
 
8759
# Generated from ltversion.in.
 
8760
 
 
8761
# serial 2976 ltversion.m4
 
8762
# This file is part of GNU Libtool
 
8763
 
 
8764
m4_define([LT_PACKAGE_VERSION], [2.2.4])
 
8765
m4_define([LT_PACKAGE_REVISION], [1.2976])
 
8766
 
 
8767
AC_DEFUN([LTVERSION_VERSION],
 
8768
[macro_version='2.2.4'
 
8769
macro_revision='1.2976'
 
8770
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8771
_LT_DECL(, macro_revision, 0)
 
8772
])
 
8773
 
 
8774
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8775
#
 
8776
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8777
#   Written by Scott James Remnant, 2004.
 
8778
#
 
8779
# This file is free software; the Free Software Foundation gives
 
8780
# unlimited permission to copy and/or distribute it, with or without
 
8781
# modifications, as long as this notice is preserved.
 
8782
 
 
8783
# serial 4 lt~obsolete.m4
 
8784
 
 
8785
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8786
#
 
8787
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8788
# which have later been changed to m4_define as they aren't part of the
 
8789
# exported API, or moved to Autoconf or Automake where they belong.
 
8790
#
 
8791
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8792
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8793
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8794
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8795
# and doesn't know about Autoconf macros at all.)
 
8796
#
 
8797
# So we provide this file, which has a silly filename so it's always
 
8798
# included after everything else.  This provides aclocal with the
 
8799
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8800
# because those macros already exist, or will be overwritten later.
 
8801
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8802
#
 
8803
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8804
# Yes, that means every name once taken will need to remain here until
 
8805
# we give up compatibility with versions before 1.7, at which point
 
8806
# we need to keep only those names which we still refer to.
 
8807
 
 
8808
# This is to help aclocal find these macros, as it can't see m4_define.
 
8809
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8810
 
 
8811
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8812
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8813
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8814
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8815
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8816
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8817
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8818
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8819
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8820
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8821
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8822
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8823
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8824
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8825
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8826
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8827
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8828
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8829
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8830
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8831
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8832
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8833
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8834
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8835
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8836
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8837
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8838
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8839
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8840
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8841
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8842
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8843
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8844
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8845
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8846
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8847
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8848
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8849
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8850
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8851
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8852
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8853
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8854
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8855
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8856
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8857
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8858
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8859
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8860
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8861
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8862
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8863
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8864
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8865
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
6673
8866
 
6674
8867
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
6675
8868
6739
8932
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6740
8933
# ---------------------------------------------
6741
8934
m4_define([_PKG_CONFIG],
6742
 
[if test -n "$PKG_CONFIG"; then
6743
 
    if test -n "$$1"; then
6744
 
        pkg_cv_[]$1="$$1"
6745
 
    else
6746
 
        PKG_CHECK_EXISTS([$3],
6747
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6748
 
                         [pkg_failed=yes])
6749
 
    fi
6750
 
else
6751
 
        pkg_failed=untried
 
8935
[if test -n "$$1"; then
 
8936
    pkg_cv_[]$1="$$1"
 
8937
 elif test -n "$PKG_CONFIG"; then
 
8938
    PKG_CHECK_EXISTS([$3],
 
8939
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8940
                     [pkg_failed=yes])
 
8941
 else
 
8942
    pkg_failed=untried
6752
8943
fi[]dnl
6753
8944
])# _PKG_CONFIG
6754
8945
 
6792
8983
if test $pkg_failed = yes; then
6793
8984
        _PKG_SHORT_ERRORS_SUPPORTED
6794
8985
        if test $_pkg_short_errors_supported = yes; then
6795
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
8986
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
6796
8987
        else 
6797
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
8988
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
6798
8989
        fi
6799
8990
        # Put the nasty error message in config.log where it belongs
6800
8991
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7921
10112
AC_SUBST([am__untar])
7922
10113
]) # _AM_PROG_TAR
7923
10114
 
7924
 
dnl AM_GCONF_SOURCE_2
7925
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
7926
 
dnl  (i.e. pass to gconftool-2
7927
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
7928
 
dnl  you should install foo.schemas files
7929
 
dnl
7930
 
 
7931
 
AC_DEFUN([AM_GCONF_SOURCE_2],
7932
 
[
7933
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7934
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7935
 
  else
7936
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7937
 
  fi
7938
 
 
7939
 
  AC_ARG_WITH([gconf-source],
7940
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
7941
 
                             [Config database for installing schema files.]),
7942
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
7943
 
 
7944
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
7945
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
7946
 
 
7947
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7948
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7949
 
  fi
7950
 
 
7951
 
  AC_ARG_WITH([gconf-schema-file-dir],
7952
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
7953
 
                             [Directory for installing schema files.]),
7954
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
7955
 
 
7956
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
7957
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
7958
 
 
7959
 
  AC_ARG_ENABLE(schemas-install,
7960
 
     [  --disable-schemas-install       Disable the schemas installation],
7961
 
     [case ${enableval} in
7962
 
       yes|no) ;;
7963
 
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7964
 
      esac])
7965
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
7966
 
])
7967
 
 
7968
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7969
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7970
 
#
7971
 
# This file is free software, distributed under the terms of the GNU
7972
 
# General Public License.  As a special exception to the GNU General
7973
 
# Public License, this file may be distributed as part of a program
7974
 
# that contains a configuration script generated by Autoconf, under
7975
 
# the same distribution terms as the rest of that program.
7976
 
#
7977
 
# This file can be copied and used freely without restrictions.  It can
7978
 
# be used in projects which are not available under the GNU Public License
7979
 
# but which still want to provide support for the GNU gettext functionality.
7980
 
#
7981
 
# Macro to add for using GNU gettext.
7982
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7983
 
#
7984
 
# Modified to never use included libintl. 
7985
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7986
 
#
7987
 
# Major rework to remove unused code
7988
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7989
 
#
7990
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
7991
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7992
 
#
7993
 
# Modified to require ngettext
7994
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7995
 
#
7996
 
# We need this here as well, since someone might use autoconf-2.5x
7997
 
# to configure GLib then an older version to configure a package
7998
 
# using AM_GLIB_GNU_GETTEXT
7999
 
AC_PREREQ(2.53)
8000
 
 
8001
 
dnl
8002
 
dnl We go to great lengths to make sure that aclocal won't 
8003
 
dnl try to pull in the installed version of these macros
8004
 
dnl when running aclocal in the glib directory.
8005
 
dnl
8006
 
m4_copy([AC_DEFUN],[glib_DEFUN])
8007
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
8008
 
dnl
8009
 
dnl At the end, if we're not within glib, we'll define the public
8010
 
dnl definitions in terms of our private definitions.
8011
 
dnl
8012
 
 
8013
 
# GLIB_LC_MESSAGES
8014
 
#--------------------
8015
 
glib_DEFUN([GLIB_LC_MESSAGES],
8016
 
  [AC_CHECK_HEADERS([locale.h])
8017
 
    if test $ac_cv_header_locale_h = yes; then
8018
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
8019
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
8020
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
8021
 
    if test $am_cv_val_LC_MESSAGES = yes; then
8022
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
8023
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
8024
 
    fi
8025
 
  fi])
8026
 
 
8027
 
# GLIB_PATH_PROG_WITH_TEST
8028
 
#----------------------------
8029
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
8030
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
8031
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
8032
 
[# Extract the first word of "$2", so it can be a program name with args.
8033
 
set dummy $2; ac_word=[$]2
8034
 
AC_MSG_CHECKING([for $ac_word])
8035
 
AC_CACHE_VAL(ac_cv_path_$1,
8036
 
[case "[$]$1" in
8037
 
  /*)
8038
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
8039
 
  ;;
8040
 
  *)
8041
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8042
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
8043
 
    test -z "$ac_dir" && ac_dir=.
8044
 
    if test -f $ac_dir/$ac_word; then
8045
 
      if [$3]; then
8046
 
        ac_cv_path_$1="$ac_dir/$ac_word"
8047
 
        break
8048
 
      fi
8049
 
    fi
8050
 
  done
8051
 
  IFS="$ac_save_ifs"
8052
 
dnl If no 4th arg is given, leave the cache variable unset,
8053
 
dnl so AC_PATH_PROGS will keep looking.
8054
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
8055
 
])dnl
8056
 
  ;;
8057
 
esac])dnl
8058
 
$1="$ac_cv_path_$1"
8059
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
8060
 
  AC_MSG_RESULT([$]$1)
8061
 
else
8062
 
  AC_MSG_RESULT(no)
8063
 
fi
8064
 
AC_SUBST($1)dnl
8065
 
])
8066
 
 
8067
 
# GLIB_WITH_NLS
8068
 
#-----------------
8069
 
glib_DEFUN([GLIB_WITH_NLS],
8070
 
  dnl NLS is obligatory
8071
 
  [USE_NLS=yes
8072
 
    AC_SUBST(USE_NLS)
8073
 
 
8074
 
    gt_cv_have_gettext=no
8075
 
 
8076
 
    CATOBJEXT=NONE
8077
 
    XGETTEXT=:
8078
 
    INTLLIBS=
8079
 
 
8080
 
    AC_CHECK_HEADER(libintl.h,
8081
 
     [gt_cv_func_dgettext_libintl="no"
8082
 
      libintl_extra_libs=""
8083
 
 
8084
 
      #
8085
 
      # First check in libc
8086
 
      #
8087
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
8088
 
        [AC_TRY_LINK([
8089
 
#include <libintl.h>
8090
 
],
8091
 
         [return !ngettext ("","", 1)],
8092
 
          gt_cv_func_ngettext_libc=yes,
8093
 
          gt_cv_func_ngettext_libc=no)
8094
 
        ])
8095
 
  
8096
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8097
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
8098
 
                [AC_TRY_LINK([
8099
 
#include <libintl.h>
8100
 
],
8101
 
                  [return !dgettext ("","")],
8102
 
                  gt_cv_func_dgettext_libc=yes,
8103
 
                  gt_cv_func_dgettext_libc=no)
8104
 
                ])
8105
 
      fi
8106
 
  
8107
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8108
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
8109
 
      fi
8110
 
 
8111
 
      #
8112
 
      # If we don't have everything we want, check in libintl
8113
 
      #
8114
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
8115
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
8116
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8117
 
        
8118
 
        AC_CHECK_LIB(intl, bindtextdomain,
8119
 
            [AC_CHECK_LIB(intl, ngettext,
8120
 
                    [AC_CHECK_LIB(intl, dgettext,
8121
 
                                  gt_cv_func_dgettext_libintl=yes)])])
8122
 
 
8123
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8124
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
8125
 
          AC_MSG_RESULT([])
8126
 
          AC_CHECK_LIB(intl, ngettext,
8127
 
                [AC_CHECK_LIB(intl, dcgettext,
8128
 
                       [gt_cv_func_dgettext_libintl=yes
8129
 
                        libintl_extra_libs=-liconv],
8130
 
                        :,-liconv)],
8131
 
                :,-liconv)
8132
 
        fi
8133
 
 
8134
 
        #
8135
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
8136
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
8137
 
        # and both have dgettext and ngettext
8138
 
        #
8139
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8140
 
          glib_save_LIBS="$LIBS"
8141
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
8142
 
          unset ac_cv_func_bind_textdomain_codeset
8143
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
8144
 
          LIBS="$glib_save_LIBS"
8145
 
 
8146
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8147
 
            gt_cv_func_dgettext_libc=no
8148
 
          else
8149
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
8150
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
8151
 
              gt_cv_func_dgettext_libintl=no
8152
 
            fi
8153
 
          fi
8154
 
        fi
8155
 
      fi
8156
 
 
8157
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
8158
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8159
 
        gt_cv_have_gettext=yes
8160
 
      fi
8161
 
  
8162
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8163
 
        INTLLIBS="-lintl $libintl_extra_libs"
8164
 
      fi
8165
 
  
8166
 
      if test "$gt_cv_have_gettext" = "yes"; then
8167
 
        AC_DEFINE(HAVE_GETTEXT,1,
8168
 
          [Define if the GNU gettext() function is already present or preinstalled.])
8169
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
8170
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
8171
 
        if test "$MSGFMT" != "no"; then
8172
 
          glib_save_LIBS="$LIBS"
8173
 
          LIBS="$LIBS $INTLLIBS"
8174
 
          AC_CHECK_FUNCS(dcgettext)
8175
 
          MSGFMT_OPTS=
8176
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
8177
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
8178
 
msgid ""
8179
 
msgstr ""
8180
 
"Content-Type: text/plain; charset=UTF-8\n"
8181
 
"Project-Id-Version: test 1.0\n"
8182
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
8183
 
"Last-Translator: test <foo@bar.xx>\n"
8184
 
"Language-Team: C <LL@li.org>\n"
8185
 
"MIME-Version: 1.0\n"
8186
 
"Content-Transfer-Encoding: 8bit\n"
8187
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
8188
 
          AC_SUBST(MSGFMT_OPTS)
8189
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
8190
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
8191
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
8192
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
8193
 
                         return _nl_msg_cat_cntr],
8194
 
            [CATOBJEXT=.gmo 
8195
 
             DATADIRNAME=share],
8196
 
            [case $host in
8197
 
            *-*-solaris*)
8198
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
8199
 
            dnl GNU format message catalog is always supported,
8200
 
            dnl since both are added to the libc all together.
8201
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
8202
 
            dnl and CATOBJEXT=.gmo in this case.
8203
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
8204
 
              [CATOBJEXT=.gmo 
8205
 
               DATADIRNAME=share],
8206
 
              [CATOBJEXT=.mo
8207
 
               DATADIRNAME=lib])
8208
 
            ;;
8209
 
            *)
8210
 
            CATOBJEXT=.mo
8211
 
            DATADIRNAME=lib
8212
 
            ;;
8213
 
            esac])
8214
 
          LIBS="$glib_save_LIBS"
8215
 
          INSTOBJEXT=.mo
8216
 
        else
8217
 
          gt_cv_have_gettext=no
8218
 
        fi
8219
 
      fi
8220
 
    ])
8221
 
 
8222
 
    if test "$gt_cv_have_gettext" = "yes" ; then
8223
 
      AC_DEFINE(ENABLE_NLS, 1,
8224
 
        [always defined to indicate that i18n is enabled])
8225
 
    fi
8226
 
 
8227
 
    dnl Test whether we really found GNU xgettext.
8228
 
    if test "$XGETTEXT" != ":"; then
8229
 
      dnl If it is not GNU xgettext we define it as : so that the
8230
 
      dnl Makefiles still can work.
8231
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8232
 
        : ;
8233
 
      else
8234
 
        AC_MSG_RESULT(
8235
 
          [found xgettext program is not GNU xgettext; ignore it])
8236
 
        XGETTEXT=":"
8237
 
      fi
8238
 
    fi
8239
 
 
8240
 
    # We need to process the po/ directory.
8241
 
    POSUB=po
8242
 
 
8243
 
    AC_OUTPUT_COMMANDS(
8244
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
8245
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8246
 
      esac])
8247
 
 
8248
 
    dnl These rules are solely for the distribution goal.  While doing this
8249
 
    dnl we only have to keep exactly one list of the available catalogs
8250
 
    dnl in configure.in.
8251
 
    for lang in $ALL_LINGUAS; do
8252
 
      GMOFILES="$GMOFILES $lang.gmo"
8253
 
      POFILES="$POFILES $lang.po"
8254
 
    done
8255
 
 
8256
 
    dnl Make all variables we use known to autoconf.
8257
 
    AC_SUBST(CATALOGS)
8258
 
    AC_SUBST(CATOBJEXT)
8259
 
    AC_SUBST(DATADIRNAME)
8260
 
    AC_SUBST(GMOFILES)
8261
 
    AC_SUBST(INSTOBJEXT)
8262
 
    AC_SUBST(INTLLIBS)
8263
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
8264
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
8265
 
    AC_SUBST(POFILES)
8266
 
    AC_SUBST(POSUB)
8267
 
  ])
8268
 
 
8269
 
# AM_GLIB_GNU_GETTEXT
8270
 
# -------------------
8271
 
# Do checks necessary for use of gettext. If a suitable implementation 
8272
 
# of gettext is found in either in libintl or in the C library,
8273
 
# it will set INTLLIBS to the libraries needed for use of gettext
8274
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
8275
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
8276
 
# on various variables needed by the Makefile.in.in installed by 
8277
 
# glib-gettextize.
8278
 
dnl
8279
 
glib_DEFUN([GLIB_GNU_GETTEXT],
8280
 
  [AC_REQUIRE([AC_PROG_CC])dnl
8281
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
8282
 
   
8283
 
   GLIB_LC_MESSAGES
8284
 
   GLIB_WITH_NLS
8285
 
 
8286
 
   if test "$gt_cv_have_gettext" = "yes"; then
8287
 
     if test "x$ALL_LINGUAS" = "x"; then
8288
 
       LINGUAS=
8289
 
     else
8290
 
       AC_MSG_CHECKING(for catalogs to be installed)
8291
 
       NEW_LINGUAS=
8292
 
       for presentlang in $ALL_LINGUAS; do
8293
 
         useit=no
8294
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8295
 
           desiredlanguages="$LINGUAS"
8296
 
         else
8297
 
           desiredlanguages="$ALL_LINGUAS"
8298
 
         fi
8299
 
         for desiredlang in $desiredlanguages; do
8300
 
           # Use the presentlang catalog if desiredlang is
8301
 
           #   a. equal to presentlang, or
8302
 
           #   b. a variant of presentlang (because in this case,
8303
 
           #      presentlang can be used as a fallback for messages
8304
 
           #      which are not translated in the desiredlang catalog).
8305
 
           case "$desiredlang" in
8306
 
             "$presentlang"*) useit=yes;;
8307
 
           esac
8308
 
         done
8309
 
         if test $useit = yes; then
8310
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8311
 
         fi
8312
 
       done
8313
 
       LINGUAS=$NEW_LINGUAS
8314
 
       AC_MSG_RESULT($LINGUAS)
8315
 
     fi
8316
 
 
8317
 
     dnl Construct list of names of catalog files to be constructed.
8318
 
     if test -n "$LINGUAS"; then
8319
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8320
 
     fi
8321
 
   fi
8322
 
 
8323
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
8324
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
8325
 
   dnl Try to locate is.
8326
 
   MKINSTALLDIRS=
8327
 
   if test -n "$ac_aux_dir"; then
8328
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8329
 
   fi
8330
 
   if test -z "$MKINSTALLDIRS"; then
8331
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8332
 
   fi
8333
 
   AC_SUBST(MKINSTALLDIRS)
8334
 
 
8335
 
   dnl Generate list of files to be processed by xgettext which will
8336
 
   dnl be included in po/Makefile.
8337
 
   test -d po || mkdir po
8338
 
   if test "x$srcdir" != "x."; then
8339
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8340
 
       posrcprefix="$srcdir/"
8341
 
     else
8342
 
       posrcprefix="../$srcdir/"
8343
 
     fi
8344
 
   else
8345
 
     posrcprefix="../"
8346
 
   fi
8347
 
   rm -f po/POTFILES
8348
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8349
 
        < $srcdir/po/POTFILES.in > po/POTFILES
8350
 
  ])
8351
 
 
8352
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
8353
 
# -------------------------------
8354
 
# Define VARIABLE to the location where catalog files will
8355
 
# be installed by po/Makefile.
8356
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
8357
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
8358
 
glib_save_prefix="$prefix"
8359
 
glib_save_exec_prefix="$exec_prefix"
8360
 
glib_save_datarootdir="$datarootdir"
8361
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8362
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8363
 
datarootdir=`eval echo "${datarootdir}"`
8364
 
if test "x$CATOBJEXT" = "x.mo" ; then
8365
 
  localedir=`eval echo "${libdir}/locale"`
8366
 
else
8367
 
  localedir=`eval echo "${datadir}/locale"`
8368
 
fi
8369
 
prefix="$glib_save_prefix"
8370
 
exec_prefix="$glib_save_exec_prefix"
8371
 
datarootdir="$glib_save_datarootdir"
8372
 
AC_DEFINE_UNQUOTED($1, "$localedir",
8373
 
  [Define the location where the catalogs will be installed])
8374
 
])
8375
 
 
8376
 
dnl
8377
 
dnl Now the definitions that aclocal will find
8378
 
dnl
8379
 
ifdef(glib_configure_in,[],[
8380
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
8381
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
8382
 
])dnl
8383
 
 
8384
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
8385
 
8386
 
# Create a temporary file with TEST-FILE as its contents and pass the
8387
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
8388
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
8389
 
AC_DEFUN([GLIB_RUN_PROG],
8390
 
[cat >conftest.foo <<_ACEOF
8391
 
$2
8392
 
_ACEOF
8393
 
if AC_RUN_LOG([$1 conftest.foo]); then
8394
 
  m4_ifval([$3], [$3], [:])
8395
 
m4_ifvaln([$4], [else $4])dnl
8396
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
8397
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
8398
 
fi])
8399
 
 
8400
 
 
8401
 
# gnome-common.m4
8402
 
8403
 
 
8404
 
dnl GNOME_COMMON_INIT
8405
 
 
8406
 
AC_DEFUN([GNOME_COMMON_INIT],
8407
 
[
8408
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
8409
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
8410
 
 
8411
 
  dnl ensure that when the Automake generated makefile calls aclocal,
8412
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
8413
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
8414
 
  if test -n "$ac_macro_dir"; then
8415
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
8416
 
  fi
8417
 
 
8418
 
  AC_SUBST([ACLOCAL_AMFLAGS])
8419
 
])
8420
 
 
8421
 
AC_DEFUN([GNOME_DEBUG_CHECK],
8422
 
[
8423
 
        AC_ARG_ENABLE([debug],
8424
 
                      AC_HELP_STRING([--enable-debug],
8425
 
                                     [turn on debugging]),,
8426
 
                      [enable_debug=no])
8427
 
 
8428
 
        if test x$enable_debug = xyes ; then
8429
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
8430
 
                [Enable additional debugging at the expense of performance and size])
8431
 
        fi
8432
 
])
8433
 
 
8434
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
8435
 
dnl define DISABLE_DEPRECATED
8436
 
dnl
8437
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
8438
 
[
8439
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
8440
 
 
8441
 
        if test $USE_MAINTAINER_MODE = yes; then
8442
 
                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"
8443
 
        else
8444
 
                DISABLE_DEPRECATED=""
8445
 
        fi
8446
 
        AC_SUBST(DISABLE_DEPRECATED)
8447
 
])
8448
 
 
8449
 
dnl GNOME_COMPILE_WARNINGS
8450
 
dnl Turn on many useful compiler warnings
8451
 
dnl For now, only works on GCC
8452
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
8453
 
    dnl ******************************
8454
 
    dnl More compiler warnings
8455
 
    dnl ******************************
8456
 
 
8457
 
    AC_ARG_ENABLE(compile-warnings, 
8458
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
8459
 
                                 [Turn on compiler warnings]),,
8460
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
8461
 
 
8462
 
    warnCFLAGS=
8463
 
    if test "x$GCC" != xyes; then
8464
 
        enable_compile_warnings=no
8465
 
    fi
8466
 
 
8467
 
    warning_flags=
8468
 
    realsave_CFLAGS="$CFLAGS"
8469
 
 
8470
 
    case "$enable_compile_warnings" in
8471
 
    no)
8472
 
        warning_flags=
8473
 
        ;;
8474
 
    minimum)
8475
 
        warning_flags="-Wall"
8476
 
        ;;
8477
 
    yes)
8478
 
        warning_flags="-Wall -Wmissing-prototypes"
8479
 
        ;;
8480
 
    maximum|error)
8481
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8482
 
        CFLAGS="$warning_flags $CFLAGS"
8483
 
        for option in -Wno-sign-compare; do
8484
 
                SAVE_CFLAGS="$CFLAGS"
8485
 
                CFLAGS="$CFLAGS $option"
8486
 
                AC_MSG_CHECKING([whether gcc understands $option])
8487
 
                AC_TRY_COMPILE([], [],
8488
 
                        has_option=yes,
8489
 
                        has_option=no,)
8490
 
                CFLAGS="$SAVE_CFLAGS"
8491
 
                AC_MSG_RESULT($has_option)
8492
 
                if test $has_option = yes; then
8493
 
                  warning_flags="$warning_flags $option"
8494
 
                fi
8495
 
                unset has_option
8496
 
                unset SAVE_CFLAGS
8497
 
        done
8498
 
        unset option
8499
 
        if test "$enable_compile_warnings" = "error" ; then
8500
 
            warning_flags="$warning_flags -Werror"
8501
 
        fi
8502
 
        ;;
8503
 
    *)
8504
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
8505
 
        ;;
8506
 
    esac
8507
 
    CFLAGS="$realsave_CFLAGS"
8508
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
8509
 
    AC_MSG_RESULT($warning_flags)
8510
 
 
8511
 
    AC_ARG_ENABLE(iso-c,
8512
 
                  AC_HELP_STRING([--enable-iso-c],
8513
 
                                 [Try to warn if code is not ISO C ]),,
8514
 
                  [enable_iso_c=no])
8515
 
 
8516
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
8517
 
    complCFLAGS=
8518
 
    if test "x$enable_iso_c" != "xno"; then
8519
 
        if test "x$GCC" = "xyes"; then
8520
 
        case " $CFLAGS " in
8521
 
            *[\ \       ]-ansi[\ \      ]*) ;;
8522
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
8523
 
        esac
8524
 
        case " $CFLAGS " in
8525
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
8526
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
8527
 
        esac
8528
 
        fi
8529
 
    fi
8530
 
    AC_MSG_RESULT($complCFLAGS)
8531
 
 
8532
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
8533
 
    AC_SUBST(WARN_CFLAGS)
8534
 
])
8535
 
 
8536
 
dnl For C++, do basically the same thing.
8537
 
 
8538
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
8539
 
  AC_ARG_ENABLE(cxx-warnings,
8540
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
8541
 
                               [Turn on compiler warnings.]),,
8542
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
8543
 
 
8544
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8545
 
  warnCXXFLAGS=
8546
 
  if test "x$GXX" != xyes; then
8547
 
    enable_cxx_warnings=no
8548
 
  fi
8549
 
  if test "x$enable_cxx_warnings" != "xno"; then
8550
 
    if test "x$GXX" = "xyes"; then
8551
 
      case " $CXXFLAGS " in
8552
 
      *[\ \     ]-Wall[\ \      ]*) ;;
8553
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
8554
 
      esac
8555
 
 
8556
 
      ## -W is not all that useful.  And it cannot be controlled
8557
 
      ## with individual -Wno-xxx flags, unlike -Wall
8558
 
      if test "x$enable_cxx_warnings" = "xyes"; then
8559
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
8560
 
      fi
8561
 
    fi
8562
 
  fi
8563
 
  AC_MSG_RESULT($warnCXXFLAGS)
8564
 
 
8565
 
   AC_ARG_ENABLE(iso-cxx,
8566
 
                 AC_HELP_STRING([--enable-iso-cxx],
8567
 
                                [Try to warn if code is not ISO C++ ]),,
8568
 
                 [enable_iso_cxx=no])
8569
 
 
8570
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8571
 
   complCXXFLAGS=
8572
 
   if test "x$enable_iso_cxx" != "xno"; then
8573
 
     if test "x$GXX" = "xyes"; then
8574
 
      case " $CXXFLAGS " in
8575
 
      *[\ \     ]-ansi[\ \      ]*) ;;
8576
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8577
 
      esac
8578
 
 
8579
 
      case " $CXXFLAGS " in
8580
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
8581
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
8582
 
      esac
8583
 
     fi
8584
 
   fi
8585
 
  AC_MSG_RESULT($complCXXFLAGS)
8586
 
 
8587
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
8588
 
  AC_SUBST(WARN_CXXFLAGS)
8589
 
])
8590
 
 
8591
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
8592
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
8593
 
AC_DEFUN([GNOME_DOC_DEFINES],
8594
 
[
8595
 
AC_ARG_WITH([help-dir],
8596
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
8597
 
  [with_help_dir='${datadir}/gnome/help'])
8598
 
HELP_DIR="$with_help_dir"
8599
 
AC_SUBST(HELP_DIR)
8600
 
 
8601
 
AC_ARG_WITH([omf-dir],
8602
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
8603
 
  [with_omf_dir='${datadir}/omf'])
8604
 
OMF_DIR="$with_omf_dir"
8605
 
AC_SUBST(OMF_DIR)
8606
 
 
8607
 
AC_ARG_WITH([help-formats],
8608
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
8609
 
  [with_help_formats=''])
8610
 
DOC_USER_FORMATS="$with_help_formats"
8611
 
AC_SUBST(DOC_USER_FORMATS)
8612
 
 
8613
 
AC_ARG_ENABLE([scrollkeeper],
8614
 
        [AC_HELP_STRING([--disable-scrollkeeper],
8615
 
                        [do not make updates to the scrollkeeper database])],,
8616
 
        enable_scrollkeeper=yes)
8617
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
8618
 
 
8619
 
dnl disable scrollkeeper automatically for distcheck
8620
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
8621
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
8622
 
 
8623
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
8624
 
])
8625
 
 
8626
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
8627
 
#
8628
 
AC_DEFUN([GNOME_DOC_INIT],
8629
 
[
8630
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
8631
 
 
8632
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
8633
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
8634
 
 
8635
 
if test "$gdu_cv_have_gdu" = "yes"; then
8636
 
        ifelse([$2],,[:],[$2])
8637
 
else
8638
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
8639
 
fi
8640
 
 
8641
 
GNOME_DOC_DEFINES
8642
 
])
8643
 
 
8644
 
dnl -*- mode: autoconf -*-
8645
 
 
8646
 
# serial 1
8647
 
 
8648
 
dnl Usage:
8649
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
8650
 
AC_DEFUN([GTK_DOC_CHECK],
8651
 
[
8652
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8653
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8654
 
  dnl for overriding the documentation installation directory
8655
 
  AC_ARG_WITH([html-dir],
8656
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8657
 
    [with_html_dir='${datadir}/gtk-doc/html'])
8658
 
  HTML_DIR="$with_html_dir"
8659
 
  AC_SUBST([HTML_DIR])
8660
 
 
8661
 
  dnl enable/disable documentation building
8662
 
  AC_ARG_ENABLE([gtk-doc],
8663
 
    AS_HELP_STRING([--enable-gtk-doc],
8664
 
                   [use gtk-doc to build documentation [[default=no]]]),,
8665
 
    [enable_gtk_doc=no])
8666
 
 
8667
 
  if test x$enable_gtk_doc = xyes; then
8668
 
    ifelse([$1],[],
8669
 
      [PKG_CHECK_EXISTS([gtk-doc],,
8670
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8671
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
8672
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8673
 
  fi
8674
 
 
8675
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
8676
 
  AC_MSG_RESULT($enable_gtk_doc)
8677
 
 
8678
 
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
8679
 
 
8680
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8681
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
8682
 
])
8683
 
 
8684
 
 
8685
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
8686
 
# serial 40 IT_PROG_INTLTOOL
8687
 
AC_DEFUN([IT_PROG_INTLTOOL],
8688
 
[AC_PREREQ([2.50])dnl
8689
 
 
8690
 
case "$am__api_version" in
8691
 
    1.[01234])
8692
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
8693
 
    ;;
8694
 
    *)
8695
 
    ;;
8696
 
esac
8697
 
 
8698
 
if test -n "$1"; then
8699
 
    AC_MSG_CHECKING([for intltool >= $1])
8700
 
 
8701
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
8702
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
8703
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
8704
 
    ]
8705
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
8706
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
8707
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
8708
 
fi
8709
 
 
8710
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
8711
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
8712
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
8713
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
8714
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
8715
 
fi
8716
 
 
8717
 
  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 $< [$]@' 
8718
 
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 $< [$]@' 
8719
 
     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 $< [$]@' 
8720
 
     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 $< [$]@' 
8721
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
8722
 
     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 $< [$]@' 
8723
 
   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 $< [$]@' 
8724
 
    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 $< [$]@' 
8725
 
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 $< [$]@' 
8726
 
       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 $< [$]@' 
8727
 
      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 $< [$]@' 
8728
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
8729
 
      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 $< [$]@' 
8730
 
      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 $< [$]@' 
8731
 
    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 $< [$]@' 
8732
 
  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 $< [$]@' 
8733
 
    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 $< [$]@' 
8734
 
    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 $< [$]@'
8735
 
   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 $< [$]@'
8736
 
 
8737
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
8738
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
8739
 
AC_SUBST(INTLTOOL_KEYS_RULE)
8740
 
AC_SUBST(INTLTOOL_PROP_RULE)
8741
 
AC_SUBST(INTLTOOL_OAF_RULE)
8742
 
AC_SUBST(INTLTOOL_PONG_RULE)
8743
 
AC_SUBST(INTLTOOL_SERVER_RULE)
8744
 
AC_SUBST(INTLTOOL_SHEET_RULE)
8745
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
8746
 
AC_SUBST(INTLTOOL_UI_RULE)
8747
 
AC_SUBST(INTLTOOL_XAM_RULE)
8748
 
AC_SUBST(INTLTOOL_KBD_RULE)
8749
 
AC_SUBST(INTLTOOL_XML_RULE)
8750
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
8751
 
AC_SUBST(INTLTOOL_CAVES_RULE)
8752
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
8753
 
AC_SUBST(INTLTOOL_THEME_RULE)
8754
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
8755
 
AC_SUBST(INTLTOOL_POLICY_RULE)
8756
 
 
8757
 
# Check the gettext tools to make sure they are GNU
8758
 
AC_PATH_PROG(XGETTEXT, xgettext)
8759
 
AC_PATH_PROG(MSGMERGE, msgmerge)
8760
 
AC_PATH_PROG(MSGFMT, msgfmt)
8761
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
8762
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
8763
 
fi
8764
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8765
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8766
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8767
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8768
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
8769
 
fi
8770
 
 
8771
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
8772
 
if test -z "$INTLTOOL_PERL"; then
8773
 
   AC_MSG_ERROR([perl not found; required for intltool])
8774
 
fi
8775
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8776
 
   AC_MSG_ERROR([perl 5.x required for intltool])
8777
 
fi
8778
 
if test "x$2" != "xno-xml"; then
8779
 
   AC_MSG_CHECKING([for XML::Parser])
8780
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8781
 
       AC_MSG_RESULT([ok])
8782
 
   else
8783
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
8784
 
   fi
8785
 
fi
8786
 
 
8787
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
8788
 
AC_SUBST(ALL_LINGUAS)
8789
 
 
8790
 
# Set DATADIRNAME correctly if it is not set yet
8791
 
# (copied from glib-gettext.m4)
8792
 
if test -z "$DATADIRNAME"; then
8793
 
  AC_LINK_IFELSE(
8794
 
    [AC_LANG_PROGRAM([[]],
8795
 
                     [[extern int _nl_msg_cat_cntr;
8796
 
                       return _nl_msg_cat_cntr]])],
8797
 
    [DATADIRNAME=share],
8798
 
    [case $host in
8799
 
    *-*-solaris*)
8800
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
8801
 
    dnl GNU format message catalog is always supported,
8802
 
    dnl since both are added to the libc all together.
8803
 
    dnl Hence, we'd like to go with DATADIRNAME=share
8804
 
    dnl in this case.
8805
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
8806
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
8807
 
    ;;
8808
 
    *)
8809
 
    [DATADIRNAME=lib]
8810
 
    ;;
8811
 
    esac])
8812
 
fi
8813
 
AC_SUBST(DATADIRNAME)
8814
 
 
8815
 
IT_PO_SUBDIR([po])
8816
 
 
8817
 
])
8818
 
 
8819
 
 
8820
 
# IT_PO_SUBDIR(DIRNAME)
8821
 
# ---------------------
8822
 
# All po subdirs have to be declared with this macro; the subdir "po" is
8823
 
# declared by IT_PROG_INTLTOOL.
8824
 
#
8825
 
AC_DEFUN([IT_PO_SUBDIR],
8826
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
8827
 
dnl
8828
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
8829
 
dnl of config.status.
8830
 
AC_CONFIG_COMMANDS_PRE([
8831
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
8832
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
8833
 
    >"$1/stamp-it.tmp"
8834
 
    [sed '/^#/d
8835
 
         s/^[[].*] *//
8836
 
         /^[    ]*$/d
8837
 
        '"s|^|  $ac_top_srcdir/|" \
8838
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
8839
 
    ]
8840
 
    if test ! -f "$1/Makefile"; then
8841
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
8842
 
    fi
8843
 
    mv "$1/Makefile" "$1/Makefile.tmp"
8844
 
    [sed '/^POTFILES =/,/[^\\]$/ {
8845
 
                /^POTFILES =/!d
8846
 
                r $1/POTFILES
8847
 
          }
8848
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
8849
 
    rm -f "$1/Makefile.tmp"
8850
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
8851
 
  ])
8852
 
])dnl
8853
 
])
8854
 
 
8855
 
 
8856
 
# deprecated macros
8857
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
8858
 
# A hint is needed for aclocal from Automake <= 1.9.4:
8859
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
8860
 
 
8861