~ubuntu-branches/ubuntu/vivid/libspectre/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2012-08-11 11:25:13 UTC
  • mto: (9.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120811112513-px9iaeg2jmv9zei2
Tags: upstream-0.2.7
Import upstream version 0.2.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
24
# Foundation, Inc.
23
25
#
24
26
# This file is free software; the Free Software Foundation
25
27
# gives unlimited permission to copy and/or distribute it,
26
28
# with or without modifications, as long as this notice is preserved.
27
29
 
 
30
# serial 1
 
31
 
28
32
# AM_AUTOMAKE_VERSION(VERSION)
29
33
# ----------------------------
30
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
34
38
[am__api_version='1.11'
35
39
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
40
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
 
41
m4_if([$1], [1.11.3], [],
38
42
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
43
])
40
44
 
50
54
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
55
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
56
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
57
[AM_AUTOMAKE_VERSION([1.11.3])dnl
54
58
m4_ifndef([AC_AUTOCONF_VERSION],
55
59
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
60
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
61
 
58
62
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
63
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
61
65
#
62
66
# This file is free software; the Free Software Foundation
63
67
# gives unlimited permission to copy and/or distribute it,
64
68
# with or without modifications, as long as this notice is preserved.
65
69
 
 
70
# serial 1
 
71
 
66
72
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
73
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
144
150
Usually this means the macro was only invoked conditionally.]])
145
151
fi])])
146
152
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
 
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
154
# 2010, 2011 Free Software Foundation, Inc.
149
155
#
150
156
# This file is free software; the Free Software Foundation
151
157
# gives unlimited permission to copy and/or distribute it,
152
158
# with or without modifications, as long as this notice is preserved.
153
159
 
154
 
# serial 10
 
160
# serial 12
155
161
 
156
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
163
# written in clear, in which case automake, when reading aclocal.m4,
191
197
  # instance it was reported that on HP-UX the gcc test will end up
192
198
  # making a dummy file named `D' -- because `-MD' means `put the output
193
199
  # in D'.
 
200
  rm -rf conftest.dir
194
201
  mkdir conftest.dir
195
202
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
203
  # using a relative directory.
255
262
        break
256
263
      fi
257
264
      ;;
258
 
    msvisualcpp | msvcmsys)
 
265
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
259
266
      # This compiler won't grok `-c -o', but also, the minuso test has
260
267
      # not run yet.  These depmodes are late enough in the game, and
261
268
      # so weak that their functioning should not be impacted.
320
327
if test "x$enable_dependency_tracking" != xno; then
321
328
  am_depcomp="$ac_aux_dir/depcomp"
322
329
  AMDEPBACKSLASH='\'
 
330
  am__nodep='_no'
323
331
fi
324
332
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
333
AC_SUBST([AMDEPBACKSLASH])dnl
326
334
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
335
AC_SUBST([am__nodep])dnl
 
336
_AM_SUBST_NOTMAKE([am__nodep])dnl
327
337
])
328
338
 
329
339
# Generate code to set up dependency tracking.              -*- Autoconf -*-
545
555
done
546
556
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
557
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
558
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
559
# Inc.
549
560
#
550
561
# This file is free software; the Free Software Foundation
551
562
# gives unlimited permission to copy and/or distribute it,
552
563
# with or without modifications, as long as this notice is preserved.
553
564
 
 
565
# serial 1
 
566
 
554
567
# AM_PROG_INSTALL_SH
555
568
# ------------------
556
569
# Define $install_sh.
590
603
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
591
604
# From Jim Meyering
592
605
 
593
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
 
# Free Software Foundation, Inc.
 
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
607
# 2011 Free Software Foundation, Inc.
595
608
#
596
609
# This file is free software; the Free Software Foundation
597
610
# gives unlimited permission to copy and/or distribute it,
611
624
       [disable], [m4_define([am_maintainer_other], [enable])],
612
625
       [m4_define([am_maintainer_other], [enable])
613
626
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
627
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
628
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
629
  AC_ARG_ENABLE([maintainer-mode],
617
630
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
722
735
fi
723
736
])
724
737
 
725
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
738
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
739
# Inc.
726
740
#
727
741
# This file is free software; the Free Software Foundation
728
742
# gives unlimited permission to copy and/or distribute it,
729
743
# with or without modifications, as long as this notice is preserved.
730
744
 
 
745
# serial 1
 
746
 
731
747
# AM_PROG_MKDIR_P
732
748
# ---------------
733
749
# Check for `mkdir -p'.
750
766
 
751
767
# Helper functions for option handling.                     -*- Autoconf -*-
752
768
 
753
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
769
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
770
# Foundation, Inc.
754
771
#
755
772
# This file is free software; the Free Software Foundation
756
773
# gives unlimited permission to copy and/or distribute it,
757
774
# with or without modifications, as long as this notice is preserved.
758
775
 
759
 
# serial 4
 
776
# serial 5
760
777
 
761
778
# _AM_MANGLE_OPTION(NAME)
762
779
# -----------------------
764
781
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
765
782
 
766
783
# _AM_SET_OPTION(NAME)
767
 
# ------------------------------
 
784
# --------------------
768
785
# Set option NAME.  Presently that only means defining a flag for this option.
769
786
AC_DEFUN([_AM_SET_OPTION],
770
787
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
771
788
 
772
789
# _AM_SET_OPTIONS(OPTIONS)
773
 
# ----------------------------------
 
790
# ------------------------
774
791
# OPTIONS is a space-separated list of Automake options.
775
792
AC_DEFUN([_AM_SET_OPTIONS],
776
793
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
846
863
fi
847
864
AC_MSG_RESULT(yes)])
848
865
 
849
 
# Copyright (C) 2009  Free Software Foundation, Inc.
 
866
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
850
867
#
851
868
# This file is free software; the Free Software Foundation
852
869
# gives unlimited permission to copy and/or distribute it,
853
870
# with or without modifications, as long as this notice is preserved.
854
871
 
855
 
# serial 1
 
872
# serial 2
856
873
 
857
874
# AM_SILENT_RULES([DEFAULT])
858
875
# --------------------------
867
884
no)  AM_DEFAULT_VERBOSITY=1;;
868
885
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
869
886
esac
 
887
dnl
 
888
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
889
dnl do not support nested variable expansions.
 
890
dnl See automake bug#9928 and bug#10237.
 
891
am_make=${MAKE-make}
 
892
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
893
   [am_cv_make_support_nested_variables],
 
894
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
895
BAR0=false
 
896
BAR1=true
 
897
V=1
 
898
am__doit:
 
899
        @$(TRUE)
 
900
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
901
  am_cv_make_support_nested_variables=yes
 
902
else
 
903
  am_cv_make_support_nested_variables=no
 
904
fi])
 
905
if test $am_cv_make_support_nested_variables = yes; then
 
906
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
907
  AM_V='$(V)'
 
908
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
909
else
 
910
  AM_V=$AM_DEFAULT_VERBOSITY
 
911
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
912
fi
 
913
AC_SUBST([AM_V])dnl
 
914
AM_SUBST_NOTMAKE([AM_V])dnl
 
915
AC_SUBST([AM_DEFAULT_V])dnl
 
916
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
870
917
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
871
918
AM_BACKSLASH='\'
872
919
AC_SUBST([AM_BACKSLASH])dnl
873
920
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
874
921
])
875
922
 
876
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
923
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
877
924
#
878
925
# This file is free software; the Free Software Foundation
879
926
# gives unlimited permission to copy and/or distribute it,
880
927
# with or without modifications, as long as this notice is preserved.
881
928
 
 
929
# serial 1
 
930
 
882
931
# AM_PROG_INSTALL_STRIP
883
932
# ---------------------
884
933
# One issue with vendor `install' (even GNU) is that you can't
901
950
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
902
951
AC_SUBST([INSTALL_STRIP_PROGRAM])])
903
952
 
904
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
953
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
905
954
#
906
955
# This file is free software; the Free Software Foundation
907
956
# gives unlimited permission to copy and/or distribute it,
908
957
# with or without modifications, as long as this notice is preserved.
909
958
 
910
 
# serial 2
 
959
# serial 3
911
960
 
912
961
# _AM_SUBST_NOTMAKE(VARIABLE)
913
962
# ---------------------------
916
965
AC_DEFUN([_AM_SUBST_NOTMAKE])
917
966
 
918
967
# AM_SUBST_NOTMAKE(VARIABLE)
919
 
# ---------------------------
 
968
# --------------------------
920
969
# Public sister of _AM_SUBST_NOTMAKE.
921
970
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
922
971
 
923
972
# Check how to create a tarball.                            -*- Autoconf -*-
924
973
 
925
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
974
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
926
975
#
927
976
# This file is free software; the Free Software Foundation
928
977
# gives unlimited permission to copy and/or distribute it,
944
993
# a tarball read from stdin.
945
994
#     $(am__untar) < result.tar
946
995
AC_DEFUN([_AM_PROG_TAR],
947
 
[# Always define AMTAR for backward compatibility.
948
 
AM_MISSING_PROG([AMTAR], [tar])
 
996
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
997
# in the wild :-(  We should find a proper way to deprecate it ...
 
998
AC_SUBST([AMTAR], ['$${TAR-tar}'])
949
999
m4_if([$1], [v7],
950
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1000
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
951
1001
     [m4_case([$1], [ustar],, [pax],,
952
1002
              [m4_fatal([Unknown tar format])])
953
1003
AC_MSG_CHECKING([how to create a $1 tar archive])
1016
1066
AC_SUBST([am__untar])
1017
1067
]) # _AM_PROG_TAR
1018
1068
 
1019
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
1020
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1021
 
dnl This file is free software; the Free Software Foundation
1022
 
dnl gives unlimited permission to copy and/or distribute it,
1023
 
dnl with or without modifications, as long as this notice is preserved.
1024
 
 
1025
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
1026
 
 
1027
 
# This test replaces the one in autoconf.
1028
 
# Currently this macro should have the same name as the autoconf macro
1029
 
# because gettext's gettext.m4 (distributed in the automake package)
1030
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
1031
 
# give these diagnostics:
1032
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1033
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1034
 
 
1035
 
undefine([AC_ISC_POSIX])
1036
 
 
1037
 
AC_DEFUN([AC_ISC_POSIX],
1038
 
  [
1039
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1040
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1041
 
  ]
1042
 
)
1043
 
 
1044
1069
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1045
1070
#
1046
1071
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1047
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1072
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
1073
#                 Foundation, Inc.
1048
1074
#   Written by Gordon Matzigkeit, 1996
1049
1075
#
1050
1076
# This file is free software; the Free Software Foundation gives
1053
1079
 
1054
1080
m4_define([_LT_COPYING], [dnl
1055
1081
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1056
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1082
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
1083
#                 Foundation, Inc.
1057
1084
#   Written by Gordon Matzigkeit, 1996
1058
1085
#
1059
1086
#   This file is part of GNU Libtool.
1080
1107
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1081
1108
])
1082
1109
 
1083
 
# serial 56 LT_INIT
 
1110
# serial 57 LT_INIT
1084
1111
 
1085
1112
 
1086
1113
# LT_PREREQ(VERSION)
1109
1136
# ------------------
1110
1137
AC_DEFUN([LT_INIT],
1111
1138
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1139
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1112
1140
AC_BEFORE([$0], [LT_LANG])dnl
1113
1141
AC_BEFORE([$0], [LT_OUTPUT])dnl
1114
1142
AC_BEFORE([$0], [LTDL_INIT])dnl
1125
1153
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1126
1154
m4_require([_LT_PROG_LTMAIN])dnl
1127
1155
 
 
1156
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
1157
 
1128
1158
dnl Parse OPTIONS
1129
1159
_LT_SET_OPTIONS([$0], [$1])
1130
1160
 
1161
1191
    *) break;;
1162
1192
  esac
1163
1193
done
1164
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1194
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1165
1195
])
1166
1196
 
1167
1197
 
1181
1211
m4_defun([_LT_SETUP],
1182
1212
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1183
1213
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1214
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
1215
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
1216
 
 
1217
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
1218
dnl
1184
1219
_LT_DECL([], [host_alias], [0], [The host system])dnl
1185
1220
_LT_DECL([], [host], [0])dnl
1186
1221
_LT_DECL([], [host_os], [0])dnl
1203
1238
dnl
1204
1239
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1205
1240
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1241
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1206
1242
m4_require([_LT_CMD_RELOAD])dnl
1207
1243
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1244
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1208
1245
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1209
1246
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1247
m4_require([_LT_WITH_SYSROOT])dnl
1210
1248
 
1211
1249
_LT_CONFIG_LIBTOOL_INIT([
1212
1250
# See if we are running on zsh, and set the options which allow our
1222
1260
_LT_CHECK_OBJDIR
1223
1261
 
1224
1262
m4_require([_LT_TAG_COMPILER])dnl
1225
 
_LT_PROG_ECHO_BACKSLASH
1226
1263
 
1227
1264
case $host_os in
1228
1265
aix3*)
1236
1273
  ;;
1237
1274
esac
1238
1275
 
1239
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1240
 
# metacharacters that are still active within double-quoted strings.
1241
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1242
 
 
1243
 
# Same as above, but do not quote variable references.
1244
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1245
 
 
1246
 
# Sed substitution to delay expansion of an escaped shell variable in a
1247
 
# double_quote_subst'ed string.
1248
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1249
 
 
1250
 
# Sed substitution to delay expansion of an escaped single quote.
1251
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1252
 
 
1253
 
# Sed substitution to avoid accidental globbing in evaled expressions
1254
 
no_glob_subst='s/\*/\\\*/g'
1255
 
 
1256
1276
# Global variables:
1257
1277
ofile=libtool
1258
1278
can_build_shared=yes
1293
1313
])# _LT_SETUP
1294
1314
 
1295
1315
 
 
1316
# _LT_PREPARE_SED_QUOTE_VARS
 
1317
# --------------------------
 
1318
# Define a few sed substitution that help us do robust quoting.
 
1319
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
1320
[# Backslashify metacharacters that are still active within
 
1321
# double-quoted strings.
 
1322
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1323
 
 
1324
# Same as above, but do not quote variable references.
 
1325
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1326
 
 
1327
# Sed substitution to delay expansion of an escaped shell variable in a
 
1328
# double_quote_subst'ed string.
 
1329
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1330
 
 
1331
# Sed substitution to delay expansion of an escaped single quote.
 
1332
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1333
 
 
1334
# Sed substitution to avoid accidental globbing in evaled expressions
 
1335
no_glob_subst='s/\*/\\\*/g'
 
1336
])
 
1337
 
