~ubuntu-branches/ubuntu/oneiric/gnome-system-monitor/oneiric-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-21 16:49:23 UTC
  • mto: (2.1.7 sid) (1.1.59 upstream)
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: james.westby@ubuntu.com-20110621164923-o6titd2srek1uh84
Tags: upstream-3.0.1
Import upstream version 3.0.1

Show diffs side-by-side

added added

removed removed

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