Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openpam/dist OpenPAM Ourouparia ...



details:   https://anonhg.NetBSD.org/src/rev/01d3bc6205a9
branches:  trunk
changeset: 333234:01d3bc6205a9
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 24 18:15:36 2014 +0000

description:
OpenPAM Ourouparia                                              2014-09-12

 - ENHANCE: When executing a chain, require at least one service
   function to succeed.  This mitigates fail-open scenarios caused by
   misconfigurations or missing modules.

 - ENHANCE: Make sure to overwrite buffers which may have contained an
   authentication token when they're no longer needed.

 - BUGFIX: Under certain circumstances, specifying a non-existent
   module (or misspelling the name of a module) in a policy could
   result in a fail-open scenario.  (CVE-2014-3879)

 - FEATURE: Add a search path for modules.  This was implemented in
   Nummularia but inadvertently left out of the release notes.

 - BUGFIX: The is_upper() predicate only accepted the letter A as an
   upper-case character instead of the entire A-Z range.  As a result,
   service and module names containing upper-case letters other than A
   would be rejected.

diffstat:

 external/bsd/openpam/dist/CREDITS                                       |     9 +-
 external/bsd/openpam/dist/HISTORY                                       |    25 +-
 external/bsd/openpam/dist/INSTALL                                       |     2 -
 external/bsd/openpam/dist/LICENSE                                       |     2 -
 external/bsd/openpam/dist/Makefile.am                                   |     2 +-
 external/bsd/openpam/dist/Makefile.in                                   |    11 +-
 external/bsd/openpam/dist/README                                        |     2 -
 external/bsd/openpam/dist/RELNOTES                                      |     6 +-
 external/bsd/openpam/dist/TODO                                          |     2 -
 external/bsd/openpam/dist/aclocal.m4                                    |  8592 +++++++++-
 external/bsd/openpam/dist/autogen.sh                                    |     4 +-
 external/bsd/openpam/dist/bin/Makefile.in                               |     5 +-
 external/bsd/openpam/dist/bin/openpam_dump_policy/Makefile.in           |     5 +-
 external/bsd/openpam/dist/bin/openpam_dump_policy/openpam_dump_policy.c |     6 +-
 external/bsd/openpam/dist/bin/pamtest/Makefile.in                       |     5 +-
 external/bsd/openpam/dist/bin/su/Makefile.in                            |     5 +-
 external/bsd/openpam/dist/config.h.in                                   |     3 +
 external/bsd/openpam/dist/configure                                     |    28 +-
 external/bsd/openpam/dist/configure.ac                                  |     8 +-
 external/bsd/openpam/dist/doc/Makefile.in                               |     5 +-
 external/bsd/openpam/dist/doc/man/Makefile.in                           |     5 +-
 external/bsd/openpam/dist/include/Makefile.in                           |     5 +-
 external/bsd/openpam/dist/include/security/Makefile.in                  |     5 +-
 external/bsd/openpam/dist/lib/Makefile.am                               |   101 +-
 external/bsd/openpam/dist/lib/Makefile.in                               |   532 +-
 external/bsd/openpam/dist/lib/libpam/Makefile.am                        |   102 +
 external/bsd/openpam/dist/lib/libpam/Makefile.in                        |   802 +
 external/bsd/openpam/dist/lib/libpam/openpam_asprintf.c                 |    57 +
 external/bsd/openpam/dist/lib/libpam/openpam_asprintf.h                 |    41 +
 external/bsd/openpam/dist/lib/libpam/openpam_borrow_cred.c              |   126 +
 external/bsd/openpam/dist/lib/libpam/openpam_check_owner_perms.c        |   145 +
 external/bsd/openpam/dist/lib/libpam/openpam_configure.c                |   482 +
 external/bsd/openpam/dist/lib/libpam/openpam_constants.c                |   145 +
 external/bsd/openpam/dist/lib/libpam/openpam_constants.h                |    45 +
 external/bsd/openpam/dist/lib/libpam/openpam_cred.h                     |    52 +
 external/bsd/openpam/dist/lib/libpam/openpam_ctype.h                    |    97 +
 external/bsd/openpam/dist/lib/libpam/openpam_debug.h                    |   112 +
 external/bsd/openpam/dist/lib/libpam/openpam_dispatch.c                 |   254 +
 external/bsd/openpam/dist/lib/libpam/openpam_dlfunc.h                   |    43 +
 external/bsd/openpam/dist/lib/libpam/openpam_dynamic.c                  |   262 +
 external/bsd/openpam/dist/lib/libpam/openpam_features.c                 |    68 +
 external/bsd/openpam/dist/lib/libpam/openpam_features.h                 |    47 +
 external/bsd/openpam/dist/lib/libpam/openpam_findenv.c                  |    73 +
 external/bsd/openpam/dist/lib/libpam/openpam_free_data.c                |    76 +
 external/bsd/openpam/dist/lib/libpam/openpam_free_envlist.c             |    71 +
 external/bsd/openpam/dist/lib/libpam/openpam_get_feature.c              |    98 +
 external/bsd/openpam/dist/lib/libpam/openpam_get_option.c               |    86 +
 external/bsd/openpam/dist/lib/libpam/openpam_impl.h                     |   166 +
 external/bsd/openpam/dist/lib/libpam/openpam_load.c                     |   135 +
 external/bsd/openpam/dist/lib/libpam/openpam_log.c                      |   173 +
 external/bsd/openpam/dist/lib/libpam/openpam_nullconv.c                 |    90 +
 external/bsd/openpam/dist/lib/libpam/openpam_readline.c                 |   136 +
 external/bsd/openpam/dist/lib/libpam/openpam_readlinev.c                |   155 +
 external/bsd/openpam/dist/lib/libpam/openpam_readword.c                 |   201 +
 external/bsd/openpam/dist/lib/libpam/openpam_restore_cred.c             |    99 +
 external/bsd/openpam/dist/lib/libpam/openpam_set_feature.c              |    74 +
 external/bsd/openpam/dist/lib/libpam/openpam_set_option.c               |   123 +
 external/bsd/openpam/dist/lib/libpam/openpam_static.c                   |    74 +
 external/bsd/openpam/dist/lib/libpam/openpam_straddch.c                 |   117 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlcat.c                  |    58 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlcat.h                  |    41 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlcmp.h                  |    48 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlcpy.c                  |    56 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlcpy.h                  |    41 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlset.c                  |    58 +
 external/bsd/openpam/dist/lib/libpam/openpam_strlset.h                  |    41 +
 external/bsd/openpam/dist/lib/libpam/openpam_subst.c                    |   170 +
 external/bsd/openpam/dist/lib/libpam/openpam_ttyconv.c                  |   402 +
 external/bsd/openpam/dist/lib/libpam/openpam_vasprintf.c                |    60 +
 external/bsd/openpam/dist/lib/libpam/openpam_vasprintf.h                |    41 +
 external/bsd/openpam/dist/lib/libpam/pam_acct_mgmt.c                    |    88 +
 external/bsd/openpam/dist/lib/libpam/pam_authenticate.c                 |    96 +
 external/bsd/openpam/dist/lib/libpam/pam_authenticate_secondary.c       |    67 +
 external/bsd/openpam/dist/lib/libpam/pam_chauthtok.c                    |    97 +
 external/bsd/openpam/dist/lib/libpam/pam_close_session.c                |    89 +
 external/bsd/openpam/dist/lib/libpam/pam_end.c                          |   106 +
 external/bsd/openpam/dist/lib/libpam/pam_error.c                        |    89 +
 external/bsd/openpam/dist/lib/libpam/pam_get_authtok.c                  |   240 +
 external/bsd/openpam/dist/lib/libpam/pam_get_data.c                     |    91 +
 external/bsd/openpam/dist/lib/libpam/pam_get_item.c                     |   135 +
 external/bsd/openpam/dist/lib/libpam/pam_get_mapped_authtok.c           |    66 +
 external/bsd/openpam/dist/lib/libpam/pam_get_mapped_username.c          |    67 +
 external/bsd/openpam/dist/lib/libpam/pam_get_user.c                     |   146 +
 external/bsd/openpam/dist/lib/libpam/pam_getenv.c                       |    87 +
 external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c                   |   110 +
 external/bsd/openpam/dist/lib/libpam/pam_info.c                         |    89 +
 external/bsd/openpam/dist/lib/libpam/pam_open_session.c                 |    90 +
 external/bsd/openpam/dist/lib/libpam/pam_prompt.c                       |    94 +
 external/bsd/openpam/dist/lib/libpam/pam_putenv.c                       |   112 +
 external/bsd/openpam/dist/lib/libpam/pam_set_data.c                     |   108 +
 external/bsd/openpam/dist/lib/libpam/pam_set_item.c                     |   129 +
 external/bsd/openpam/dist/lib/libpam/pam_set_mapped_authtok.c           |    66 +
 external/bsd/openpam/dist/lib/libpam/pam_set_mapped_username.c          |    67 +
 external/bsd/openpam/dist/lib/libpam/pam_setcred.c                      |    99 +
 external/bsd/openpam/dist/lib/libpam/pam_setenv.c                       |   103 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_acct_mgmt.c                 |    85 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_authenticate.c              |    86 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_authenticate_secondary.c    |    72 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_chauthtok.c                 |    91 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_close_session.c             |    82 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_get_mapped_authtok.c        |    71 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_get_mapped_username.c       |    72 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_open_session.c              |    82 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_set_mapped_authtok.c        |    71 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_set_mapped_username.c       |    69 +
 external/bsd/openpam/dist/lib/libpam/pam_sm_setcred.c                   |    86 +
 external/bsd/openpam/dist/lib/libpam/pam_start.c                        |   122 +
 external/bsd/openpam/dist/lib/libpam/pam_strerror.c                     |   137 +
 external/bsd/openpam/dist/lib/libpam/pam_verror.c                       |    84 +
 external/bsd/openpam/dist/lib/libpam/pam_vinfo.c                        |    84 +
 external/bsd/openpam/dist/lib/libpam/pam_vprompt.c                      |   133 +
 external/bsd/openpam/dist/ltmain.sh                                     |     4 +-
 external/bsd/openpam/dist/mkpkgng.in                                    |     6 +-
 external/bsd/openpam/dist/modules/Makefile.in                           |     5 +-
 external/bsd/openpam/dist/modules/pam_deny/Makefile.in                  |     5 +-
 external/bsd/openpam/dist/modules/pam_permit/Makefile.in                |     5 +-
 external/bsd/openpam/dist/modules/pam_unix/Makefile.in                  |     5 +-
 external/bsd/openpam/dist/pamgdb.in                                     |     2 +-
 external/bsd/openpam/dist/t/Makefile.am                                 |     3 +-
 external/bsd/openpam/dist/t/Makefile.in                                 |    42 +-
 external/bsd/openpam/dist/t/t.h                                         |     2 -
 external/bsd/openpam/dist/t/t_file.c                                    |     2 -
 external/bsd/openpam/dist/t/t_main.c                                    |     2 -
 external/bsd/openpam/dist/t/t_openpam_ctype.c                           |   122 +
 external/bsd/openpam/dist/t/t_openpam_readlinev.c                       |     2 -
 external/bsd/openpam/dist/t/t_openpam_readword.c                        |     2 -
 126 files changed, 18786 insertions(+), 599 deletions(-)