1296
1338
# _LT_PROG_LTMAIN
1297
1339
# ---------------
1298
1340
# Note that this code is called both from `configure', and `config.status'
1445
1487
# declaration there will have the same value as in `configure'.  VARNAME
1446
1488
# must have a single quote delimited value for this to work.
1447
1489
m4_define([_LT_CONFIG_STATUS_DECLARE],
1448
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1490
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1449
1491
 
1450
1492
 
1451
1493
# _LT_CONFIG_STATUS_DECLARATIONS
1455
1497
# embedded single quotes properly.  In configure, this macro expands
1456
1498
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1457
1499
#
1458
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1500
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1459
1501
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1460
1502
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1461
1503
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1554
1596
LTCFLAGS='$LTCFLAGS'
1555
1597
compiler='$compiler_DEFAULT'
1556
1598
 
 
1599
# A function that is used when there is no print builtin or printf.
 
1600
func_fallback_echo ()
 
1601
{
 
1602
  eval 'cat <<_LTECHO_EOF
 
1603
\$[]1
 
1604
_LTECHO_EOF'
 
1605
}
 
1606
 
1557
1607
# Quote evaled strings.
1558
1608
for var in lt_decl_all_varnames([[ \
1559
1609
]], lt_decl_quote_varnames); do
1560
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1610
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1561
1611
    *[[\\\\\\\`\\"\\\$]]*)
1562
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1612
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1563
1613
      ;;
1564
1614
    *)
1565
1615
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1570
1620
# Double-quote double-evaled strings.
1571
1621
for var in lt_decl_all_varnames([[ \
1572
1622
]], lt_decl_dquote_varnames); do
1573
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1623
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1574
1624
    *[[\\\\\\\`\\"\\\$]]*)
1575
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1625
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1576
1626
      ;;
1577
1627
    *)
1578
1628
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1580
1630
    esac
1581
1631
done
1582
1632
 
1583
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1584
 
case \$lt_ECHO in
1585
 
*'\\\[$]0 --fallback-echo"')dnl "
1586
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1587
 
  ;;
1588
 
esac
1589
 
 
1590
1633
_LT_OUTPUT_LIBTOOL_INIT
1591
1634
])
1592
1635
 
 
1636
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
1637
# ------------------------------------
 
1638
# Generate a child script FILE with all initialization necessary to
 
1639
# reuse the environment learned by the parent script, and make the
 
1640
# file executable.  If COMMENT is supplied, it is inserted after the
 
1641
# `#!' sequence but before initialization text begins.  After this
 
1642
# macro, additional text can be appended to FILE to form the body of
 
1643
# the child script.  The macro ends with non-zero status if the
 
1644
# file could not be fully written (such as if the disk is full).
 
1645
m4_ifdef([AS_INIT_GENERATED],
 
1646
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
1647
[m4_defun([_LT_GENERATED_FILE_INIT],
 
1648
[m4_require([AS_PREPARE])]dnl
 
1649
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
1650
[lt_write_fail=0
 
1651
cat >$1 <<_ASEOF || lt_write_fail=1
 
1652
#! $SHELL
 
1653
# Generated by $as_me.
 
1654
$2
 
1655
SHELL=\${CONFIG_SHELL-$SHELL}
 
1656
export SHELL
 
1657
_ASEOF
 
1658
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
1659
AS_SHELL_SANITIZE
 
1660
_AS_PREPARE
 
1661
exec AS_MESSAGE_FD>&1
 
1662
_ASEOF
 
1663
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1664
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1593
1665
 
1594
1666
# LT_OUTPUT
1595
1667
# ---------
1599
1671
AC_DEFUN([LT_OUTPUT],
1600
1672
[: ${CONFIG_LT=./config.lt}
1601
1673
AC_MSG_NOTICE([creating $CONFIG_LT])
1602
 
cat >"$CONFIG_LT" <<_LTEOF
1603
 
#! $SHELL
1604
 
# Generated by $as_me.
1605
 
# Run this file to recreate a libtool stub with the current configuration.
 
1674
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
1675
[# Run this file to recreate a libtool stub with the current configuration.])
1606
1676
 
 
1677
cat >>"$CONFIG_LT" <<\_LTEOF
1607
1678
lt_cl_silent=false
1608
 
SHELL=\${CONFIG_SHELL-$SHELL}
1609
 
_LTEOF
1610
 
 
1611
 
cat >>"$CONFIG_LT" <<\_LTEOF
1612
 
AS_SHELL_SANITIZE
1613
 
_AS_PREPARE
1614
 
 
1615
 
exec AS_MESSAGE_FD>&1
1616
1679
exec AS_MESSAGE_LOG_FD>>config.log
1617
1680
{
1618
1681
  echo
1638
1701
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1639
1702
configured by $[0], generated by m4_PACKAGE_STRING.
1640
1703
 
1641
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
1704
Copyright (C) 2011 Free Software Foundation, Inc.
1642
1705
This config.lt script is free software; the Free Software Foundation
1643
1706
gives unlimited permision to copy, distribute and modify it."
1644
1707
 
1683
1746
# appending to config.log, which fails on DOS, as config.log is still kept
1684
1747
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1685
1748
# config.log, so it can be properly (re)opened and appended to by config.lt.
1686
 
if test "$no_create" != yes; then
1687
 
  lt_cl_success=:
1688
 
  test "$silent" = yes &&
1689
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1690
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1691
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1692
 
  exec AS_MESSAGE_LOG_FD>>config.log
1693
 
  $lt_cl_success || AS_EXIT(1)
1694
 
fi
 
1749
lt_cl_success=:
 
1750
test "$silent" = yes &&
 
1751
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
1752
exec AS_MESSAGE_LOG_FD>/dev/null
 
1753
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1754
exec AS_MESSAGE_LOG_FD>>config.log
 
1755
$lt_cl_success || AS_EXIT(1)
1695
1756
])# LT_OUTPUT
1696
1757
 
1697
1758
 
1754
1815
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1755
1816
  # text mode, it properly converts lines to CR/LF.  This bash problem
1756
1817
  # is reportedly fixed, but why not run on old versions too?
1757
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1758
 
    || (rm -f "$cfgfile"; exit 1)
1759
 
 
1760
 
  _LT_PROG_XSI_SHELLFNS
1761
 
 
1762
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1763
 
    || (rm -f "$cfgfile"; exit 1)
1764
 
 
1765
 
  mv -f "$cfgfile" "$ofile" ||
 
1818
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1819
     || (rm -f "$cfgfile"; exit 1)
 
1820
 
 
1821
  _LT_PROG_REPLACE_SHELLFNS
 
1822
 
 
1823
   mv -f "$cfgfile" "$ofile" ||
1766
1824
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1767
1825
  chmod +x "$ofile"
1768
1826
],
1807
1865
m4_case([$1],
1808
1866
  [C],                  [_LT_LANG(C)],
1809
1867
  [C++],                [_LT_LANG(CXX)],
 
1868
  [Go],                 [_LT_LANG(GO)],
1810
1869
  [Java],               [_LT_LANG(GCJ)],
1811
1870
  [Fortran 77],         [_LT_LANG(F77)],
1812
1871
  [Fortran],            [_LT_LANG(FC)],
1828
1887
])# _LT_LANG
1829
1888
 
1830
1889
 
 
1890
m4_ifndef([AC_PROG_GO], [
 
1891
# NOTE: This macro has been submitted for inclusion into   #
 
1892
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
1893
#  a released version of Autoconf we should remove this    #
 
1894
#  macro and use it instead.                               #
 
1895
m4_defun([AC_PROG_GO],
 
1896
[AC_LANG_PUSH(Go)dnl
 
1897
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
1898
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
1899
_AC_ARG_VAR_LDFLAGS()dnl
 
1900
AC_CHECK_TOOL(GOC, gccgo)
 
1901
if test -z "$GOC"; then
 
1902
  if test -n "$ac_tool_prefix"; then
 
1903
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
1904
  fi
 
1905
fi
 
1906
if test -z "$GOC"; then
 
1907
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
1908
fi
 
1909
])#m4_defun
 
1910
])#m4_ifndef
 
1911
 
 
1912
 
1831
1913
# _LT_LANG_DEFAULT_CONFIG
1832
1914
# -----------------------
1833
1915
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1858
1940
       m4_ifdef([LT_PROG_GCJ],
1859
1941
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1860
1942
 
 
1943
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
1944
  [LT_LANG(GO)],
 
1945
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
1946
 
1861
1947
AC_PROVIDE_IFELSE([LT_PROG_RC],
1862
1948
  [LT_LANG(RC)],
1863
1949
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1868
1954
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1869
1955
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1870
1956
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1957
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1871
1958
dnl aclocal-1.4 backwards compatibility:
1872
1959
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1873
1960
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1874
1961
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1875
1962
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1963
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1876
1964
 
1877
1965
 
1878
1966
# _LT_TAG_COMPILER
1958
2046
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1959
2047
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1960
2048
        _lt_result=$?
1961
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
2049
        # If there is a non-empty error log, and "single_module"
 
2050
        # appears in it, assume the flag caused a linker warning
 
2051
        if test -s conftest.err && $GREP single_module conftest.err; then
 
2052
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
2053
        # Otherwise, if the output was created with a 0 exit code from
 
2054
        # the compiler, it worked.
 
2055
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1962
2056
          lt_cv_apple_cc_single_mod=yes
1963
2057
        else
1964
2058
          cat conftest.err >&AS_MESSAGE_LOG_FD
1966
2060
        rm -rf libconftest.dylib*
1967
2061
        rm -f conftest.*
1968
2062
      fi])
 
2063
 
1969
2064
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1970
2065
      [lt_cv_ld_exported_symbols_list],
1971
2066
      [lt_cv_ld_exported_symbols_list=no
1977
2072
        [lt_cv_ld_exported_symbols_list=no])
1978
2073
        LDFLAGS="$save_LDFLAGS"
1979
2074
    ])
 
2075
 
 
2076
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
2077
      [lt_cv_ld_force_load=no
 
2078
      cat > conftest.c << _LT_EOF
 
2079
int forced_loaded() { return 2;}
 
2080
_LT_EOF
 
2081
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
2082
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
2083
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
2084
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
2085
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
2086
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
2087
      cat > conftest.c << _LT_EOF
 
2088
int main() { return 0;}
 
2089
_LT_EOF
 
2090
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
2091
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
2092
      _lt_result=$?
 
2093
      if test -s conftest.err && $GREP force_load conftest.err; then
 
2094
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2095
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
2096
        lt_cv_ld_force_load=yes
 
2097
      else
 
2098
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2099
      fi
 
2100
        rm -f conftest.err libconftest.a conftest conftest.c
 
2101
        rm -rf conftest.dSYM
 
2102
    ])
1980
2103
    case $host_os in
1981
2104
    rhapsody* | darwin1.[[012]])
1982
2105
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2004
2127
    else
2005
2128
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2006
2129
    fi
2007
 
    if test "$DSYMUTIL" != ":"; then
 
2130
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2008
2131
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2009
2132
    else
2010
2133
      _lt_dsymutil=
2014
2137
])
2015
2138
 
2016
2139
 
2017
 
# _LT_DARWIN_LINKER_FEATURES
2018
 
# --------------------------
 
2140
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
2141
# ---------------------------------
2019
2142
# Checks for linker and compiler features on darwin
2020
2143
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2021
2144
[
2024
2147
  _LT_TAGVAR(hardcode_direct, $1)=no
2025
2148
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2026
2149
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2027
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2150
  if test "$lt_cv_ld_force_load" = "yes"; then
 
2151
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
2152
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
2153
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 
2154
  else
 
2155
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2156
  fi
2028
2157
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2029
2158
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2030
2159
  case $cc_basename in
2032
2161
     *) _lt_dar_can_shared=$GCC ;;
2033
2162
  esac
2034
2163
  if test "$_lt_dar_can_shared" = "yes"; then
2035
 
    output_verbose_link_cmd=echo
 
2164
    output_verbose_link_cmd=func_echo_all
2036
2165
    _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}"
2037
2166
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2038
2167
    _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}"
2048
2177
  fi
2049
2178
])
2050
2179
 
2051
 
# _LT_SYS_MODULE_PATH_AIX
2052
 
# -----------------------
 
2180
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
2181
# ----------------------------------
2053
2182
# Links a minimal program and checks the executable
2054
2183
# for the system default hardcoded library path. In most cases,
2055
2184
# this is /usr/lib:/lib, but when the MPI compilers are used
2056
2185
# the location of the communication and MPI libs are included too.
2057
2186
# If we don't find anything, use the default library path according
2058
2187
# to the aix ld manual.
 
2188
# Store the results from the different compilers for each TAGNAME.
 
2189
# Allow to override them for all tags through lt_cv_aix_libpath.
2059
2190
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2060
2191
[m4_require([_LT_DECL_SED])dnl
2061
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2062
 
lt_aix_libpath_sed='
2063
 
    /Import File Strings/,/^$/ {
2064
 
        /^0/ {
2065
 
            s/^0  *\(.*\)$/\1/
2066
 
            p
2067
 
        }
2068
 
    }'
2069
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2070
 
# Check for a 64-bit object if we didn't find anything.
2071
 
if test -z "$aix_libpath"; then
2072
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2073
 
fi],[])
2074
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
2192
if test "${lt_cv_aix_libpath+set}" = set; then
 
2193
  aix_libpath=$lt_cv_aix_libpath
 
2194
else
 
2195
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
2196
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
2197
  lt_aix_libpath_sed='[
 
2198
      /Import File Strings/,/^$/ {
 
2199
          /^0/ {
 
2200
              s/^0  *\([^ ]*\) *$/\1/
 
2201
              p
 
2202
          }
 
2203
      }]'
 
2204
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2205
  # Check for a 64-bit object if we didn't find anything.
 
2206
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2207
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2208
  fi],[])
 
2209
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2210
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
2211
  fi
 
2212
  ])
 
2213
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
2214
fi
2075
2215
])# _LT_SYS_MODULE_PATH_AIX
2076
2216
 
2077
2217
 
2078
2218
# _LT_SHELL_INIT(ARG)
2079
2219
# -------------------
2080
2220
m4_define([_LT_SHELL_INIT],
2081
 
[ifdef([AC_DIVERSION_NOTICE],
2082
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2083
 
         [AC_DIVERT_PUSH(NOTICE)])
2084
 
$1
2085
 
AC_DIVERT_POP
2086
 
])# _LT_SHELL_INIT
 
2221
[m4_divert_text([M4SH-INIT], [$1
 
2222
])])# _LT_SHELL_INIT
 
2223
 
2087
2224
 
2088
2225
 
2089
2226
# _LT_PROG_ECHO_BACKSLASH
2090
2227
# -----------------------
2091
 
# Add some code to the start of the generated configure script which
2092
 
# will find an echo command which doesn't interpret backslashes.
 
2228
# Find how we can fake an echo command that does not interpret backslash.
 
2229
# In particular, with Autoconf 2.60 or later we add some code to the start
 
2230
# of the generated configure script which will find a shell with a builtin
 
2231
# printf (which we can use as an echo command).
2093
2232
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2094
 
[_LT_SHELL_INIT([
2095
 
# Check that we are running under the correct shell.
2096
 
SHELL=${CONFIG_SHELL-/bin/sh}
2097
 
 
2098
 
case X$lt_ECHO in
2099
 
X*--fallback-echo)
2100
 
  # Remove one level of quotation (which was required for Make).
2101
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2102
 
  ;;
 
2233
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2234
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2235
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2236
 
 
2237
AC_MSG_CHECKING([how to print strings])
 
2238
# Test print first, because it will be a builtin if present.
 
2239
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2240
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2241
  ECHO='print -r --'
 
2242
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2243
  ECHO='printf %s\n'
 
2244
else
 
2245
  # Use this function as a fallback that always works.
 
2246
  func_fallback_echo ()
 
2247
  {
 
2248
    eval 'cat <<_LTECHO_EOF
 
2249
$[]1
 
2250
_LTECHO_EOF'
 
2251
  }
 
2252
  ECHO='func_fallback_echo'
 
2253
fi
 
2254
 
 
2255
# func_echo_all arg...
 
2256
# Invoke $ECHO with all args, space-separated.
 
2257
func_echo_all ()
 
2258
{
 
2259
    $ECHO "$*" 
 
2260
}
 
2261
 
 
2262
case "$ECHO" in
 
2263
  printf*) AC_MSG_RESULT([printf]) ;;
 
2264
  print*) AC_MSG_RESULT([print -r]) ;;
 
2265
  *) AC_MSG_RESULT([cat]) ;;
2103
2266
esac
2104
2267
 
2105
 
ECHO=${lt_ECHO-echo}
2106
 
if test "X[$]1" = X--no-reexec; then
2107
 
  # Discard the --no-reexec flag, and continue.
2108
 
  shift
2109
 
elif test "X[$]1" = X--fallback-echo; then
2110
 
  # Avoid inline document here, it may be left over
2111
 
  :
2112
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2113
 
  # Yippee, $ECHO works!
2114
 
  :
2115
 
else
2116
 
  # Restart under the correct shell.
2117
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2118
 
fi
2119
 
 
2120
 
if test "X[$]1" = X--fallback-echo; then
2121
 
  # used as fallback echo
2122
 
  shift
2123
 
  cat <<_LT_EOF
2124
 
[$]*
2125
 
_LT_EOF
2126
 
  exit 0
2127
 
fi
2128
 
 
2129
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2130
 
# if CDPATH is set.
2131
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2132
 
 
2133
 
if test -z "$lt_ECHO"; then
2134
 
  if test "X${echo_test_string+set}" != Xset; then
2135
 
    # find a string as large as possible, as long as the shell can cope with it
2136
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2137
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2138
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2139
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2140
 
      then
2141
 
        break
2142
 
      fi
2143
 
    done
2144
 
  fi
2145
 
 
2146
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2147
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2148
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
2149
 
    :
2150
 
  else
2151
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
2152
 
    # backslashes.  This makes it impossible to quote backslashes using
2153
 
    #   echo "$something" | sed 's/\\/\\\\/g'
2154
 
    #
2155
 
    # So, first we look for a working echo in the user's PATH.
2156
 
 
2157
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2158
 
    for dir in $PATH /usr/ucb; do
2159
 
      IFS="$lt_save_ifs"
2160
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2161
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2162
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2163
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2164
 
        ECHO="$dir/echo"
2165
 
        break
2166
 
      fi
2167
 
    done
2168
 
    IFS="$lt_save_ifs"
2169
 
 
2170
 
    if test "X$ECHO" = Xecho; then
2171
 
      # We didn't find a better echo, so look for alternatives.
2172
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2173
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2174
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2175
 
        # This shell has a builtin print -r that does the trick.
2176
 
        ECHO='print -r'
2177
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2178
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
2179
 
        # If we have ksh, try running configure again with it.
2180
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2181
 
        export ORIGINAL_CONFIG_SHELL
2182
 
        CONFIG_SHELL=/bin/ksh
2183
 
        export CONFIG_SHELL
2184
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2185
 
      else
2186
 
        # Try using printf.
2187
 
        ECHO='printf %s\n'
2188
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2189
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2190
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2191
 
          # Cool, printf works
2192
 
          :
2193
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2194
 
             test "X$echo_testing_string" = 'X\t' &&
2195
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2196
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2197
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2198
 
          export CONFIG_SHELL
2199
 
          SHELL="$CONFIG_SHELL"
2200
 
          export SHELL
2201
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2202
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2203
 
             test "X$echo_testing_string" = 'X\t' &&
2204
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2205
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2206
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2207
 
        else
2208
 
          # maybe with a smaller string...
2209
 
          prev=:
2210
 
 
2211
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2212
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2213
 
            then
2214
 
              break
2215
 
            fi
2216
 
            prev="$cmd"
2217
 
          done
2218
 
 
2219
 
          if test "$prev" != 'sed 50q "[$]0"'; then
2220
 
            echo_test_string=`eval $prev`
2221
 
            export echo_test_string
2222
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2223
 
          else
2224
 
            # Oops.  We lost completely, so just stick with echo.
2225
 
            ECHO=echo
2226
 
          fi
2227
 
        fi
2228
 
      fi
2229
 
    fi
2230
 
  fi
2231
 
fi
2232
 
 
2233
 
# Copy echo and quote the copy suitably for passing to libtool from
2234
 
# the Makefile, instead of quoting the original, which is used later.
2235
 
lt_ECHO=$ECHO
2236
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2237
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2238
 
fi
2239
 
 
2240
 
AC_SUBST(lt_ECHO)
2241
 
])
 
2268
m4_ifdef([_AS_DETECT_SUGGESTED],
 
2269
[_AS_DETECT_SUGGESTED([
 
2270
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
2271
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2272
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2273
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2274
    PATH=/empty FPATH=/empty; export PATH FPATH
 
2275
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
2276
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
2277
 
2242
2278
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2243
 
_LT_DECL([], [ECHO], [1],
2244
 
    [An echo program that does not interpret backslashes])
 
2279
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2245
2280
])# _LT_PROG_ECHO_BACKSLASH
2246
2281
 
2247
2282
 
 
2283
# _LT_WITH_SYSROOT
 
2284
# ----------------
 
2285
AC_DEFUN([_LT_WITH_SYSROOT],
 
2286
[AC_MSG_CHECKING([for sysroot])
 
2287
AC_ARG_WITH([sysroot],
 
2288
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
2289
                        (or the compiler's sysroot if not specified).],
 
2290
[], [with_sysroot=no])
 
2291
 
 
2292
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
2293
dnl in case the user passed a directory name.
 
2294
lt_sysroot=
 
2295
case ${with_sysroot} in #(
 
2296
 yes)
 
2297
   if test "$GCC" = yes; then
 
2298
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
2299
   fi
 
2300
   ;; #(
 
2301
 /*)
 
2302
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
2303
   ;; #(
 
2304
 no|'')
 
2305
   ;; #(
 
2306
 *)
 
2307
   AC_MSG_RESULT([${with_sysroot}])
 
2308
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
2309
   ;;
 
2310
esac
 
2311
 
 
2312
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
2313
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
2314
[dependent libraries, and in which our libraries should be installed.])])
 
2315
 
2248
2316
# _LT_ENABLE_LOCK
2249
2317
# ---------------
2250
2318
m4_defun([_LT_ENABLE_LOCK],
2273
2341
  ;;
2274
2342
*-*-irix6*)
2275
2343
  # Find out which ABI we are using.
2276
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
2344
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2277
2345
  if AC_TRY_EVAL(ac_compile); then
2278
2346
    if test "$lt_cv_prog_gnu_ld" = yes; then
2279
2347
      case `/usr/bin/file conftest.$ac_objext` in
2366
2434
    CFLAGS="$SAVE_CFLAGS"
2367
2435
  fi
2368
2436
  ;;
2369
 
sparc*-*solaris*)
 
2437
*-*solaris*)
2370
2438
  # Find out which ABI we are using.
2371
2439
  echo 'int i;' > conftest.$ac_ext
2372
2440
  if AC_TRY_EVAL(ac_compile); then
2373
2441
    case `/usr/bin/file conftest.o` in
2374
2442
    *64-bit*)
2375
2443
      case $lt_cv_prog_gnu_ld in
2376
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2444
      yes*)
 
2445
        case $host in
 
2446
        i?86-*-solaris*)
 
2447
          LD="${LD-ld} -m elf_x86_64"
 
2448
          ;;
 
2449
        sparc*-*-solaris*)
 
2450
          LD="${LD-ld} -m elf64_sparc"
 
2451
          ;;
 
2452
        esac
 
2453
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
2454
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
2455
          LD="${LD-ld}_sol2"
 
2456
        fi
 
2457
        ;;
2377
2458
      *)
2378
2459
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2379
2460
          LD="${LD-ld} -64"
2391
2472
])# _LT_ENABLE_LOCK
2392
2473
 
2393
2474
 
 
2475
# _LT_PROG_AR
 
2476
# -----------
 
2477
m4_defun([_LT_PROG_AR],
 
2478
[AC_CHECK_TOOLS(AR, [ar], false)
 
2479
: ${AR=ar}
 
2480
: ${AR_FLAGS=cru}
 
2481
_LT_DECL([], [AR], [1], [The archiver])
 
2482
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2483
 
 
2484
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2485
  [lt_cv_ar_at_file=no
 
2486
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2487
     [echo conftest.$ac_objext > conftest.lst
 
2488
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2489
      AC_TRY_EVAL([lt_ar_try])
 
2490
      if test "$ac_status" -eq 0; then
 
2491
        # Ensure the archiver fails upon bogus file names.
 
2492
        rm -f conftest.$ac_objext libconftest.a
 
2493
        AC_TRY_EVAL([lt_ar_try])
 
2494
        if test "$ac_status" -ne 0; then
 
2495
          lt_cv_ar_at_file=@
 
2496
        fi
 
2497
      fi
 
2498
      rm -f conftest.* libconftest.a
 
2499
     ])
 
2500
  ])
 
2501
 
 
2502
if test "x$lt_cv_ar_at_file" = xno; then
 
2503
  archiver_list_spec=
 
2504
else
 
2505
  archiver_list_spec=$lt_cv_ar_at_file
 
2506
fi
 
2507
_LT_DECL([], [archiver_list_spec], [1],
 
2508
  [How to feed a file listing to the archiver])
 
2509
])# _LT_PROG_AR
 
2510
 
 
2511
 
2394
2512
# _LT_CMD_OLD_ARCHIVE
2395
2513
# -------------------
2396
2514
m4_defun([_LT_CMD_OLD_ARCHIVE],
2397
 
[AC_CHECK_TOOL(AR, ar, false)
2398
 
test -z "$AR" && AR=ar
2399
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2400
 
_LT_DECL([], [AR], [1], [The archiver])
2401
 
_LT_DECL([], [AR_FLAGS], [1])
 
2515
[_LT_PROG_AR
2402
2516
 
2403
2517
AC_CHECK_TOOL(STRIP, strip, :)
2404
2518
test -z "$STRIP" && STRIP=:
2417
2531
if test -n "$RANLIB"; then
2418
2532
  case $host_os in
2419
2533
  openbsd*)
2420
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2534
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2421
2535
    ;;
2422
2536
  *)
2423
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2537
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2424
2538
    ;;
2425
2539
  esac
2426
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2540
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2427
2541
fi
 
2542
 
 
2543
case $host_os in
 
2544
  darwin*)
 
2545
    lock_old_archive_extraction=yes ;;
 
2546
  *)
 
2547
    lock_old_archive_extraction=no ;;
 
2548
esac
2428
2549
_LT_DECL([], [old_postinstall_cmds], [2])
2429
2550
_LT_DECL([], [old_postuninstall_cmds], [2])
2430
2551
_LT_TAGDECL([], [old_archive_cmds], [2],
2431
2552
    [Commands used to build an old-style archive])
 
2553
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2554
    [Whether to use a lock for old archive extraction])
2432
2555
])# _LT_CMD_OLD_ARCHIVE
2433
2556
 
2434
2557
 
2453
2576
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2454
2577
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2455
2578
   -e 's:$: $lt_compiler_flag:'`
2456
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2579
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2457
2580
   (eval "$lt_compile" 2>conftest.err)
2458
2581
   ac_status=$?
2459
2582
   cat conftest.err >&AS_MESSAGE_LOG_FD
2460
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2583
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2461
2584
   if (exit $ac_status) && test -s "$ac_outfile"; then
2462
2585
     # The compiler can only warn and ignore the option if not recognized
2463
2586
     # So say no if there are warnings other than the usual output.
2464
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2587
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2465
2588
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2466
2589
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2467
2590
       $2=yes
2501
2624
     if test -s conftest.err; then
2502
2625
       # Append any errors to the config.log.
2503
2626
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2504
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2627
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2505
2628
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2506
2629
       if diff conftest.exp conftest.er2 >/dev/null; then
2507
2630
         $2=yes
2564
2687
    lt_cv_sys_max_cmd_len=8192;
2565
2688
    ;;
2566
2689
 
 
2690
  mint*)
 
2691
    # On MiNT this can take a long time and run out of memory.
 
2692
    lt_cv_sys_max_cmd_len=8192;
 
2693
    ;;
 
2694
 
2567
2695
  amigaos*)
2568
2696
    # On AmigaOS with pdksh, this test takes hours, literally.
2569
2697
    # So we just punt and use a minimum line length of 8192.
2589
2717
    lt_cv_sys_max_cmd_len=196608
2590
2718
    ;;
2591
2719
 
 
2720
  os2*)
 
2721
    # The test takes a long time on OS/2.
 
2722
    lt_cv_sys_max_cmd_len=8192
 
2723
    ;;
 
2724
 
2592
2725
  osf*)
2593
2726
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2594
2727
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2628
2761
      # If test is not a shell built-in, we'll probably end up computing a
2629
2762
      # maximum length that is only half of the actual maximum length, but
2630
2763
      # we can't tell.
2631
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2632
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2764
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
2765
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2633
2766
              test $i != 17 # 1/2 MB should be enough
2634
2767
      do
2635
2768
        i=`expr $i + 1`
2680
2813
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2681
2814
  lt_status=$lt_dlunknown
2682
2815
  cat > conftest.$ac_ext <<_LT_EOF
2683
 
[#line __oline__ "configure"
 
2816
[#line $LINENO "configure"
2684
2817
#include "confdefs.h"
2685
2818
 
2686
2819
#if HAVE_DLFCN_H
2721
2854
#  endif
2722
2855
#endif
2723
2856
 
2724
 
void fnord() { int i=42;}
 
2857
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2858
   correspondingly for the symbols needed.  */
 
2859
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2860
int fnord () __attribute__((visibility("default")));
 
2861
#endif
 
2862
 
 
2863
int fnord () { return 42; }
2725
2864
int main ()
2726
2865
{
2727
2866
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2730
2869
  if (self)
2731
2870
    {
2732
2871
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2733
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
2872
      else
 
2873
        {
 
2874
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
2875
          else puts (dlerror ());
 
2876
        }
2734
2877
      /* dlclose (self); */
2735
2878
    }
2736
2879
  else
2906
3049
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2907
3050
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2908
3051
   -e 's:$: $lt_compiler_flag:'`
2909
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3052
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2910
3053
   (eval "$lt_compile" 2>out/conftest.err)
2911
3054
   ac_status=$?
2912
3055
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2913
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3056
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2914
3057
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2915
3058
   then
2916
3059
     # The compiler can only warn and ignore the option if not recognized
2917
3060
     # So say no if there are warnings
2918
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
3061
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2919
3062
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2920
3063
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2921
3064
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3074
3217
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3075
3218
m4_require([_LT_DECL_OBJDUMP])dnl
3076
3219
m4_require([_LT_DECL_SED])dnl
 
3220
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3077
3221
AC_MSG_CHECKING([dynamic linker characteristics])
3078
3222
m4_if([$1],
3079
3223
        [], [
3082
3226
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3083
3227
    *) lt_awk_arg="/^libraries:/" ;;
3084
3228
  esac
3085
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3086
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3229
  case $host_os in
 
3230
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
3231
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
3232
  esac
 
3233
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
3234
  case $lt_search_path_spec in
 
3235
  *\;*)
3087
3236
    # if the path contains ";" then we assume it to be the separator
3088
3237
    # otherwise default to the standard path separator (i.e. ":") - it is
3089
3238
    # assumed that no part of a normal pathname contains ";" but that should
3090
3239
    # okay in the real world where ";" in dirpaths is itself problematic.
3091
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3092
 
  else
3093
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3094
 
  fi
 
3240
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
3241
    ;;
 
3242
  *)
 
3243
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
3244
    ;;
 
3245
  esac
3095
3246
  # Ok, now we have the path, separated by spaces, we can step through it
3096
3247
  # and add multilib dir if necessary.
3097
3248
  lt_tmp_lt_search_path_spec=
3104
3255
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3105
3256
    fi
3106
3257
  done
3107
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3258
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3108
3259
BEGIN {RS=" "; FS="/|\n";} {
3109
3260
  lt_foo="";
3110
3261
  lt_count=0;
3124
3275
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3125
3276
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3126
3277
}'`
3127
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3278
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
3279
  # for these hosts.
 
3280
  case $host_os in
 
3281
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
3282
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
3283
  esac
 
3284
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3128
3285
else
3129
3286
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3130
3287
fi])
3150
3307
 
3151
3308
case $host_os in
3152
3309
aix3*)
3153
 
  version_type=linux
 
3310
  version_type=linux # correct to gnu/linux during the next big refactor
3154
3311
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3155
3312
  shlibpath_var=LIBPATH
3156
3313
 
3159
3316
  ;;
3160
3317
 
3161
3318
aix[[4-9]]*)
3162
 
  version_type=linux
 
3319
  version_type=linux # correct to gnu/linux during the next big refactor
3163
3320
  need_lib_prefix=no
3164
3321
  need_version=no
3165
3322
  hardcode_into_libs=yes
3212
3369
  m68k)
3213
3370
    library_names_spec='$libname.ixlibrary $libname.a'
3214
3371
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3215
 
    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'
 
3372
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3216
3373
    ;;
3217
3374
  esac
3218
3375
  ;;
3224
3381
  ;;
3225
3382
 
3226
3383
bsdi[[45]]*)
3227
 
  version_type=linux
 
3384
  version_type=linux # correct to gnu/linux during the next big refactor
3228
3385
  need_version=no
3229
3386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3230
3387
  soname_spec='${libname}${release}${shared_ext}$major'
3243
3400
  need_version=no
3244
3401
  need_lib_prefix=no
3245
3402
 
3246
 
  case $GCC,$host_os in
3247
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3403
  case $GCC,$cc_basename in
 
3404
  yes,*)
 
3405
    # gcc
3248
3406
    library_names_spec='$libname.dll.a'
3249
3407
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3250
3408
    postinstall_cmds='base_file=`basename \${file}`~
3265
3423
    cygwin*)
3266
3424
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3267
3425
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3268
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
3426
m4_if([$1], [],[
 
3427
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3269
3428
      ;;
3270
3429
    mingw* | cegcc*)
3271
3430
      # MinGW DLLs use traditional 'lib' prefix
3272
3431
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3273
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3274
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3275
 
        # It is most probably a Windows format PATH printed by
3276
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3277
 
        # path with ; separators, and with drive letters. We can handle the
3278
 
        # drive letters (cygwin fileutils understands them), so leave them,
3279
 
        # especially as we might pass files found there to a mingw objdump,
3280
 
        # which wouldn't understand a cygwinified path. Ahh.
3281
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3282
 
      else
3283
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3284
 
      fi
3285
3432
      ;;
3286
3433
    pw32*)
3287
3434
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3288
3435
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3289
3436
      ;;
3290
3437
    esac
 
3438
    dynamic_linker='Win32 ld.exe'
 
3439
    ;;
 
3440
 
 
3441
  *,cl*)
 
3442
    # Native MSVC
 
3443
    libname_spec='$name'
 
3444
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3445
    library_names_spec='${libname}.dll.lib'
 
3446
 
 
3447
    case $build_os in
 
3448
    mingw*)
 
3449
      sys_lib_search_path_spec=
 
3450
      lt_save_ifs=$IFS
 
3451
      IFS=';'
 
3452
      for lt_path in $LIB
 
3453
      do
 
3454
        IFS=$lt_save_ifs
 
3455
        # Let DOS variable expansion print the short 8.3 style file name.
 
3456
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3457
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3458
      done
 
3459
      IFS=$lt_save_ifs
 
3460
      # Convert to MSYS style.
 
3461
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3462
      ;;
 
3463
    cygwin*)
 
3464
      # Convert to unix form, then to dos form, then back to unix form
 
3465
      # but this time dos style (no spaces!) so that the unix form looks
 
3466
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3467
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3468
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3469
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3470
      ;;
 
3471
    *)
 
3472
      sys_lib_search_path_spec="$LIB"
 
3473
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3474
        # It is most probably a Windows format PATH.
 
3475
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3476
      else
 
3477
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3478
      fi
 
3479
      # FIXME: find the short name or the path components, as spaces are
 
3480
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3481
      ;;
 
3482
    esac
 
3483
 
 
3484
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3485
    postinstall_cmds='base_file=`basename \${file}`~
 
3486
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3487
      dldir=$destdir/`dirname \$dlpath`~
 
3488
      test -d \$dldir || mkdir -p \$dldir~
 
3489
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3490
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3491
      dlpath=$dir/\$dldll~
 
3492
       $RM \$dlpath'
 
3493
    shlibpath_overrides_runpath=yes
 
3494
    dynamic_linker='Win32 link.exe'
3291
3495
    ;;
3292
3496
 
3293
3497
  *)
 
3498
    # Assume MSVC wrapper
3294
3499
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3500
    dynamic_linker='Win32 ld.exe'
3295
3501
    ;;
3296
3502
  esac
3297
 
  dynamic_linker='Win32 ld.exe'
3298
3503
  # FIXME: first we should search . and the directory the executable is in
3299
3504
  shlibpath_var=PATH
3300
3505
  ;;
3315
3520
  ;;
3316
3521
 
3317
3522
dgux*)
3318
 
  version_type=linux
 
3523
  version_type=linux # correct to gnu/linux during the next big refactor
3319
3524
  need_lib_prefix=no
3320
3525
  need_version=no
3321
3526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3323
3528
  shlibpath_var=LD_LIBRARY_PATH
3324
3529
  ;;
3325
3530
 
3326
 
freebsd1*)
3327
 
  dynamic_linker=no
3328
 
  ;;
3329
 
 
3330
3531
freebsd* | dragonfly*)
3331
3532
  # DragonFly does not have aout.  When/if they implement a new
3332
3533
  # versioning mechanism, adjust this.
3334
3535
    objformat=`/usr/bin/objformat`
3335
3536
  else
3336
3537
    case $host_os in
3337
 
    freebsd[[123]]*) objformat=aout ;;
 
3538
    freebsd[[23]].*) objformat=aout ;;
3338
3539
    *) objformat=elf ;;
3339
3540
    esac
3340
3541
  fi
3352
3553
  esac
3353
3554
  shlibpath_var=LD_LIBRARY_PATH
3354
3555
  case $host_os in
3355
 
  freebsd2*)
 
3556
  freebsd2.*)
3356
3557
    shlibpath_overrides_runpath=yes
3357
3558
    ;;
3358
3559
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3372
3573
  ;;
3373
3574
 
3374
3575
gnu*)
3375
 
  version_type=linux
 
3576
  version_type=linux # correct to gnu/linux during the next big refactor
3376
3577
  need_lib_prefix=no
3377
3578
  need_version=no
3378
3579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3379
3580
  soname_spec='${libname}${release}${shared_ext}$major'
3380
3581
  shlibpath_var=LD_LIBRARY_PATH
 
3582
  shlibpath_overrides_runpath=no
 
3583
  hardcode_into_libs=yes
 
3584
  ;;
 
3585
 
 
3586
haiku*)
 
3587
  version_type=linux # correct to gnu/linux during the next big refactor
 
3588
  need_lib_prefix=no
 
3589
  need_version=no
 
3590
  dynamic_linker="$host_os runtime_loader"
 
3591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3592
  soname_spec='${libname}${release}${shared_ext}$major'
 
3593
  shlibpath_var=LIBRARY_PATH
 
3594
  shlibpath_overrides_runpath=yes
 
3595
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3381
3596
  hardcode_into_libs=yes
3382
3597
  ;;
3383
3598
 
3423
3638
    soname_spec='${libname}${release}${shared_ext}$major'
3424
3639
    ;;
3425
3640
  esac
3426
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
3641
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3427
3642
  postinstall_cmds='chmod 555 $lib'
 
3643
  # or fails outright, so override atomically:
 
3644
  install_override_mode=555
3428
3645
  ;;
3429
3646
 
3430
3647
interix[[3-9]]*)
3431
 
  version_type=linux
 
3648
  version_type=linux # correct to gnu/linux during the next big refactor
3432
3649
  need_lib_prefix=no
3433
3650
  need_version=no
3434
3651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3444
3661
    nonstopux*) version_type=nonstopux ;;
3445
3662
    *)
3446
3663
        if test "$lt_cv_prog_gnu_ld" = yes; then
3447
 
                version_type=linux
 
3664
                version_type=linux # correct to gnu/linux during the next big refactor
3448
3665
        else
3449
3666
                version_type=irix
3450
3667
        fi ;;
3481
3698
  dynamic_linker=no
3482
3699
  ;;
3483
3700
 
3484
 
# This must be Linux ELF.
3485
 
linux* | k*bsd*-gnu)
3486
 
  version_type=linux
 
3701
# This must be glibc/ELF.
 
3702
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3703
  version_type=linux # correct to gnu/linux during the next big refactor
3487
3704
  need_lib_prefix=no
3488
3705
  need_version=no
3489
3706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3491
3708
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3492
3709
  shlibpath_var=LD_LIBRARY_PATH
3493
3710
  shlibpath_overrides_runpath=no
 
3711
 
3494
3712
  # Some binutils ld are patched to set DT_RUNPATH