diffs (truncated from 20432 to 300 lines):

diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/CREDITS
--- a/external/bsd/openpam/dist/CREDITS Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/CREDITS Fri Oct 24 18:15:36 2014 +0000
@@ -15,6 +15,8 @@
 ideas:
 
        Andrew Morgan <morgan%transmeta.com@localhost>
+       Ankita Pal <pal.ankita.ankita%gmail.com@localhost>
+       Baptiste Daroussin <bapt%freebsd.org@localhost>
        Brian Fundakowski Feldman <green%freebsd.org@localhost>
        Christos Zoulas <christos%netbsd.org@localhost>
        Daniel Richard G. <skunk%iskunk.org@localhost>
@@ -25,13 +27,14 @@
        Eric Melville <eric%freebsd.org@localhost>
        Espen Grøndahl <espegro%usit.uio.no@localhost>
        Gary Winiger <gary.winiger%sun.com@localhost>
+       Gavin Atkinson <gavin%freebsd.org@localhost>
        Gleb Smirnoff <glebius%freebsd.org@localhost>
        Hubert Feyrer <hubert%feyrer.de@localhost>
        Jason Evans <jasone%freebsd.org@localhost>
        Joe Marcus Clarke <marcus%freebsd.org@localhost>
+       Jörg Sonnenberger <joerg%britannica.bec.de@localhost>
        Juli Mallett <jmallett%freebsd.org@localhost>