3495
 
  save_LDFLAGS=$LDFLAGS
3496
 
  save_libdir=$libdir
3497
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3498
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3499
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3500
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3501
 
       [shlibpath_overrides_runpath=yes])])
3502
 
  LDFLAGS=$save_LDFLAGS
3503
 
  libdir=$save_libdir
 
3713
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
3714
    [lt_cv_shlibpath_overrides_runpath=no
 
3715
    save_LDFLAGS=$LDFLAGS
 
3716
    save_libdir=$libdir
 
3717
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3718
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3719
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3720
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3721
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
3722
    LDFLAGS=$save_LDFLAGS
 
3723
    libdir=$save_libdir
 
3724
    ])
 
3725
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3504
3726
 
3505
3727
  # This implies no fast_install, which is unacceptable.
3506
3728
  # Some rework will be needed to allow for fast_install
3509
3731
 
3510
3732
  # Append ld.so.conf contents to the search path
3511
3733
  if test -f /etc/ld.so.conf; then
3512
 
    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' ' '`
 
3734
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
3513
3735
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3514
3736
  fi
3515
3737
 
3522
3744
  dynamic_linker='GNU/Linux ld.so'
3523
3745
  ;;
3524
3746
 
 
3747
netbsdelf*-gnu)
 
3748
  version_type=linux
 
3749
  need_lib_prefix=no
 
3750
  need_version=no
 
3751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3752
  soname_spec='${libname}${release}${shared_ext}$major'
 
3753
  shlibpath_var=LD_LIBRARY_PATH
 
3754
  shlibpath_overrides_runpath=no
 
3755
  hardcode_into_libs=yes
 
3756
  dynamic_linker='NetBSD ld.elf_so'
 
3757
  ;;
 
3758
 
3525
3759
netbsd*)
3526
3760
  version_type=sunos
3527
3761
  need_lib_prefix=no
3541
3775
  ;;
3542
3776
 
3543
3777
newsos6)
3544
 
  version_type=linux
 
3778
  version_type=linux # correct to gnu/linux during the next big refactor
3545
3779
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3546
3780
  shlibpath_var=LD_LIBRARY_PATH
3547
3781
  shlibpath_overrides_runpath=yes
3610
3844
  ;;
3611
3845
 
3612
3846
solaris*)
3613
 
  version_type=linux
 
3847
  version_type=linux # correct to gnu/linux during the next big refactor
3614
3848
  need_lib_prefix=no
3615
3849
  need_version=no
3616
3850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3635
3869
  ;;
3636
3870
 
3637
3871
sysv4 | sysv4.3*)
3638
 
  version_type=linux
 
3872
  version_type=linux # correct to gnu/linux during the next big refactor
3639
3873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3640
3874
  soname_spec='${libname}${release}${shared_ext}$major'
3641
3875
  shlibpath_var=LD_LIBRARY_PATH
3659
3893
 
3660
3894
sysv4*MP*)
3661
3895
  if test -d /usr/nec ;then
3662
 
    version_type=linux
 
3896
    version_type=linux # correct to gnu/linux during the next big refactor
3663
3897
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3664
3898
    soname_spec='$libname${shared_ext}.$major'
3665
3899
    shlibpath_var=LD_LIBRARY_PATH
3690
3924
 
3691
3925
tpf*)
3692
3926
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3693
 
  version_type=linux
 
3927
  version_type=linux # correct to gnu/linux during the next big refactor
3694
3928
  need_lib_prefix=no
3695
3929
  need_version=no
3696
3930
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3700
3934
  ;;
3701
3935
 
3702
3936
uts4*)
3703
 
  version_type=linux
 
3937
  version_type=linux # correct to gnu/linux during the next big refactor
3704
3938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3705
3939
  soname_spec='${libname}${release}${shared_ext}$major'
3706
3940
  shlibpath_var=LD_LIBRARY_PATH
3742
3976
    The last name is the one that the linker finds with -lNAME]])
3743
3977
_LT_DECL([], [soname_spec], [1],
3744
3978
    [[The coded name of the library, if different from the real name]])
 
3979
_LT_DECL([], [install_override_mode], [1],
 
3980
    [Permission mode override for installation of shared libraries])
3745
3981
_LT_DECL([], [postinstall_cmds], [2],
3746
3982
    [Command to use after installation of a shared archive])
3747
3983
_LT_DECL([], [postuninstall_cmds], [2],
3854
4090
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3855
4091
m4_require([_LT_DECL_SED])dnl
3856
4092
m4_require([_LT_DECL_EGREP])dnl
 
4093
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3857
4094
 
3858
4095
AC_ARG_WITH([gnu-ld],
3859
4096
    [AS_HELP_STRING([--with-gnu-ld],
3975
4212
esac
3976
4213
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3977
4214
case $host_os in
 
4215
  cygwin* | mingw* | pw32* | cegcc*)
 
4216
    if test "$GCC" != yes; then
 
4217
      reload_cmds=false
 
4218
    fi
 
4219
    ;;
3978
4220
  darwin*)
3979
4221
    if test "$GCC" = yes; then
3980
4222
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3983
4225
    fi
3984
4226
    ;;
3985
4227
esac
3986
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3987
 
_LT_DECL([], [reload_cmds], [2])dnl
 
4228
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4229
_LT_TAGDECL([], [reload_cmds], [2])dnl
3988
4230
])# _LT_CMD_RELOAD
3989
4231
 
3990
4232
 
4036
4278
  # Base MSYS/MinGW do not provide the 'file' command needed by
4037
4279
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4038
4280
  # unless we find 'file', for example because we are cross-compiling.
4039
 
  if ( file / ) >/dev/null 2>&1; then
 
4281
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
4282
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4040
4283
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4041
4284
    lt_cv_file_magic_cmd='func_win32_libid'
4042
4285
  else
4043
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4286
    # Keep this pattern in sync with the one in func_win32_libid.
 
4287
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4044
4288
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4045
4289
  fi
4046
4290
  ;;
4047
4291
 
4048
 
cegcc)
 
4292
cegcc*)
4049
4293
  # use the weaker test based on 'objdump'. See mingw*.
4050
4294
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4051
4295
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4075
4319
  lt_cv_deplibs_check_method=pass_all
4076
4320
  ;;
4077
4321
 
 
4322
haiku*)
 
4323
  lt_cv_deplibs_check_method=pass_all
 
4324
  ;;
 
4325
 
4078
4326
hpux10.20* | hpux11*)
4079
4327
  lt_cv_file_magic_cmd=/usr/bin/file
4080
4328
  case $host_cpu in
4083
4331
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4084
4332
    ;;
4085
4333
  hppa*64*)
4086
 
    [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]']
 
4334
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
4087
4335
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4088
4336
    ;;
4089
4337
  *)
4090
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
4338
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4091
4339
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4092
4340
    ;;
4093
4341
  esac
4108
4356
  lt_cv_deplibs_check_method=pass_all
4109
4357
  ;;
4110
4358
 
4111
 
# This must be Linux ELF.
4112
 
linux* | k*bsd*-gnu)
 
4359
# This must be glibc/ELF.
 
4360
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4113
4361
  lt_cv_deplibs_check_method=pass_all
4114
4362
  ;;
4115
4363
 
4116
 
netbsd*)
 
4364
netbsd* | netbsdelf*-gnu)
4117
4365
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4118
4366
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4119
4367
  else
4187
4435
  ;;
4188
4436
esac
4189
4437
])
 
4438
 
 
4439
file_magic_glob=
 
4440
want_nocaseglob=no
 
4441
if test "$build" = "$host"; then
 
4442
  case $host_os in
 
4443
  mingw* | pw32*)
 
4444
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4445
      want_nocaseglob=yes
 
4446
    else
 
4447
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4448
    fi
 
4449
    ;;
 
4450
  esac
 
4451
fi
 
4452
 
4190
4453
file_magic_cmd=$lt_cv_file_magic_cmd
4191
4454
deplibs_check_method=$lt_cv_deplibs_check_method
4192
4455
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4194
4457
_LT_DECL([], [deplibs_check_method], [1],
4195
4458
    [Method to check whether dependent libraries are shared objects])
4196
4459
_LT_DECL([], [file_magic_cmd], [1],
4197
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4460
    [Command to use when deplibs_check_method = "file_magic"])
 
4461
_LT_DECL([], [file_magic_glob], [1],
 
4462
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4463
_LT_DECL([], [want_nocaseglob], [1],
 
4464
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4198
4465
])# _LT_CHECK_MAGIC_METHOD
4199
4466
 
4200
4467
 
4251
4518
  NM="$lt_cv_path_NM"
4252
4519
else
4253
4520
  # Didn't find any BSD compatible name lister, look for dumpbin.
4254
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4521
  if test -n "$DUMPBIN"; then :
 
4522
    # Let the user override the test.
 
4523
  else
 
4524
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4525
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4526
    *COFF*)
 
4527
      DUMPBIN="$DUMPBIN -symbols"
 
4528
      ;;
 
4529
    *)
 
4530
      DUMPBIN=:
 
4531
      ;;
 
4532
    esac
 
4533
  fi
4255
4534
  AC_SUBST([DUMPBIN])
4256
4535
  if test "$DUMPBIN" != ":"; then
4257
4536
    NM="$DUMPBIN"
4264
4543
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4265
4544
  [lt_cv_nm_interface="BSD nm"
4266
4545
  echo "int some_variable = 0;" > conftest.$ac_ext
4267
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4546
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4268
4547
  (eval "$ac_compile" 2>conftest.err)
4269
4548
  cat conftest.err >&AS_MESSAGE_LOG_FD
4270
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4549
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4271
4550
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4272
4551
  cat conftest.err >&AS_MESSAGE_LOG_FD
4273
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4552
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4274
4553
  cat conftest.out >&AS_MESSAGE_LOG_FD
4275
4554
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4276
4555
    lt_cv_nm_interface="MS dumpbin"
4285
4564
dnl AC_DEFUN([AM_PROG_NM], [])
4286
4565
dnl AC_DEFUN([AC_PROG_NM], [])
4287
4566
 
 
4567
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4568
# --------------------------------
 
4569
# how to determine the name of the shared library
 
4570
# associated with a specific link library.
 
4571
#  -- PORTME fill in with the dynamic library characteristics
 
4572
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4573
[m4_require([_LT_DECL_EGREP])
 
4574
m4_require([_LT_DECL_OBJDUMP])
 
4575
m4_require([_LT_DECL_DLLTOOL])
 
4576
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4577
lt_cv_sharedlib_from_linklib_cmd,
 
4578
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4579
 
 
4580
case $host_os in
 
4581
cygwin* | mingw* | pw32* | cegcc*)
 
4582
  # two different shell functions defined in ltmain.sh
 
4583
  # decide which to use based on capabilities of $DLLTOOL
 
4584
  case `$DLLTOOL --help 2>&1` in
 
4585
  *--identify-strict*)
 
4586
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4587
    ;;
 
4588
  *)
 
4589
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4590
    ;;
 
4591
  esac
 
4592
  ;;
 
4593
*)
 
4594
  # fallback: assume linklib IS sharedlib
 
4595
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4596
  ;;
 
4597
esac
 
4598
])
 
4599
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4600
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4601
 
 
4602
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4603
    [Command to associate shared and link libraries])
 
4604
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4605
 
 
4606
 
 
4607
# _LT_PATH_MANIFEST_TOOL
 
4608
# ----------------------
 
4609
# locate the manifest tool
 
4610
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4611
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4612
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4613
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4614
  [lt_cv_path_mainfest_tool=no
 
4615
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4616
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4617
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4618
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4619
    lt_cv_path_mainfest_tool=yes
 
4620
  fi
 
4621
  rm -f conftest*])
 
4622
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4623
  MANIFEST_TOOL=:
 
4624
fi
 
4625
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4626
])# _LT_PATH_MANIFEST_TOOL
 
4627
 
4288
4628
 
4289
4629
# LT_LIB_M
4290
4630
# --------
4293
4633
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4294
4634
LIBM=
4295
4635
case $host in
4296
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
4636
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4297
4637
  # These system don't have libm, or don't need it
4298
4638
  ;;
4299
4639
*-ncr-sysv4.3*)
4321
4661
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4322
4662
 
4323
4663
if test "$GCC" = yes; then
4324
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4664
  case $cc_basename in
 
4665
  nvcc*)
 
4666
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
4667
  *)
 
4668
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
4669
  esac
4325
4670
 
4326
4671
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4327
4672
    lt_cv_prog_compiler_rtti_exceptions,
4338
4683
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4339
4684
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4340
4685
AC_REQUIRE([AC_PROG_CC])dnl
 
4686
AC_REQUIRE([AC_PROG_AWK])dnl
4341
4687
AC_REQUIRE([LT_PATH_NM])dnl
4342
4688
AC_REQUIRE([LT_PATH_LD])dnl
4343
4689
m4_require([_LT_DECL_SED])dnl
4405
4751
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4406
4752
 
4407
4753
# Transform an extracted symbol line into symbol name and symbol address
4408
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4409
 
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'"
 
4754
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4755
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'"
4410
4756
 
4411
4757
# Handle CRLF in mingw tool chain
4412
4758
opt_cr=
4430
4776
    # which start with @ or ?.
4431
4777
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4432
4778
"     {last_section=section; section=\$ 3};"\
 
4779
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4433
4780
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4434
4781
"     \$ 0!~/External *\|/{next};"\
4435
4782
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4442
4789
  else
4443
4790
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4444
4791
  fi
 
4792
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4445
4793
 
4446
4794
  # Check to see that the pipe works correctly.
4447
4795
  pipe_works=no
4463
4811
  if AC_TRY_EVAL(ac_compile); then
4464
4812
    # Now try to grab the symbols.
4465
4813
    nlist=conftest.nm
4466
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
4814
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4467
4815
      # Try sorting and uniquifying the output.
4468
4816
      if sort "$nlist" | uniq > "$nlist"T; then
4469
4817
        mv -f "$nlist"T "$nlist"
4475
4823
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4476
4824
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4477
4825
          cat <<_LT_EOF > conftest.$ac_ext
 
4826
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4827
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4828
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4829
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4830
# define LT@&t@_DLSYM_CONST
 
4831
#elif defined(__osf__)
 
4832
/* This system does not cope well with relocations in const data.  */
 
4833
# define LT@&t@_DLSYM_CONST
 
4834
#else
 
4835
# define LT@&t@_DLSYM_CONST const
 
4836
#endif
 
4837
 
4478
4838
#ifdef __cplusplus
4479
4839
extern "C" {
4480
4840
#endif
4486
4846
          cat <<_LT_EOF >> conftest.$ac_ext
4487
4847
 
4488
4848
/* The mapping between symbol names and symbols.  */
4489
 
const struct {
 
4849
LT@&t@_DLSYM_CONST struct {
4490
4850
  const char *name;
4491
4851
  void       *address;
4492
4852
}
4512
4872
_LT_EOF
4513
4873
          # Now try linking the two files.
4514
4874
          mv conftest.$ac_objext conftstm.$ac_objext
4515
 
          lt_save_LIBS="$LIBS"
4516
 
          lt_save_CFLAGS="$CFLAGS"
 
4875
          lt_globsym_save_LIBS=$LIBS
 
4876
          lt_globsym_save_CFLAGS=$CFLAGS
4517
4877
          LIBS="conftstm.$ac_objext"
4518
4878
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4519
4879
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4520
4880
            pipe_works=yes
4521
4881
          fi
4522
 
          LIBS="$lt_save_LIBS"
4523
 
          CFLAGS="$lt_save_CFLAGS"
 
4882
          LIBS=$lt_globsym_save_LIBS
 
4883
          CFLAGS=$lt_globsym_save_CFLAGS
4524
4884
        else
4525
4885
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4526
4886
        fi
4553
4913
  AC_MSG_RESULT(ok)
4554
4914
fi
4555
4915
 
 
4916
# Response file support.
 
4917
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4918
  nm_file_list_spec='@'
 
4919
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4920
  nm_file_list_spec='@'
 
4921
fi
 
4922
 
4556
4923
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4557
4924
    [Take the output of nm and produce a listing of raw symbols and C names])
4558
4925
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4563
4930
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4564
4931
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4565
4932
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4933
_LT_DECL([], [nm_file_list_spec], [1],
 
4934
    [Specify filename containing input files for $NM])
4566
4935
]) # _LT_CMD_GLOBAL_SYMBOLS
4567
4936
 
4568
4937
 
4574
4943
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4575
4944
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4576
4945
 
4577
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4578
4946
m4_if([$1], [CXX], [
4579
4947
  # C++ specific cases for pic, static, wl, etc.
4580
4948
  if test "$GXX" = yes; then
4625
4993
      # DJGPP does not support shared libraries at all
4626
4994
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4627
4995
      ;;
 
4996
    haiku*)
 
4997
      # PIC is the default for Haiku.
 
4998
      # The "-static" flag exists, but is broken.
 
4999
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5000
      ;;
4628
5001
    interix[[3-9]]*)
4629
5002
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4630
5003
      # Instead, we relocate shared libraries at runtime.
4674
5047
          ;;
4675
5048
        esac
4676
5049
        ;;
 
5050
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
5051
        # This hack is so that the source file can tell whether it is being
 
5052
        # built for inclusion in a dll (and should export symbols for example).
 
5053
        m4_if([$1], [GCJ], [],
 
5054
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5055
        ;;
4677
5056
      dgux*)
4678
5057
        case $cc_basename in
4679
5058
          ec++*)
4730
5109
            ;;
4731
5110
        esac
4732
5111
        ;;
4733
 
      linux* | k*bsd*-gnu)
 
5112
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
4734
5113
        case $cc_basename in
4735
5114
          KCC*)
4736
5115
            # KAI C++ Compiler
4763
5142
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4764
5143
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4765
5144
            ;;
4766
 
          xlc* | xlC*)
4767
 
            # IBM XL 8.0 on PPC
 
5145
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
5146
            # IBM XL 8.0, 9.0 on PPC and BlueGene
4768
5147
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4769
5148
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4770
5149
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4794
5173
            ;;
4795
5174
        esac
4796
5175
        ;;
4797
 
      netbsd*)
 
5176
      netbsd* | netbsdelf*-gnu)
4798
5177
        ;;
4799
5178
      *qnx* | *nto*)
4800
5179
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4826
5205
        ;;
4827
5206
      solaris*)
4828
5207
        case $cc_basename in
4829
 
          CC*)
 
5208
          CC* | sunCC*)
4830
5209
            # Sun C++ 4.2, 5.x and Centerline C++