-       Ankita Pal <pal.ankita.ankita%gmail.com@localhost>
-       Jörg Sonnenberger <joerg%britannica.bec.de@localhost>
+       Larry Baird <lab%gta.com@localhost>
        Maëlle Lesage <lesage.maelle%gmail.com@localhost>
        Mark Murray <markm%freebsd.org@localhost>
        Matthias Drochner <drochner%netbsd.org@localhost>
@@ -46,5 +49,3 @@
        Takanori Saneto <sanewo%ba2.so-net.ne.jp@localhost>
        Wojciech A. Koszek <wkoszek%freebsd.org@localhost>
        Yar Tikhiy <yar%freebsd.org@localhost>
-
-Id: CREDITS 648 2013-03-05 17:54:27Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/HISTORY
--- a/external/bsd/openpam/dist/HISTORY Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/HISTORY Fri Oct 24 18:15:36 2014 +0000
@@ -1,3 +1,24 @@
+OpenPAM Ourouparia                                             2014-09-12
+
+ - ENHANCE: When executing a chain, require at least one service
+   function to succeed.  This mitigates fail-open scenarios caused by
+   misconfigurations or missing modules.
+
+ - ENHANCE: Make sure to overwrite buffers which may have contained an
+   authentication token when they're no longer needed.
+
+ - BUGFIX: Under certain circumstances, specifying a non-existent
+   module (or misspelling the name of a module) in a policy could
+   result in a fail-open scenario.  (CVE-2014-3879)
+
+ - FEATURE: Add a search path for modules.  This was implemented in
+   Nummularia but inadvertently left out of the release notes.
+
+ - BUGFIX: The is_upper() predicate only accepted the letter A as an
+   upper-case character instead of the entire A-Z range.  As a result,
+   service and module names containing upper-case letters other than A
+   would be rejected.
+============================================================================
 OpenPAM Nummularia                                             2013-09-07
 
  - ENHANCE: Rewrite the dynamic loader to improve readability and