4831
5210
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4832
5211
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4930
5309
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4931
5310
      ;;
4932
5311
 
 
5312
    haiku*)
 
5313
      # PIC is the default for Haiku.
 
5314
      # The "-static" flag exists, but is broken.
 
5315
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5316
      ;;
 
5317
 
4933
5318
    hpux*)
4934
5319
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4935
5320
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4972
5357
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4973
5358
      ;;
4974
5359
    esac
 
5360
 
 
5361
    case $cc_basename in
 
5362
    nvcc*) # Cuda Compiler Driver 2.2
 
5363
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
5364
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5365
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
5366
      fi
 
5367
      ;;
 
5368
    esac
4975
5369
  else
4976
5370
    # PORTME Check for flag to pass linker flags through the system compiler.
4977
5371
    case $host_os in
5014
5408
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5015
5409
      ;;
5016
5410
 
5017
 
    linux* | k*bsd*-gnu)
 
5411
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
5018
5412
      case $cc_basename in
5019
5413
      # old Intel for x86_64 which still supported -KPIC.
5020
5414
      ecc*)
5035
5429
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5036
5430
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5037
5431
        ;;
5038
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5432
      nagfor*)
 
5433
        # NAG Fortran compiler
 
5434
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5435
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5436
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5437
        ;;
 
5438
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5039
5439
        # Portland Group compilers (*not* the Pentium gcc compiler,
5040
5440
        # which looks to be a dead project)
5041
5441
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5047
5447
        # All Alpha code is PIC.
5048
5448
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5049
5449
        ;;
5050
 
      xl*)
5051
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5450
      xl* | bgxl* | bgf* | mpixl*)
 
5451
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5052
5452
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5053
5453
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5054
5454
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5055
5455
        ;;
5056
5456
      *)
5057
5457
        case `$CC -V 2>&1 | sed 5q` in
 
5458
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
5459
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5460
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5461
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5462
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5463
          ;;
 
5464
        *Sun\ F* | *Sun*Fortran*)
 
5465
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5466
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5467
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5468
          ;;
5058
5469
        *Sun\ C*)
5059
5470
          # Sun C 5.9
5060
5471
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5061
5472
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5062
5473
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5063
5474
          ;;
5064
 
        *Sun\ F*)
5065
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5066
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5475
        *Intel*\ [[CF]]*Compiler*)
 
5476
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5477
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5478
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5479
          ;;
 
5480
        *Portland\ Group*)
 
5481
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5482
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5067
5483
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5068
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5069
5484
          ;;
5070
5485
        esac
5071
5486
        ;;
5097
5512
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5098
5513
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5099
5514
      case $cc_basename in
5100
 
      f77* | f90* | f95*)
 
5515
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5101
5516
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5102
5517
      *)
5103
5518
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5154
5569
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5155
5570
    ;;
5156
5571
esac
5157
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5158
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5159
 
        [How to pass a linker flag through the compiler])
 
5572
 
 
5573
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5574
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5575
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5576
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5160
5577
 
5161
5578
#
5162
5579
# Check to make sure the PIC flag actually works.
5175
5592
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5176
5593
        [Additional compiler flags for building library objects])
5177
5594
 
 
5595
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5596
        [How to pass a linker flag through the compiler])
5178
5597
#
5179
5598
# Check to make sure the static flag actually works.
5180
5599
#
5195
5614
m4_defun([_LT_LINKER_SHLIBS],
5196
5615
[AC_REQUIRE([LT_PATH_LD])dnl
5197
5616
AC_REQUIRE([LT_PATH_NM])dnl
 
5617
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5198
5618
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5199
5619
m4_require([_LT_DECL_EGREP])dnl
5200
5620
m4_require([_LT_DECL_SED])dnl
5203
5623
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5204
5624
m4_if([$1], [CXX], [
5205
5625
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5626
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5206
5627
  case $host_os in
5207
5628
  aix[[4-9]]*)
5208
5629
    # If we're using GNU nm, then we don't want the "-C" option.
5209
5630
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5631
    # Also, AIX nm treats weak defined symbols like other global defined
 
5632
    # symbols, whereas GNU nm marks them as "W".
5210
5633
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5211
 
      _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'
 
5634
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5212
5635
    else
5213
5636
      _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'
5214
5637
    fi
5215
5638
    ;;
5216
5639
  pw32*)
5217
5640
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5218
 
  ;;
 
5641
    ;;
5219
5642
  cygwin* | mingw* | cegcc*)
5220
 
    _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'
5221
 
  ;;
 
5643
    case $cc_basename in
 
5644
    cl*)
 
5645
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5646
      ;;
 
5647
    *)
 
5648
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5649
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5650
      ;;
 
5651
    esac
 
5652
    ;;
 
5653
  linux* | k*bsd*-gnu | gnu*)
 
5654
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5655
    ;;
5222
5656
  *)
5223
5657
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5224
 
  ;;
 
5658
    ;;
5225
5659
  esac
5226
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5227
5660
], [
5228
5661
  runpath_var=
5229
5662
  _LT_TAGVAR(allow_undefined_flag, $1)=
5238
5671
  _LT_TAGVAR(hardcode_direct, $1)=no
5239
5672
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5240
5673
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5241
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5242
5674
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5243
5675
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5244
5676
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5283
5715
  openbsd*)
5284
5716
    with_gnu_ld=no
5285
5717
    ;;
 
5718
  linux* | k*bsd*-gnu | gnu*)
 
5719
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5720
    ;;
5286
5721
  esac
5287
5722
 
5288
5723
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
5724
 
 
5725
  # On some targets, GNU ld is compatible enough with the native linker
 
5726
  # that we're better off using the native interface for both.
 
5727
  lt_use_gnu_ld_interface=no
5289
5728
  if test "$with_gnu_ld" = yes; then
 
5729
    case $host_os in
 
5730
      aix*)
 
5731
        # The AIX port of GNU ld has always aspired to compatibility
 
5732
        # with the native linker.  However, as the warning in the GNU ld
 
5733
        # block says, versions before 2.19.5* couldn't really create working
 
5734
        # shared libraries, regardless of the interface used.
 
5735
        case `$LD -v 2>&1` in
 
5736
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
5737
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
5738
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
5739
          *)
 
5740
            lt_use_gnu_ld_interface=yes
 
5741
            ;;
 
5742
        esac
 
5743
        ;;
 
5744
      *)
 
5745
        lt_use_gnu_ld_interface=yes
 
5746
        ;;
 
5747
    esac
 
5748
  fi
 
5749
 
 
5750
  if test "$lt_use_gnu_ld_interface" = yes; then
5290
5751
    # If archive_cmds runs LD, not CC, wlarc should be empty
5291
5752
    wlarc='${wl}'
5292
5753
 
5304
5765
    fi
5305
5766
    supports_anon_versioning=no
5306
5767
    case `$LD -v 2>&1` in
 
5768
      *GNU\ gold*) supports_anon_versioning=yes ;;
5307
5769
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5308
5770
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5309
5771
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5319
5781
        _LT_TAGVAR(ld_shlibs, $1)=no
5320
5782
        cat <<_LT_EOF 1>&2
5321
5783
 
5322
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5784
*** Warning: the GNU linker, at least up to release 2.19, is reported
5323
5785
*** to be unable to reliably create shared libraries on AIX.
5324
5786
*** Therefore, libtool is disabling shared libraries support.  If you
5325
 
*** really care for shared libraries, you may want to modify your PATH
5326
 
*** so that a non-GNU linker is found, and then restart.
 
5787
*** really care for shared libraries, you may want to install binutils
 
5788
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
5789
*** You will then need to restart the configuration process.
5327
5790
 
5328
5791
_LT_EOF
5329
5792
      fi
5359
5822
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5360
5823
      # as there is no search path for DLLs.
5361
5824
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5825
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5362
5826
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5363
5827
      _LT_TAGVAR(always_export_symbols, $1)=no
5364
5828
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5365
 
      _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'
 
5829
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5830
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5366
5831
 
5367
5832
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5368
5833
        _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'
5380
5845
      fi
5381
5846
      ;;
5382
5847
 
 
5848
    haiku*)
 
5849
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5850
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5851
      ;;
 
5852
 
5383
5853
    interix[[3-9]]*)
5384
5854
      _LT_TAGVAR(hardcode_direct, $1)=no
5385
5855
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5395
5865
      _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'
5396
5866
      ;;
5397
5867
 
5398
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5868
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5399
5869
      tmp_diet=no
5400
5870
      if test "$host_os" = linux-dietlibc; then
5401
5871
        case $cc_basename in
5405
5875
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5406
5876
         && test "$tmp_diet" = no
5407
5877
      then
5408
 
        tmp_addflag=
 
5878
        tmp_addflag=' $pic_flag'
5409
5879
        tmp_sharedflag='-shared'
5410
5880
        case $cc_basename,$host_cpu in
5411
5881
        pgcc*)                          # Portland Group C compiler
5412
 
          _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'
 
5882
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5413
5883
          tmp_addflag=' $pic_flag'
5414
5884
          ;;
5415
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5416
 
          _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'
 
5885
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
5886
                                        # Portland Group f77 and f90 compilers
 
5887
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5417
5888
          tmp_addflag=' $pic_flag -Mnomain' ;;
5418
5889
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5419
5890
          tmp_addflag=' -i_dynamic' ;;
5424
5895
        lf95*)                          # Lahey Fortran 8.1
5425
5896
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5426
5897
          tmp_sharedflag='--shared' ;;
5427
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5898
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5428
5899
          tmp_sharedflag='-qmkshrobj'
5429
5900
          tmp_addflag= ;;
 
5901
        nvcc*)  # Cuda Compiler Driver 2.2
 
5902
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5903
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5904
          ;;
5430
5905
        esac
5431
5906
        case `$CC -V 2>&1 | sed 5q` in
5432
5907
        *Sun\ C*)                       # Sun C 5.9
5433
 
          _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'
 
5908
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5434
5909
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5435
5910
          tmp_sharedflag='-G' ;;
5436
5911
        *Sun\ F*)                       # Sun Fortran 8.3
5446
5921
        fi
5447
5922
 
5448
5923
        case $cc_basename in
5449
 
        xlf*)
 
5924
        xlf* | bgf* | bgxlf* | mpixlf*)
5450
5925
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5451
5926
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5452
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5453
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5454
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5927
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5928
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5455
5929
          if test "x$supports_anon_versioning" = xyes; then
5456
5930
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5457
5931
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5458
5932
              echo "local: *; };" >> $output_objdir/$libname.ver~
5459
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5933
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5460
5934
          fi
5461
5935
          ;;
5462
5936
        esac
5465
5939
      fi
5466
5940
      ;;
5467
5941
 
5468
 
    netbsd*)
 
5942
    netbsd* | netbsdelf*-gnu)
5469
5943
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5470
5944
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5471
5945
        wlarc=
5472
5946
      else
5473
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5474
 
        _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'
 
5947
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5948
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5475
5949
      fi
5476
5950
      ;;
5477
5951
 
5489
5963
 
5490
5964
_LT_EOF
5491
5965
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5492
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5493
 
        _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'
 
5966
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5967
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5494
5968
      else
5495
5969
        _LT_TAGVAR(ld_shlibs, $1)=no
5496
5970
      fi
5536
6010
 
5537
6011
    *)
5538
6012
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5539
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5540
 
        _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'
 
6013
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6014
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5541
6015
      else
5542
6016
        _LT_TAGVAR(ld_shlibs, $1)=no
5543
6017
      fi
5577
6051
      else
5578
6052
        # If we're using GNU nm, then we don't want the "-C" option.
5579
6053
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6054
        # Also, AIX nm treats weak defined symbols like other global
 
6055
        # defined symbols, whereas GNU nm marks them as "W".
5580
6056
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5581
 
          _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'
 
6057
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5582
6058
        else
5583
6059
          _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'
5584
6060
        fi
5640
6116
        if test "$aix_use_runtimelinking" = yes; then
5641
6117
          shared_flag="$shared_flag "'${wl}-G'
5642
6118
        fi
 
6119
        _LT_TAGVAR(link_all_deplibs, $1)=no
5643
6120
      else
5644
6121
        # not using gcc
5645
6122
        if test "$host_cpu" = ia64; then
5665
6142
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5666
6143
        # Determine the default libpath from the value encoded in an
5667
6144
        # empty executable.
5668
 
        _LT_SYS_MODULE_PATH_AIX
 
6145
        _LT_SYS_MODULE_PATH_AIX([$1])
5669
6146
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5670
 
        _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"
 
6147
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5671
6148
      else
5672
6149
        if test "$host_cpu" = ia64; then
5673
6150
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5676
6153
        else
5677
6154
         # Determine the default libpath from the value encoded in an
5678
6155
         # empty executable.
5679
 
         _LT_SYS_MODULE_PATH_AIX
 
6156
         _LT_SYS_MODULE_PATH_AIX([$1])
5680
6157
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5681
6158
          # Warning - without using the other run time loading flags,
5682
6159
          # -berok will link without error, but may produce a broken library.
5683
6160
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5684
6161
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5685
 
          # Exported symbols can be pulled into shared objects from archives
5686
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6162
          if test "$with_gnu_ld" = yes; then
 
6163
            # We only use this code for GNU lds that support --whole-archive.
 
6164
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6165
          else
 
6166
            # Exported symbols can be pulled into shared objects from archives
 
6167
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6168
          fi
5687
6169
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5688
6170
          # This is similar to how AIX traditionally builds its shared libraries.
5689
6171
          _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'
5715
6197
      # Microsoft Visual C++.
5716
6198
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5717
6199
      # no search path for DLLs.
5718
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5719
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5720
 
      # Tell ltmain to make .lib files, not .a files.
5721
 
      libext=lib
5722
 
      # Tell ltmain to make .dll files, not .so files.
5723
 
      shrext_cmds=".dll"
5724
 
      # FIXME: Setting linknames here is a bad hack.
5725
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5726
 
      # The linker will automatically build a .lib file if we build a DLL.
5727
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5728
 
      # FIXME: Should let the user specify the lib program.
5729
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5730
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5731
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6200
      case $cc_basename in
 
6201
      cl*)
 
6202
        # Native MSVC
 
6203
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6204
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6205
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6206
        _LT_TAGVAR(file_list_spec, $1)='@'
 
6207
        # Tell ltmain to make .lib files, not .a files.
 
6208
        libext=lib
 
6209
        # Tell ltmain to make .dll files, not .so files.
 
6210
        shrext_cmds=".dll"
 
6211
        # FIXME: Setting linknames here is a bad hack.
 
6212
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6213
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6214
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6215
          else
 
6216
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6217
          fi~
 
6218
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6219
          linknames='
 
6220
        # The linker will not automatically build a static lib if we build a DLL.
 
6221
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6222
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6223
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
6224
        _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'
 
6225
        # Don't use ranlib
 
6226
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6227
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6228
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6229
          case $lt_outputfile in
 
6230
            *.exe|*.EXE) ;;
 
6231
            *)
 
6232
              lt_outputfile="$lt_outputfile.exe"
 
6233
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6234
              ;;
 
6235
          esac~
 
6236
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6237
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6238
            $RM "$lt_outputfile.manifest";
 
6239
          fi'
 
6240
        ;;
 
6241
      *)
 
6242
        # Assume MSVC wrapper
 
6243
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6244
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6245
        # Tell ltmain to make .lib files, not .a files.
 
6246
        libext=lib
 
6247
        # Tell ltmain to make .dll files, not .so files.
 
6248
        shrext_cmds=".dll"
 
6249
        # FIXME: Setting linknames here is a bad hack.
 
6250
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
6251
        # The linker will automatically build a .lib file if we build a DLL.
 
6252
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6253
        # FIXME: Should let the user specify the lib program.
 
6254
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6255
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6256
        ;;
 
6257
      esac
5732
6258
      ;;
5733
6259
 
5734
6260
    darwin* | rhapsody*)
5741
6267
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5742
6268
      ;;
5743
6269
 
5744
 
    freebsd1*)
5745
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5746
 
      ;;
5747
 
 
5748
6270
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5749
6271
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5750
6272
    # does not break anything, and helps significantly (at the cost of a little
5757
6279
      ;;
5758
6280
 
5759
6281
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5760
 
    freebsd2*)
 
6282
    freebsd2.*)
5761
6283
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5762
6284
      _LT_TAGVAR(hardcode_direct, $1)=yes
5763
6285
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5766
6288
 
5767
6289
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5768
6290
    freebsd* | dragonfly*)
5769
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6291
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5770
6292
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5771
6293
      _LT_TAGVAR(hardcode_direct, $1)=yes
5772
6294
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5774
6296
 
5775
6297
    hpux9*)
5776
6298
      if test "$GCC" = yes; then
5777
 
        _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'
 
6299
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5778
6300
      else
5779
6301
        _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'
5780
6302
      fi
5789
6311
      ;;
5790
6312
 
5791
6313
    hpux10*)
5792
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5793
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6314
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6315
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5794
6316
      else
5795
6317
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5796
6318
      fi
5797
6319
      if test "$with_gnu_ld" = no; then
5798
6320
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5799
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5800
6321
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5801
6322
        _LT_TAGVAR(hardcode_direct, $1)=yes
5802
6323
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5808
6329
      ;;
5809
6330
 
5810
6331
    hpux11*)
5811
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6332
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5812
6333
        case $host_cpu in
5813
6334
        hppa*64*)
5814
6335
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5815
6336
          ;;
5816
6337
        ia64*)
5817
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6338
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5818
6339
          ;;
5819
6340
        *)
5820
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6341
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5821
6342
          ;;
5822
6343
        esac
5823
6344
      else
5829
6350
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5830
6351
          ;;
5831
6352
        *)
5832
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6353
        m4_if($1, [], [
 
6354
          # Older versions of the 11.00 compiler do not understand -b yet
 
6355
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
6356
          _LT_LINKER_OPTION([if $CC understands -b],
 
6357
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
6358
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
6359
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
6360
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5833
6361
          ;;
5834
6362
        esac
5835
6363
      fi
5857
6385
 
5858
6386
    irix5* | irix6* | nonstopux*)
5859
6387
      if test "$GCC" = yes; then
5860
 
        _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'
 
6388
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5861
6389
        # Try to use the -exported_symbol ld option, if it does not
5862
6390
        # work, assume that -exports_file does not work either and
5863
6391
        # implicitly export all symbols.
5864
 
        save_LDFLAGS="$LDFLAGS"
5865
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5866
 
        AC_LINK_IFELSE(int foo(void) {},
5867
 
          _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'
5868
 
        )
5869
 
        LDFLAGS="$save_LDFLAGS"
 
6392
        # This should be the same for all languages, so no per-tag cache variable.
 
6393
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
6394
          [lt_cv_irix_exported_symbol],
 
6395
          [save_LDFLAGS="$LDFLAGS"
 
6396
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6397
           AC_LINK_IFELSE(
 
6398
             [AC_LANG_SOURCE(
 
6399
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
6400
                              [C++], [[int foo (void) { return 0; }]],
 
6401
                              [Fortran 77], [[
 
6402
      subroutine foo
 
6403
      end]],
 
6404
                              [Fortran], [[
 
6405
      subroutine foo
 
6406
      end]])])],
 
6407
              [lt_cv_irix_exported_symbol=yes],
 
6408
              [lt_cv_irix_exported_symbol=no])
 
6409
           LDFLAGS="$save_LDFLAGS"])
 
6410
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6411
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
6412
        fi
5870
6413
      else
5871
 
        _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'
5872
 
        _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'
 
6414
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6415
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5873
6416
      fi
5874
6417
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5875
6418
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5878
6421
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5879
6422
      ;;
5880
6423
 
5881
 
    netbsd*)
 
6424
    netbsd* | netbsdelf*-gnu)
5882
6425
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5883
6426
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5884
6427
      else
5931
6474
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5932
6475
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5933
6476
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5934
 
      _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'
 
6477
      _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'
5935
6478
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5936
6479
      ;;
5937
6480
 
5938
6481
    osf3*)
5939
6482
      if test "$GCC" = yes; then
5940
6483
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5941
 
        _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'
 
6484
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5942
6485
      else
5943
6486
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5944
 
        _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'
 
6487
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5945
6488
      fi
5946
6489
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5947
6490
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5951
6494
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5952
6495
      if test "$GCC" = yes; then
5953
6496
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5954
 
        _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'
 
6497
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5955
6498
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5956
6499
      else
5957
6500
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5958
 
        _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'
 
6501
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5959
6502
        _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~
5960
 
        $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'
 
6503
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5961
6504
 
5962
6505
        # Both c and cxx compiler support -rpath directly
5963
6506
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5970
6513
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5971
6514
      if test "$GCC" = yes; then
5972
6515
        wlarc='${wl}'
5973
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6516
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5974
6517
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5975
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6518
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5976
6519
      else
5977
6520
        case `$CC -V 2>&1` in
5978
6521
        *"Compilers 5.0"*)
6148
6691
      # Test whether the compiler implicitly links with -lc since on some
6149
6692
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6150
6693
      # to ld, don't add -lc before -lgcc.
6151
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6152
 
      $RM conftest*
6153
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6694
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
6695
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
6696
        [$RM conftest*
 
6697
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6154
6698
 
6155
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6156
 
        soname=conftest
6157
 
        lib=conftest
6158
 
        libobjs=conftest.$ac_objext
6159
 
        deplibs=
6160
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6161
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6162
 
        compiler_flags=-v
6163
 
        linker_flags=-v
6164
 
        verstring=
6165
 
        output_objdir=.
6166
 
        libname=conftest
6167
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6168
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
6169
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6170
 
        then
6171
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6172
 
        else
6173
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6174
 
        fi
6175
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6176
 
      else
6177
 
        cat conftest.err 1>&5
6178
 
      fi
6179
 
      $RM conftest*
6180
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
6699
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6700
          soname=conftest
 
6701
          lib=conftest
 
6702
          libobjs=conftest.$ac_objext
 
6703
          deplibs=
 
6704
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6705
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6706
          compiler_flags=-v
 
6707
          linker_flags=-v
 
6708
          verstring=
 
6709
          output_objdir=.
 
6710
          libname=conftest
 
6711
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6712
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
6713
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6714
          then
 
6715
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6716
          else
 
6717
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6718
          fi
 
6719
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6720
        else
 
6721
          cat conftest.err 1>&5
 
6722
        fi
 
6723
        $RM conftest*
 
6724
        ])
 
6725
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6181
6726
      ;;
6182
6727
    esac
6183
6728
  fi
6214
6759
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6215
6760
    [Flag to hardcode $libdir into a binary during linking.
6216
6761
    This must work even if $libdir does not exist])
6217
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6218
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6219
 
    during linking.  This must work even if $libdir does not exist]])
6220
6762
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6221
6763
    [Whether we need a single "-rpath" flag with a separated argument])
6222
6764
_LT_TAGDECL([], [hardcode_direct], [0],
6242
6784
    to runtime path list])
6243
6785
_LT_TAGDECL([], [link_all_deplibs], [0],
6244
6786
    [Whether libtool must link a program against all its dependency libraries])
6245
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6246
 
    [Fix the shell variable $srcfile for the compiler])
6247
6787
_LT_TAGDECL([], [always_export_symbols], [0],
6248
6788
    [Set to "yes" if exported symbols are required])
6249
6789
_LT_TAGDECL([], [export_symbols_cmds], [2],
6254
6794
    [Symbols that must always be exported])
6255
6795
_LT_TAGDECL([], [prelink_cmds], [2],
6256
6796
    [Commands necessary for linking programs (against libraries) with templates])
 
6797
_LT_TAGDECL([], [postlink_cmds], [2],
 
6798
    [Commands necessary for finishing linking programs])
6257
6799
_LT_TAGDECL([], [file_list_spec], [1],
6258
6800
    [Specify filename containing input files])
6259
6801
dnl FIXME: Not yet implemented
6343
6885
])# _LT_LANG_C_CONFIG
6344
6886
 
6345
6887
 
6346
 
# _LT_PROG_CXX
6347
 
# ------------
6348
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6349
 
# compiler, we have our own version here.
6350
 
m4_defun([_LT_PROG_CXX],
6351
 
[
6352
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6353
 
AC_PROG_CXX
 
6888
# _LT_LANG_CXX_CONFIG([TAG])
 
6889
# --------------------------
 
6890
# Ensure that the configuration variables for a C++ compiler are suitably
 
6891
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6892
# the compiler configuration to `libtool'.
 
6893
m4_defun([_LT_LANG_CXX_CONFIG],
 
6894
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6895
m4_require([_LT_DECL_EGREP])dnl
 
6896
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6354
6897
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6355
6898
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6356
6899
    (test "X$CXX" != "Xg++"))) ; then
6358
6901
else
6359
6902
  _lt_caught_CXX_error=yes
6360
6903
fi
6361
 
popdef([AC_MSG_ERROR])
6362
 
])# _LT_PROG_CXX
6363
 
 
6364
 
dnl aclocal-1.4 backwards compatibility:
6365
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
6366
 
 
6367
 
 
6368
 
# _LT_LANG_CXX_CONFIG([TAG])
6369
 
# --------------------------
6370
 
# Ensure that the configuration variables for a C++ compiler are suitably
6371
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6372
 
# the compiler configuration to `libtool'.
6373
 
m4_defun([_LT_LANG_CXX_CONFIG],
6374
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6375
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6376
 
m4_require([_LT_DECL_EGREP])dnl
6377
6904
 
6378
6905
AC_LANG_PUSH(C++)
6379
6906
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6385
6912
_LT_TAGVAR(hardcode_direct, $1)=no
6386
6913
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6387
6914
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6388
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6389
6915
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6390
6916
_LT_TAGVAR(hardcode_minus_L, $1)=no
6391
6917
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6395
6921
_LT_TAGVAR(module_expsym_cmds, $1)=
6396
6922
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6397
6923
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6924
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6925
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6398
6926
_LT_TAGVAR(no_undefined_flag, $1)=
6399
6927
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6400
6928
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6426
6954
 
6427
6955
  # Allow CC to be a program name with arguments.
6428
6956
  lt_save_CC=$CC
 
6957
  lt_save_CFLAGS=$CFLAGS
6429
6958
  lt_save_LD=$LD
6430
6959
  lt_save_GCC=$GCC
6431
6960
  GCC=$GXX
6443
6972
  fi
6444
6973
  test -z "${LDCXX+set}" || LD=$LDCXX
6445
6974
  CC=${CXX-"c++"}
 
6975
  CFLAGS=$CXXFLAGS
6446
6976
  compiler=$CC
6447
6977
  _LT_TAGVAR(compiler, $1)=$CC
6448
6978
  _LT_CC_BASENAME([$compiler])
6464
6994
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6465
6995
      # archiving commands below assume that GNU ld is being used.
6466
6996
      if test "$with_gnu_ld" = yes; then
6467
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6468
 
        _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'
 
6997
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6998
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6469
6999
 
6470
7000
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6471
7001
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6497
7027
      # Commands to make compiler produce verbose output that lists
6498
7028
      # what "hidden" libraries, object files and flags are used when
6499
7029
      # linking a shared library.
6500
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7030
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6501
7031
 
6502
7032
    else
6503
7033
      GXX=no
6606
7136
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6607
7137
          # Determine the default libpath from the value encoded in an empty
6608
7138
          # executable.
6609
 
          _LT_SYS_MODULE_PATH_AIX
 
7139
          _LT_SYS_MODULE_PATH_AIX([$1])
6610
7140
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6611
7141
 
6612
 
          _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"
 
7142
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6613
7143
        else
6614
7144
          if test "$host_cpu" = ia64; then
6615
7145
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6618
7148
          else
6619
7149
            # Determine the default libpath from the value encoded in an
6620
7150
            # empty executable.
6621
 
            _LT_SYS_MODULE_PATH_AIX
 
7151
            _LT_SYS_MODULE_PATH_AIX([$1])
6622
7152
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6623
7153
            # Warning - without using the other run time loading flags,
6624
7154
            # -berok will link without error, but may produce a broken library.
6625
7155
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6626
7156
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6627
 
            # Exported symbols can be pulled into shared objects from archives
6628
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7157
            if test "$with_gnu_ld" = yes; then
 
7158
              # We only use this code for GNU lds that support --whole-archive.
 
7159
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7160
            else
 
7161
              # Exported symbols can be pulled into shared objects from archives
 
7162
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7163
            fi
6629
7164
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6630
7165
            # This is similar to how AIX traditionally builds its shared
6631
7166
            # libraries.
6655
7190
        ;;
6656
7191
 
6657
7192
      cygwin* | mingw* | pw32* | cegcc*)
6658
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6659
 
        # as there is no search path for DLLs.
6660
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6661
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6662
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6663
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7193
        case $GXX,$cc_basename in
 
7194
        ,cl* | no,cl*)
 
7195
          # Native MSVC
 
7196
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7197
          # no search path for DLLs.
 
7198
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7199
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7200
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
7201
          _LT_TAGVAR(file_list_spec, $1)='@'
 
7202
          # Tell ltmain to make .lib files, not .a files.
 
7203
          libext=lib
 
7204
          # Tell ltmain to make .dll files, not .so files.
 
7205
          shrext_cmds=".dll"
 
7206
          # FIXME: Setting linknames here is a bad hack.
 
7207
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
7208
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7209
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
7210
            else
 
7211
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
7212
            fi~
 
7213
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
7214
            linknames='
 
7215
          # The linker will not automatically build a static lib if we build a DLL.
 
7216
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
7217
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7218
          # Don't use ranlib
 
7219
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
7220
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
7221
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
7222
            case $lt_outputfile in
 
7223
              *.exe|*.EXE) ;;
 
7224
              *)
 
7225
                lt_outputfile="$lt_outputfile.exe"
 
7226
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
7227
                ;;
 
7228
            esac~
 
7229
            func_to_tool_file "$lt_outputfile"~
 
7230
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
7231
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
7232
              $RM "$lt_outputfile.manifest";
 
7233
            fi'
 
7234
          ;;
 
7235
        *)
 
7236
          # g++
 
7237
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7238
          # as there is no search path for DLLs.
 
7239
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7240
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
7241
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7242
          _LT_TAGVAR(always_export_symbols, $1)=no
 
7243
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6664
7244
 
6665
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6666
 
          _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'
6667
 
          # If the export-symbols file already is a .def file (1st line
6668
 
          # is EXPORTS), use it as is; otherwise, prepend...
6669
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6670
 
            cp $export_symbols $output_objdir/$soname.def;
6671
 
          else
6672
 
            echo EXPORTS > $output_objdir/$soname.def;
6673
 
            cat $export_symbols >> $output_objdir/$soname.def;
6674
 
          fi~
6675
 
          $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'
6676
 
        else
6677
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6678
 
        fi
6679
 
        ;;
 
7245
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7246
            _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'
 
7247
            # If the export-symbols file already is a .def file (1st line
 
7248
            # is EXPORTS), use it as is; otherwise, prepend...
 
7249
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7250
              cp $export_symbols $output_objdir/$soname.def;
 
7251
            else
 
7252
              echo EXPORTS > $output_objdir/$soname.def;
 
7253
              cat $export_symbols >> $output_objdir/$soname.def;
 
7254
            fi~
 
7255
            $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'
 
7256
          else
 
7257
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7258
          fi
 
7259
          ;;
 
7260
        esac
 
7261
        ;;
6680
7262
      darwin* | rhapsody*)
6681
7263
        _LT_DARWIN_LINKER_FEATURES($1)
6682
7264
        ;;
6699
7281
        esac
6700
7282
        ;;
6701
7283
 
6702
 
      freebsd[[12]]*)
 
7284
      freebsd2.*)
6703
7285
        # C++ shared libraries reported to be fairly broken before
6704
7286
        # switch to ELF
6705
7287
        _LT_TAGVAR(ld_shlibs, $1)=no
6718
7300
      gnu*)
6719
7301
        ;;
6720
7302
 
 
7303
      haiku*)
 
7304
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7305
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7306
        ;;
 
7307
 
6721
7308
      hpux9*)
6722
7309
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6723
7310
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6742
7329
            # explicitly linking system object files so we need to strip them
6743
7330
            # from the output so that they don't get included in the library
6744
7331
            # dependencies.
6745
 
            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'
 
7332
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6746
7333
            ;;
6747
7334
          *)
6748
7335
            if test "$GXX" = yes; then
6749
 
              _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'
 
7336
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6750
7337
            else
6751
7338
              # FIXME: insert proper C++ library support
6752
7339
              _LT_TAGVAR(ld_shlibs, $1)=no
6807
7394
            # explicitly linking system object files so we need to strip them
6808
7395
            # from the output so that they don't get included in the library
6809
7396
            # dependencies.
6810
 
            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'
 
7397
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6811
7398
            ;;
6812
7399
          *)
6813
7400
            if test "$GXX" = yes; then
6817
7404
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6818
7405
                    ;;
6819
7406
                  ia64*)
6820
 
                    _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'
 
7407
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6821
7408
                    ;;
6822
7409
                  *)
6823
 
                    _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'
 
7410
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6824
7411
                    ;;
6825
7412
                esac
6826
7413
              fi
6850
7437
        case $cc_basename in
6851
7438
          CC*)
6852
7439
            # SGI C++
6853
 
            _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'
 
7440
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6854
7441
 
6855
7442
            # Archives containing C++ object files must be created using
6856
7443
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6861
7448
          *)
6862
7449
            if test "$GXX" = yes; then
6863
7450
              if test "$with_gnu_ld" = no; then
6864
 
                _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'
 
7451
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6865
7452
              else
6866
 
                _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'
 
7453
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6867
7454
              fi
6868
7455
            fi
6869
7456
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6874
7461
        _LT_TAGVAR(inherit_rpath, $1)=yes
6875
7462
        ;;
6876
7463
 
6877
 
      linux* | k*bsd*-gnu)
 
7464
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
6878
7465
        case $cc_basename in
6879
7466
          KCC*)
6880
7467
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6892
7479
            # explicitly linking system object files so we need to strip them
6893
7480
            # from the output so that they don't get included in the library
6894
7481
            # dependencies.
6895
 
            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'
 
7482
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6896
7483
 
6897
7484
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6898
7485
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6929
7516
          pgCC* | pgcpp*)
6930
7517
            # Portland Group C++ compiler
6931
7518
            case `$CC -V` in
6932
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7519
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6933
7520
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6934
7521
                rm -rf $tpldir~
6935
7522
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6936
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7523
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6937
7524
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6938
7525
                rm -rf $tpldir~
6939
7526
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6940
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7527
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6941
7528
                $RANLIB $oldlib'
6942
7529
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6943
7530
                rm -rf $tpldir~
6944
7531
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6945
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7532
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6946
7533
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6947
7534
                rm -rf $tpldir~
6948
7535
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6949
 
                $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'
 
7536
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6950
7537
              ;;
6951
 
            *) # Version 6 will use weak symbols
 
7538
            *) # Version 6 and above use weak symbols
6952
7539
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6953
7540
              _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'
6954
7541
              ;;
6956
7543
 
6957
7544
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6958
7545
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6959
 
            _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'
 
7546
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6960
7547
            ;;
6961
7548
          cxx*)
6962
7549
            # Compaq C++
6975
7562
            # explicitly linking system object files so we need to strip them
6976
7563
            # from the output so that they don't get included in the library
6977
7564
            # dependencies.
6978
 
            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'
 
7565
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6979
7566
            ;;
6980
 
          xl*)
 
7567
          xl* | mpixl* | bgxl*)
6981
7568
            # IBM XL 8.0 on PPC, with GNU ld
6982
7569
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6983
7570
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6997
7584
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6998
7585
              _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'
6999
7586
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7000
 
              _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'
 
7587
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7001
7588
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7002
7589
 
7003
7590
              # Not sure whether something based on
7004
7591
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7005
7592
              # would be better.
7006
 
              output_verbose_link_cmd='echo'
 
7593
              output_verbose_link_cmd='func_echo_all'
7007
7594
 
7008
7595
              # Archives containing C++ object files must be created using
7009
7596
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7072
7659
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7073
7660
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7074
7661
          fi
7075
 
          output_verbose_link_cmd=echo
 
7662
          output_verbose_link_cmd=func_echo_all
7076
7663
        else
7077
7664
          _LT_TAGVAR(ld_shlibs, $1)=no
7078
7665
        fi
7107
7694
            case $host in
7108
7695
              osf3*)
7109
7696
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7110
 
                _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'
 
7697
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7111
7698
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7112
7699
                ;;
7113
7700
              *)
7114
7701
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7115
 
                _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'
 
7702
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7116
7703
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7117
7704
                  echo "-hidden">> $lib.exp~
7118
 
                  $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~
 
7705
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
7119
7706
                  $RM $lib.exp'
7120
7707
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7121
7708
                ;;
7131
7718
            # explicitly linking system object files so we need to strip them
7132
7719
            # from the output so that they don't get included in the library
7133
7720
            # dependencies.
7134
 
            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'
 
7721
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7135
7722
            ;;
7136
7723
          *)