@@ -97,7 +118,7 @@
    module before loading it.
 
  - ENHANCE: added / improved input validation in many cases, including
-   the policy file and some function arguments.
+   the policy file and some function arguments.  (CVE-2011-4122)
 ============================================================================
 OpenPAM Hydrangea                                              2007-12-21
 
@@ -427,5 +448,3 @@
 OpenPAM Calamite                                               2002-02-09
 
 First (beta) release.
-============================================================================
-Id: HISTORY 737 2013-09-07 12:53:55Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/INSTALL
--- a/external/bsd/openpam/dist/INSTALL Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/INSTALL Fri Oct 24 18:15:36 2014 +0000
@@ -54,5 +54,3 @@
   directory:
 
   # make install
-
-Id: INSTALL 648 2013-03-05 17:54:27Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/LICENSE
--- a/external/bsd/openpam/dist/LICENSE Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/LICENSE Fri Oct 24 18:15:36 2014 +0000
@@ -31,5 +31,3 @@
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 SUCH DAMAGE.
-
-Id: LICENSE 648 2013-03-05 17:54:27Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/Makefile.am
--- a/external/bsd/openpam/dist/Makefile.am     Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/Makefile.am     Fri Oct 24 18:15:36 2014 +0000
@@ -1,4 +1,4 @@
-# Id: Makefile.am 623 2013-02-25 07:24:51Z des 
+# Id: Makefile.am 816 2014-09-12 07:50:22Z des 
 
 ACLOCAL_AMFLAGS = -I m4
 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/Makefile.in