7137
7724
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7138
7725
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7139
7726
              case $host in
7140
7727
                osf3*)
7141
 
                  _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'
 
7728
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7142
7729
                  ;;
7143
7730
                *)
7144
 
                  _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'
 
7731
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7145
7732
                  ;;
7146
7733
              esac
7147
7734
 
7151
7738
              # Commands to make compiler produce verbose output that lists
7152
7739
              # what "hidden" libraries, object files and flags are used when
7153
7740
              # linking a shared library.
7154
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7741
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7155
7742
 
7156
7743
            else
7157
7744
              # FIXME: insert proper C++ library support
7187
7774
 
7188
7775
      solaris*)
7189
7776
        case $cc_basename in
7190
 
          CC*)
 
7777
          CC* | sunCC*)
7191
7778
            # Sun C++ 4.2, 5.x and Centerline C++
7192
7779
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7193
7780
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7208
7795
            esac
7209
7796
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7210
7797
 
7211
 
            output_verbose_link_cmd='echo'
 
7798
            output_verbose_link_cmd='func_echo_all'
7212
7799
 
7213
7800
            # Archives containing C++ object files must be created using
7214
7801
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7228
7815
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7229
7816
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7230
7817
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7231
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7818
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7232
7819
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7233
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7820
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7234
7821
 
7235
7822
                # Commands to make compiler produce verbose output that lists
7236
7823
                # what "hidden" libraries, object files and flags are used when
7237
7824
                # linking a shared library.
7238
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7825
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7239
7826
              else
7240
7827
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7241
7828
                # platform.
7246
7833
                # Commands to make compiler produce verbose output that lists
7247
7834
                # what "hidden" libraries, object files and flags are used when
7248
7835
                # linking a shared library.
7249
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7836
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7250
7837
              fi
7251
7838
 
7252
7839
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7300
7887
          CC*)
7301
7888
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7302
7889
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7890
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
7891
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
7892
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
7893
              '"$_LT_TAGVAR(reload_cmds, $1)"
7303
7894
            ;;
7304
7895
          *)
7305
7896
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7355
7946
  fi # test -n "$compiler"
7356
7947
 
7357
7948
  CC=$lt_save_CC
 
7949
  CFLAGS=$lt_save_CFLAGS
7358
7950
  LDCXX=$LD
7359
7951
  LD=$lt_save_LD
7360
7952
  GCC=$lt_save_GCC
7369
7961
])# _LT_LANG_CXX_CONFIG
7370
7962
 
7371
7963
 
 
7964
# _LT_FUNC_STRIPNAME_CNF
 
7965
# ----------------------
 
7966
# func_stripname_cnf prefix suffix name
 
7967
# strip PREFIX and SUFFIX off of NAME.
 
7968
# PREFIX and SUFFIX must not contain globbing or regex special
 
7969
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7970
# dot (in which case that matches only a dot).
 
7971
#
 
7972
# This function is identical to the (non-XSI) version of func_stripname,
 
7973
# except this one can be used by m4 code that may be executed by configure,
 
7974
# rather than the libtool script.
 
7975
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7976
AC_REQUIRE([_LT_DECL_SED])
 
7977
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7978
func_stripname_cnf ()
 
7979
{
 
7980
  case ${2} in
 
7981
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7982
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7983
  esac
 
7984
} # func_stripname_cnf
 
7985
])# _LT_FUNC_STRIPNAME_CNF
 
7986
 
7372
7987
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7373
7988
# ---------------------------------
7374
7989
# Figure out "hidden" library dependencies from verbose
7377
7992
# objects, libraries and library flags.
7378
7993
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7379
7994
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7995
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7380
7996
# Dependencies to place before and after the object being linked:
7381
7997
_LT_TAGVAR(predep_objects, $1)=
7382
7998
_LT_TAGVAR(postdep_objects, $1)=
7426
8042
  }
7427
8043
};
7428
8044
_LT_EOF
 
8045
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
8046
package foo
 
8047
func foo() {
 
8048
}
 
8049
_LT_EOF
7429
8050
])
 
8051
 
 
8052
_lt_libdeps_save_CFLAGS=$CFLAGS
 
8053
case "$CC $CFLAGS " in #(
 
8054
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
8055
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
8056
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
8057
esac
 
8058
 
7430
8059
dnl Parse the compiler output and extract the necessary
7431
8060
dnl objects, libraries and library flags.
7432
8061
if AC_TRY_EVAL(ac_compile); then
7438
8067
  pre_test_object_deps_done=no
7439
8068
 
7440
8069
  for p in `eval "$output_verbose_link_cmd"`; do
7441
 
    case $p in
 
8070
    case ${prev}${p} in
7442
8071
 
7443
8072
    -L* | -R* | -l*)
7444
8073
       # Some compilers place space between "-{L,R}" and the path.
7447
8076
          test $p = "-R"; then
7448
8077
         prev=$p
7449
8078
         continue
7450
 
       else
7451
 
         prev=
7452
8079
       fi
7453
8080
 
 
8081
       # Expand the sysroot to ease extracting the directories later.
 
8082
       if test -z "$prev"; then
 
8083
         case $p in
 
8084
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
8085
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
8086
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
8087
         esac
 
8088
       fi
 
8089
       case $p in
 
8090
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
8091
       esac
7454
8092
       if test "$pre_test_object_deps_done" = no; then
7455
 
         case $p in
7456
 
         -L* | -R*)
 
8093
         case ${prev} in
 
8094
         -L | -R)
7457
8095
           # Internal compiler library paths should come after those
7458
8096
           # provided the user.  The postdeps already come after the
7459
8097
           # user supplied libs so there is no need to process them.
7473
8111
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7474
8112
         fi
7475
8113
       fi
 
8114
       prev=
7476
8115
       ;;
7477
8116
 
 
8117
    *.lto.$objext) ;; # Ignore GCC LTO objects
7478
8118
    *.$objext)
7479
8119
       # This assumes that the test object file only shows up
7480
8120
       # once in the compiler output.
7510
8150
fi
7511
8151
 
7512
8152
$RM -f confest.$objext
 
8153
CFLAGS=$_lt_libdeps_save_CFLAGS
7513
8154
 
7514
8155
# PORTME: override above test on systems where it is broken
7515
8156
m4_if([$1], [CXX],
7546
8187
 
7547
8188
solaris*)
7548
8189
  case $cc_basename in
7549
 
  CC*)
 
8190
  CC* | sunCC*)
7550
8191
    # The more standards-conforming stlport4 library is
7551
8192
    # incompatible with the Cstd library. Avoid specifying
7552
8193
    # it if it's in CXXFLAGS. Ignore libCrun as
7590
8231
])# _LT_SYS_HIDDEN_LIBDEPS
7591
8232
 
7592
8233
 
7593
 
# _LT_PROG_F77
7594
 
# ------------
7595
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7596
 
# if there is no fortran compiler, we have our own version here.
7597
 
m4_defun([_LT_PROG_F77],
7598
 
[
7599
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7600
 
AC_PROG_F77
7601
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7602
 
  _lt_disable_F77=yes
7603
 
fi
7604
 
popdef([AC_MSG_ERROR])
7605
 
])# _LT_PROG_F77
7606
 
 
7607
 
dnl aclocal-1.4 backwards compatibility:
7608
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7609
 
 
7610
 
 
7611
8234
# _LT_LANG_F77_CONFIG([TAG])
7612
8235
# --------------------------
7613
8236
# Ensure that the configuration variables for a Fortran 77 compiler are
7614
8237
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7615
8238
# to write the compiler configuration to `libtool'.
7616
8239
m4_defun([_LT_LANG_F77_CONFIG],
7617
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7618
 
AC_LANG_PUSH(Fortran 77)
 
8240
[AC_LANG_PUSH(Fortran 77)
 
8241
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8242
  _lt_disable_F77=yes
 
8243
fi
7619
8244
 
7620
8245
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7621
8246
_LT_TAGVAR(allow_undefined_flag, $1)=
7625
8250
_LT_TAGVAR(hardcode_direct, $1)=no
7626
8251
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7627
8252
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7628
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7629
8253
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7630
8254
_LT_TAGVAR(hardcode_minus_L, $1)=no
7631
8255
_LT_TAGVAR(hardcode_automatic, $1)=no
7634
8258
_LT_TAGVAR(module_expsym_cmds, $1)=
7635
8259
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7636
8260
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8261
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8262
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7637
8263
_LT_TAGVAR(no_undefined_flag, $1)=
7638
8264
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7639
8265
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7673
8299
  # Allow CC to be a program name with arguments.
7674
8300
  lt_save_CC="$CC"
7675
8301
  lt_save_GCC=$GCC
 
8302
  lt_save_CFLAGS=$CFLAGS
7676
8303
  CC=${F77-"f77"}
 
8304
  CFLAGS=$FFLAGS
7677
8305
  compiler=$CC
7678
8306
  _LT_TAGVAR(compiler, $1)=$CC
7679
8307
  _LT_CC_BASENAME([$compiler])
7727
8355
 
7728
8356
  GCC=$lt_save_GCC
7729
8357
  CC="$lt_save_CC"
 
8358
  CFLAGS="$lt_save_CFLAGS"
7730
8359
fi # test "$_lt_disable_F77" != yes
7731
8360
 
7732
8361
AC_LANG_POP
7733
8362
])# _LT_LANG_F77_CONFIG
7734
8363
 
7735
8364
 
7736
 
# _LT_PROG_FC
7737
 
# -----------
7738
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7739
 
# if there is no fortran compiler, we have our own version here.
7740
 
m4_defun([_LT_PROG_FC],
7741
 
[
7742
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7743
 
AC_PROG_FC
7744
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7745
 
  _lt_disable_FC=yes
7746
 
fi
7747
 
popdef([AC_MSG_ERROR])
7748
 
])# _LT_PROG_FC
7749
 
 
7750
 
dnl aclocal-1.4 backwards compatibility:
7751
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7752
 
 
7753
 
 
7754
8365
# _LT_LANG_FC_CONFIG([TAG])
7755
8366
# -------------------------
7756
8367
# Ensure that the configuration variables for a Fortran compiler are
7757
8368
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7758
8369
# to write the compiler configuration to `libtool'.
7759
8370
m4_defun([_LT_LANG_FC_CONFIG],
7760
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7761
 
AC_LANG_PUSH(Fortran)
 
8371
[AC_LANG_PUSH(Fortran)
 
8372
 
 
8373
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8374
  _lt_disable_FC=yes
 
8375
fi
7762
8376
 
7763
8377
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7764
8378
_LT_TAGVAR(allow_undefined_flag, $1)=
7768
8382
_LT_TAGVAR(hardcode_direct, $1)=no
7769
8383
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7770
8384
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7771
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7772
8385
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7773
8386
_LT_TAGVAR(hardcode_minus_L, $1)=no
7774
8387
_LT_TAGVAR(hardcode_automatic, $1)=no
7777
8390
_LT_TAGVAR(module_expsym_cmds, $1)=
7778
8391
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7779
8392
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8393
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8394
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7780
8395
_LT_TAGVAR(no_undefined_flag, $1)=
7781
8396
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7782
8397
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7816
8431
  # Allow CC to be a program name with arguments.
7817
8432
  lt_save_CC="$CC"
7818
8433
  lt_save_GCC=$GCC
 
8434
  lt_save_CFLAGS=$CFLAGS
7819
8435
  CC=${FC-"f95"}
 
8436
  CFLAGS=$FCFLAGS
7820
8437
  compiler=$CC
7821
8438
  GCC=$ac_cv_fc_compiler_gnu
7822
8439
 
7872
8489
  fi # test -n "$compiler"
7873
8490
 
7874
8491
  GCC=$lt_save_GCC
7875
 
  CC="$lt_save_CC"
 
8492
  CC=$lt_save_CC
 
8493
  CFLAGS=$lt_save_CFLAGS
7876
8494
fi # test "$_lt_disable_FC" != yes
7877
8495
 
7878
8496
AC_LANG_POP
7909
8527
_LT_LINKER_BOILERPLATE
7910
8528
 
7911
8529
# Allow CC to be a program name with arguments.
7912
 
lt_save_CC="$CC"
 
8530
lt_save_CC=$CC
 
8531
lt_save_CFLAGS=$CFLAGS
7913
8532
lt_save_GCC=$GCC
7914
8533
GCC=yes
7915
8534
CC=${GCJ-"gcj"}
 
8535
CFLAGS=$GCJFLAGS
7916
8536
compiler=$CC
7917
8537
_LT_TAGVAR(compiler, $1)=$CC
7918
8538
_LT_TAGVAR(LD, $1)="$LD"
7922
8542
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7923
8543
 
7924
8544
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8545
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8546
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7925
8547
 
7926
8548
if test -n "$compiler"; then
7927
8549
  _LT_COMPILER_NO_RTTI($1)
7937
8559
AC_LANG_RESTORE
7938
8560
 
7939
8561
GCC=$lt_save_GCC
7940
 
CC="$lt_save_CC"
 
8562
CC=$lt_save_CC
 
8563
CFLAGS=$lt_save_CFLAGS
7941
8564
])# _LT_LANG_GCJ_CONFIG
7942
8565
 
7943
8566
 
 
8567
# _LT_LANG_GO_CONFIG([TAG])
 
8568
# --------------------------
 
8569
# Ensure that the configuration variables for the GNU Go compiler
 
8570
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8571
# to write the compiler configuration to `libtool'.
 
8572
m4_defun([_LT_LANG_GO_CONFIG],
 
8573
[AC_REQUIRE([LT_PROG_GO])dnl
 
8574
AC_LANG_SAVE
 
8575
 
 
8576
# Source file extension for Go test sources.
 
8577
ac_ext=go
 
8578
 
 
8579
# Object file extension for compiled Go test sources.
 
8580
objext=o
 
8581
_LT_TAGVAR(objext, $1)=$objext
 
8582
 
 
8583
# Code to be used in simple compile tests
 
8584
lt_simple_compile_test_code="package main; func main() { }"
 
8585
 
 
8586
# Code to be used in simple link tests
 
8587
lt_simple_link_test_code='package main; func main() { }'
 
8588
 
 
8589
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8590
_LT_TAG_COMPILER
 
8591
 
 
8592
# save warnings/boilerplate of simple test code
 
8593
_LT_COMPILER_BOILERPLATE
 
8594
_LT_LINKER_BOILERPLATE
 
8595
 
 
8596
# Allow CC to be a program name with arguments.
 
8597
lt_save_CC=$CC
 
8598
lt_save_CFLAGS=$CFLAGS
 
8599
lt_save_GCC=$GCC
 
8600
GCC=yes
 
8601
CC=${GOC-"gccgo"}
 
8602
CFLAGS=$GOFLAGS
 
8603
compiler=$CC
 
8604
_LT_TAGVAR(compiler, $1)=$CC
 
8605
_LT_TAGVAR(LD, $1)="$LD"
 
8606
_LT_CC_BASENAME([$compiler])
 
8607
 
 
8608
# Go did not exist at the time GCC didn't implicitly link libc in.
 
8609
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8610
 
 
8611
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8612
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8613
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8614
 
 
8615
if test -n "$compiler"; then
 
8616
  _LT_COMPILER_NO_RTTI($1)
 
8617
  _LT_COMPILER_PIC($1)
 
8618
  _LT_COMPILER_C_O($1)
 
8619
  _LT_COMPILER_FILE_LOCKS($1)
 
8620
  _LT_LINKER_SHLIBS($1)
 
8621
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8622
 
 
8623
  _LT_CONFIG($1)
 
8624
fi
 
8625
 
 
8626
AC_LANG_RESTORE
 
8627
 
 
8628
GCC=$lt_save_GCC
 
8629
CC=$lt_save_CC
 
8630
CFLAGS=$lt_save_CFLAGS
 
8631
])# _LT_LANG_GO_CONFIG
 
8632
 
 
8633
 
7944
8634
# _LT_LANG_RC_CONFIG([TAG])
7945
8635
# -------------------------
7946
8636
# Ensure that the configuration variables for the Windows resource compiler
7972
8662
 
7973
8663
# Allow CC to be a program name with arguments.
7974
8664
lt_save_CC="$CC"
 
8665
lt_save_CFLAGS=$CFLAGS
7975
8666
lt_save_GCC=$GCC
7976
8667
GCC=
7977
8668
CC=${RC-"windres"}
 
8669
CFLAGS=
7978
8670
compiler=$CC
7979
8671
_LT_TAGVAR(compiler, $1)=$CC
7980
8672
_LT_CC_BASENAME([$compiler])
7987
8679
 
7988
8680
GCC=$lt_save_GCC
7989
8681
AC_LANG_RESTORE
7990
 
CC="$lt_save_CC"
 
8682
CC=$lt_save_CC
 
8683
CFLAGS=$lt_save_CFLAGS
7991
8684
])# _LT_LANG_RC_CONFIG
7992
8685
 
7993
8686
 
8007
8700
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8008
8701
 
8009
8702
 
 
8703
# LT_PROG_GO
 
8704
# ----------
 
8705
AC_DEFUN([LT_PROG_GO],
 
8706
[AC_CHECK_TOOL(GOC, gccgo,)
 
8707
])
 
8708
 
 
8709
 
8010
8710
# LT_PROG_RC
8011
8711
# ----------
8012
8712
AC_DEFUN([LT_PROG_RC],
8046
8746
AC_SUBST([OBJDUMP])
8047
8747
])
8048
8748
 
 
8749
# _LT_DECL_DLLTOOL
 
8750
# ----------------
 
8751
# Ensure DLLTOOL variable is set.
 
8752
m4_defun([_LT_DECL_DLLTOOL],
 
8753
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8754
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8755
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8756
AC_SUBST([DLLTOOL])
 
8757
])
8049
8758
 
8050
8759
# _LT_DECL_SED
8051
8760
# ------------
8137
8846
# Try some XSI features
8138
8847
xsi_shell=no
8139
8848
( _lt_dummy="a/b/c"
8140
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8141
 
      = c,a/b,, \
 
8849
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8850
      = c,a/b,b/c, \
8142
8851
    && eval 'test $(( 1 + 1 )) -eq 2 \
8143
8852
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8144
8853
  && xsi_shell=yes
8177
8886
])# _LT_CHECK_SHELL_FEATURES
8178
8887
 
8179
8888
 
8180
 
# _LT_PROG_XSI_SHELLFNS
8181
 
# ---------------------
8182
 
# Bourne and XSI compatible variants of some useful shell functions.
8183
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8184
 
[case $xsi_shell in
8185
 
  yes)
8186
 
    cat << \_LT_EOF >> "$cfgfile"