--- a/external/bsd/openpam/dist/Makefile.in     Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/Makefile.in     Fri Oct 24 18:15:36 2014 +0000
@@ -14,7 +14,7 @@
 
 @SET_MAKE@
 
-# Id: Makefile.am 623 2013-02-25 07:24:51Z des 
+# Id: Makefile.am 816 2014-09-12 07:50:22Z des 
 VPATH = @srcdir@
 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
 am__make_running_with_option = \
@@ -84,13 +84,10 @@
 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
        $(top_srcdir)/configure $(am__configure_deps) \
        $(srcdir)/config.h.in $(srcdir)/pamgdb.in $(srcdir)/mkpkgng.in \
-       INSTALL README TODO compile config.guess config.sub depcomp \
-       install-sh missing ltmain.sh
+       INSTALL README TODO compile config.guess config.sub install-sh \
+       missing ltmain.sh
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
-       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
-       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
-       $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/README
--- a/external/bsd/openpam/dist/README  Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/README  Fri Oct 24 18:15:36 2014 +0000
@@ -23,5 +23,3 @@
      this will be made configurable in a future release.
 
 Please direct bug reports and inquiries to <des%des.no@localhost>.
-
-Id: README 648 2013-03-05 17:54:27Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/RELNOTES
--- a/external/bsd/openpam/dist/RELNOTES        Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/RELNOTES        Fri Oct 24 18:15:36 2014 +0000
@@ -1,6 +1,6 @@
 
-                Release notes for OpenPAM Nummularia
-                ====================================
+                 Release notes for OpenPAM Ourouparia
+                 ====================================
 
 This release corresponds to the code used in FreeBSD HEAD as of the
 release date, and is also expected to work on almost any POSIX-like
@@ -20,5 +20,3 @@
  - Unit tests for limited portions of the libraries.
 
 Please direct bug reports and inquiries to <des%des.no@localhost>.
-
-Id: RELNOTES 741 2013-09-07 13:34:02Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/TODO
--- a/external/bsd/openpam/dist/TODO    Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/TODO    Fri Oct 24 18:15:36 2014 +0000
@@ -13,5 +13,3 @@
    wrapper for) openpam_log() which respects the PAM_SILENT flag and
    the no_warn module option.  This would eliminate the need for
    FreeBSD's _pam_verbose_error().
-
-Id: TODO 736 2013-09-07 12:52:42Z des 
diff -r 96a180eb833d -r 01d3bc6205a9 external/bsd/openpam/dist/aclocal.m4
--- a/external/bsd/openpam/dist/aclocal.m4      Fri Oct 24 17:58:09 2014 +0000
+++ b/external/bsd/openpam/dist/aclocal.m4      Fri Oct 24 18:15:36 2014 +0000
@@ -20,6 +20,8593 @@
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
 
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.
+#   Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.
+#   Written by Gordon Matzigkeit, 1996
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 57 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+       [m4_default([$3],
+                  [m4_fatal([Libtool version $1 or higher is required],
+                            63)])],
+       [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+  *\ * | *\    *)
+    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+  case $cc_temp in
+    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+    \-*) ;;
+    *) break;;



Home | Main Index | Thread Index | Old Index