8187
 
 
8188
 
# func_dirname file append nondir_replacement
8189
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8190
 
# otherwise set result to NONDIR_REPLACEMENT.
8191
 
func_dirname ()
8192
 
{
8193
 
  case ${1} in
8194
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8195
 
    *  ) func_dirname_result="${3}" ;;
8196
 
  esac
8197
 
}
8198
 
 
8199
 
# func_basename file
8200
 
func_basename ()
8201
 
{
8202
 
  func_basename_result="${1##*/}"
8203
 
}
8204
 
 
8205
 
# func_dirname_and_basename file append nondir_replacement
8206
 
# perform func_basename and func_dirname in a single function
8207
 
# call:
8208
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8209
 
#             add APPEND to the result, otherwise set result
8210
 
#             to NONDIR_REPLACEMENT.
8211
 
#             value returned in "$func_dirname_result"
8212
 
#   basename: Compute filename of FILE.
8213
 
#             value retuned in "$func_basename_result"
8214
 
# Implementation must be kept synchronized with func_dirname
8215
 
# and func_basename. For efficiency, we do not delegate to
8216
 
# those functions but instead duplicate the functionality here.
8217
 
func_dirname_and_basename ()
8218
 
{
8219
 
  case ${1} in
8220
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8221
 
    *  ) func_dirname_result="${3}" ;;
8222
 
  esac
8223
 
  func_basename_result="${1##*/}"
8224
 
}
8225
 
 
8226
 
# func_stripname prefix suffix name
8227
 
# strip PREFIX and SUFFIX off of NAME.
8228
 
# PREFIX and SUFFIX must not contain globbing or regex special
8229
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8230
 
# dot (in which case that matches only a dot).
8231
 
func_stripname ()
8232
 
{
8233
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8234
 
  # positional parameters, so assign one to ordinary parameter first.
8235
 
  func_stripname_result=${3}
8236
 
  func_stripname_result=${func_stripname_result#"${1}"}
8237
 
  func_stripname_result=${func_stripname_result%"${2}"}
8238
 
}
8239
 
 
8240
 
# func_opt_split
8241
 
func_opt_split ()
8242
 
{
8243
 
  func_opt_split_opt=${1%%=*}
8244
 
  func_opt_split_arg=${1#*=}
8245
 
}
8246
 
 
8247
 
# func_lo2o object
8248
 
func_lo2o ()
8249
 
{
8250
 
  case ${1} in
8251
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8252
 
    *)    func_lo2o_result=${1} ;;
8253
 
  esac
8254
 
}
8255
 
 
8256
 
# func_xform libobj-or-source
8257
 
func_xform ()
8258
 
{
8259
 
  func_xform_result=${1%.*}.lo
8260
 
}
8261
 
 
8262
 
# func_arith arithmetic-term...
8263
 
func_arith ()
8264
 
{
8265
 
  func_arith_result=$(( $[*] ))
8266
 
}
8267
 
 
8268
 
# func_len string
8269
 
# STRING may not start with a hyphen.
8270
 
func_len ()
8271
 
{
8272
 
  func_len_result=${#1}
8273
 
}
8274
 
 
8275
 
_LT_EOF
8276
 
    ;;
8277
 
  *) # Bourne compatible functions.
8278
 
    cat << \_LT_EOF >> "$cfgfile"
8279
 
 
8280
 
# func_dirname file append nondir_replacement
8281
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8282
 
# otherwise set result to NONDIR_REPLACEMENT.
8283
 
func_dirname ()
8284
 
{
8285
 
  # Extract subdirectory from the argument.
8286
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8287
 
  if test "X$func_dirname_result" = "X${1}"; then
8288
 
    func_dirname_result="${3}"
8289
 
  else
8290
 
    func_dirname_result="$func_dirname_result${2}"
8291
 
  fi
8292
 
}
8293
 
 
8294
 
# func_basename file
8295
 
func_basename ()
8296
 
{
8297
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8298
 
}
8299
 
 
8300
 
dnl func_dirname_and_basename
8301
 
dnl A portable version of this function is already defined in general.m4sh
8302
 
dnl so there is no need for it here.
8303
 
 
8304
 
# func_stripname prefix suffix name
8305
 
# strip PREFIX and SUFFIX off of NAME.
8306
 
# PREFIX and SUFFIX must not contain globbing or regex special
8307
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8308
 
# dot (in which case that matches only a dot).
8309
 
# func_strip_suffix prefix name
8310
 
func_stripname ()
8311
 
{
8312
 
  case ${2} in
8313
 
    .*) func_stripname_result=`$ECHO "X${3}" \
8314
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8315
 
    *)  func_stripname_result=`$ECHO "X${3}" \
8316
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8317
 
  esac
8318
 
}
8319
 
 
8320
 
# sed scripts:
8321
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8322
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8323
 
 
8324
 
# func_opt_split
8325
 
func_opt_split ()
8326
 
{
8327
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8328
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8329
 
}
8330
 
 
8331
 
# func_lo2o object
8332
 
func_lo2o ()
8333
 
{
8334
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8335
 
}
8336
 
 
8337
 
# func_xform libobj-or-source
8338
 
func_xform ()
8339
 
{
8340
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8341
 
}
8342
 
 
8343
 
# func_arith arithmetic-term...
8344
 
func_arith ()
8345
 
{
8346
 
  func_arith_result=`expr "$[@]"`
8347
 
}
8348
 
 
8349
 
# func_len string
8350
 
# STRING may not start with a hyphen.
8351
 
func_len ()
8352
 
{
8353
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8354
 
}
8355
 
 
8356
 
_LT_EOF
8357
 
esac
8358
 
 
8359
 
case $lt_shell_append in
8360
 
  yes)
8361
 
    cat << \_LT_EOF >> "$cfgfile"
8362
 
 
8363
 
# func_append var value
8364
 
# Append VALUE to the end of shell variable VAR.
8365
 
func_append ()
8366
 
{
8367
 
  eval "$[1]+=\$[2]"
8368
 
}
8369
 
_LT_EOF
8370
 
    ;;
8371
 
  *)
8372
 
    cat << \_LT_EOF >> "$cfgfile"
8373
 
 
8374
 
# func_append var value
8375
 
# Append VALUE to the end of shell variable VAR.
8376
 
func_append ()
8377
 
{
8378
 
  eval "$[1]=\$$[1]\$[2]"
8379
 
}
8380
 
 
8381
 
_LT_EOF
8382
 
    ;;
8383
 
  esac
8384
 
])
 
8889
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8890
# ------------------------------------------------------
 
8891
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8892
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8893
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8894
[dnl {
 
8895
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8896
$1 ()\
 
8897
{\
 
8898
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8899
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8900
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8901
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8902
test 0 -eq $? || _lt_function_replace_fail=:
 
8903
])
 
8904
 
 
8905
 
 
8906
# _LT_PROG_REPLACE_SHELLFNS
 
8907
# -------------------------
 
8908
# Replace existing portable implementations of several shell functions with
 
8909
# equivalent extended shell implementations where those features are available..
 
8910
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8911
[if test x"$xsi_shell" = xyes; then
 
8912
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8913
    case ${1} in
 
8914
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8915
      *  ) func_dirname_result="${3}" ;;
 
8916
    esac])
 
8917
 
 
8918
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8919
    func_basename_result="${1##*/}"])
 
8920
 
 
8921
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8922
    case ${1} in
 
8923
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8924
      *  ) func_dirname_result="${3}" ;;
 
8925
    esac
 
8926
    func_basename_result="${1##*/}"])
 
8927
 
 
8928
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8929
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8930
    # positional parameters, so assign one to ordinary parameter first.
 
8931
    func_stripname_result=${3}
 
8932
    func_stripname_result=${func_stripname_result#"${1}"}
 
8933
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8934
 
 
8935
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8936
    func_split_long_opt_name=${1%%=*}
 
8937
    func_split_long_opt_arg=${1#*=}])
 
8938
 
 
8939
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8940
    func_split_short_opt_arg=${1#??}
 
8941
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8942
 
 
8943
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8944
    case ${1} in
 
8945
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8946
      *)    func_lo2o_result=${1} ;;
 
8947
    esac])
 
8948
 
 
8949
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8950
 
 
8951
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8952
 
 
8953
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8954
fi
 
8955
 
 
8956
if test x"$lt_shell_append" = xyes; then
 
8957
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8958
 
 
8959
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8960
    func_quote_for_eval "${2}"
 
8961
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8962
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8963
 
 
8964
  # Save a `func_append' function call where possible by direct use of '+='
 
8965
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8966
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8967
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8968
  test 0 -eq $? || _lt_function_replace_fail=:
 
8969
else
 
8970
  # Save a `func_append' function call even when '+=' is not available
 
8971
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8972
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8973
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8974
  test 0 -eq $? || _lt_function_replace_fail=:
 
8975
fi
 
8976
 
 
8977
if test x"$_lt_function_replace_fail" = x":"; then
 
8978
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8979
fi
 
8980
])
 
8981
 
 
8982
# _LT_PATH_CONVERSION_FUNCTIONS
 
8983
# -----------------------------
 
8984
# Determine which file name conversion functions should be used by
 
8985
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8986
# for certain cross-compile configurations and native mingw.
 
8987
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8988
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8989
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8990
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8991
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8992
[case $host in
 
8993
  *-*-mingw* )
 
8994
    case $build in
 
8995
      *-*-mingw* ) # actually msys
 
8996
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8997
        ;;
 
8998
      *-*-cygwin* )
 
8999
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
9000
        ;;
 
9001
      * ) # otherwise, assume *nix
 
9002
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
9003
        ;;
 
9004
    esac
 
9005
    ;;
 
9006
  *-*-cygwin* )
 
9007
    case $build in
 
9008
      *-*-mingw* ) # actually msys
 
9009
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
9010
        ;;
 
9011
      *-*-cygwin* )
 
9012
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
9013
        ;;
 
9014
      * ) # otherwise, assume *nix
 
9015
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
9016
        ;;
 
9017
    esac
 
9018
    ;;
 
9019
  * ) # unhandled hosts (and "normal" native builds)
 
9020
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
9021
    ;;
 
9022
esac
 
9023
])
 
9024
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
9025
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
9026
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
9027
         [0], [convert $build file names to $host format])dnl
 
9028
 
 
9029
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
9030
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
9031
[#assume ordinary cross tools, or native build.
 
9032
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
9033
case $host in
 
9034
  *-*-mingw* )
 
9035
    case $build in
 
9036
      *-*-mingw* ) # actually msys
 
9037
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
9038
        ;;
 
9039
    esac
 
9040
    ;;
 
9041
esac
 
9042
])
 
9043
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
9044
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
9045
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
9046
         [0], [convert $build files to toolchain format])dnl
 
9047
])# _LT_PATH_CONVERSION_FUNCTIONS
8385
9048
 
8386
9049
# Helper functions for option handling.                    -*- Autoconf -*-
8387
9050
#
8388
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9051
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
9052
#   Inc.
8389
9053
#   Written by Gary V. Vaughan, 2004
8390
9054
#
8391
9055
# This file is free software; the Free Software Foundation gives
8392
9056
# unlimited permission to copy and/or distribute it, with or without
8393
9057
# modifications, as long as this notice is preserved.
8394
9058
 
8395
 
# serial 6 ltoptions.m4
 
9059
# serial 7 ltoptions.m4
8396
9060
 
8397
9061
# This is to help aclocal find these macros, as it can't see m4_define.
8398
9062
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8507
9171
[enable_win32_dll=yes
8508
9172
 
8509
9173
case $host in
8510
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
9174
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8511
9175
  AC_CHECK_TOOL(AS, as, false)
8512
9176
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8513
9177
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8515
9179
esac
8516
9180
 
8517
9181
test -z "$AS" && AS=as
8518
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
9182
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8519
9183
 
8520
9184
test -z "$DLLTOOL" && DLLTOOL=dlltool
8521
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
9185
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8522
9186
 
8523
9187
test -z "$OBJDUMP" && OBJDUMP=objdump
8524
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
9188
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8525
9189
])# win32-dll
8526
9190
 
8527
9191
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8707
9371
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8708
9372
m4_define([_LT_WITH_PIC],
8709
9373
[AC_ARG_WITH([pic],
8710
 
    [AS_HELP_STRING([--with-pic],
 
9374
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8711
9375
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8712
 
    [pic_mode="$withval"],
 
9376
    [lt_p=${PACKAGE-default}
 
9377
    case $withval in
 
9378
    yes|no) pic_mode=$withval ;;
 
9379
    *)
 
9380
      pic_mode=default
 
9381
      # Look at the argument we got.  We use all the common list separators.
 
9382
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9383
      for lt_pkg in $withval; do
 
9384
        IFS="$lt_save_ifs"
 
9385
        if test "X$lt_pkg" = "X$lt_p"; then
 
9386
          pic_mode=yes
 
9387
        fi
 
9388
      done
 
9389
      IFS="$lt_save_ifs"
 
9390
      ;;
 
9391
    esac],
8713
9392
    [pic_mode=default])
8714
9393
 
8715
9394
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8879
9558
# unlimited permission to copy and/or distribute it, with or without
8880
9559
# modifications, as long as this notice is preserved.
8881
9560
 
8882
 
# Generated from ltversion.in.
 
9561
# @configure_input@
8883
9562
 
8884
 
# serial 3012 ltversion.m4
 
9563
# serial 3337 ltversion.m4
8885
9564
# This file is part of GNU Libtool
8886
9565
 
8887
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8888
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
9566
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
9567
m4_define([LT_PACKAGE_REVISION], [1.3337])
8889
9568
 
8890
9569
AC_DEFUN([LTVERSION_VERSION],
8891
 
[macro_version='2.2.6'
8892
 
macro_revision='1.3012'
 
9570
[macro_version='2.4.2'
 
9571
macro_revision='1.3337'
8893
9572
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8894
9573
_LT_DECL(, macro_revision, 0)
8895
9574
])
8896
9575
 
8897
9576
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8898
9577
#
8899
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
9578
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8900
9579
#   Written by Scott James Remnant, 2004.
8901
9580
#
8902
9581
# This file is free software; the Free Software Foundation gives
8903
9582
# unlimited permission to copy and/or distribute it, with or without
8904
9583
# modifications, as long as this notice is preserved.
8905
9584
 
8906
 
# serial 4 lt~obsolete.m4
 
9585
# serial 5 lt~obsolete.m4
8907
9586
 
8908
9587
# These exist entirely to fool aclocal when bootstrapping libtool.
8909
9588
#
8973
9652
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8974
9653
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8975
9654
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8976
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8977
9655
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8978
9656
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8979
9657
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8986
9664
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8987
9665
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8988
9666
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9667
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9668
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9669
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9670
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9671
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9672
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9673
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8989
9674
 
8990
9675
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
9676
# serial 1 (pkg-config-0.24)
8991
9677
8992
9678
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8993
9679
#
9014
9700
# ----------------------------------
9015
9701
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9016
9702
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9017
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9018
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
9703
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
9704
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
9705
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
9706
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
9707
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
9708
 
9019
9709
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9020
9710
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9021
9711
fi
9028
9718
                AC_MSG_RESULT([no])
9029
9719
                PKG_CONFIG=""
9030
9720
        fi
9031
 
                
9032
9721
fi[]dnl
9033
9722
])# PKG_PROG_PKG_CONFIG
9034
9723
 
9037
9726
# Check to see whether a particular set of modules exists.  Similar
9038
9727
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9039
9728
#
9040
 
#
9041
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9042
 
# this or PKG_CHECK_MODULES is called, or make sure to call
9043
 
# PKG_CHECK_EXISTS manually
 
9729
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9730
# only at the first occurence in configure.ac, so if the first place
 
9731
# it's called might be skipped (such as if it is within an "if", you
 
9732
# have to call PKG_CHECK_EXISTS manually
9044
9733
# --------------------------------------------------------------
9045
9734
AC_DEFUN([PKG_CHECK_EXISTS],
9046
9735
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9047
9736
if test -n "$PKG_CONFIG" && \
9048
9737
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9049
 
  m4_ifval([$2], [$2], [:])
 
9738
  m4_default([$2], [:])
9050
9739
m4_ifvaln([$3], [else
9051
9740
  $3])dnl
9052
9741
fi])
9053
9742
 
9054
 
 
9055
9743
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9056
9744
# ---------------------------------------------
9057
9745
m4_define([_PKG_CONFIG],
9059
9747
    pkg_cv_[]$1="$$1"
9060
9748
 elif test -n "$PKG_CONFIG"; then
9061
9749
    PKG_CHECK_EXISTS([$3],
9062
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9750
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
9751
                      test "x$?" != "x0" && pkg_failed=yes ],
9063
9752
                     [pkg_failed=yes])
9064
9753
 else
9065
9754
    pkg_failed=untried
9104
9793
See the pkg-config man page for more details.])
9105
9794
 
9106
9795
if test $pkg_failed = yes; then
 
9796
        AC_MSG_RESULT([no])
9107
9797
        _PKG_SHORT_ERRORS_SUPPORTED
9108
9798
        if test $_pkg_short_errors_supported = yes; then
9109
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9799
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9110
9800
        else 
9111
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9801
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9112
9802
        fi
9113
9803
        # Put the nasty error message in config.log where it belongs
9114
9804
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9115
9805
 
9116
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
9806
        m4_default([$4], [AC_MSG_ERROR(
9117
9807
[Package requirements ($2) were not met:
9118
9808
 
9119
9809
$$1_PKG_ERRORS
9121
9811
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9122
9812
installed software in a non-standard prefix.
9123
9813
 
9124
 
_PKG_TEXT
9125
 
])],
9126
 
                [AC_MSG_RESULT([no])
9127
 
                $4])
 
9814
_PKG_TEXT])[]dnl
 
9815
        ])
9128
9816
elif test $pkg_failed = untried; then
9129
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
9817
        AC_MSG_RESULT([no])
 
9818
        m4_default([$4], [AC_MSG_FAILURE(
9130
9819
[The pkg-config script could not be found or is too old.  Make sure it
9131
9820
is in your PATH or set the PKG_CONFIG environment variable to the full
9132
9821
path to pkg-config.
9133
9822
 
9134
9823
_PKG_TEXT
9135
9824
 
9136
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9137
 
                [$4])
 
9825
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
9826
        ])
9138
9827
else
9139
9828
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9140
9829
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9141
9830
        AC_MSG_RESULT([yes])
9142
 
        ifelse([$3], , :, [$3])
 
9831
        $3
9143
9832
fi[]dnl
9144
9833
])# PKG_CHECK_MODULES
9145
9834