libtool-patches
[Top][All Lists]
Advanced

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

ensure $MV is set before each use [libtool--gary--1.0--patch-30]


From: Gary V. Vaughan
Subject: ensure $MV is set before each use [libtool--gary--1.0--patch-30]
Date: Sat, 7 May 2005 15:30:46 +0100 (BST)
User-agent: mailnotify/0.6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay to commit to HEAD and branch-2-0?

        Some macros had relied on accidentally correct ordering in order
        for $MV to be defined before use.  Factor out setting of some
        common file commands and m4_require it before use:

        * libltdl/m4/libtool.m4 (_LT_PROG_DEFAULTS): Allow user to
        override some common file commands at configure time.
        (_LT_SETUP, _LT_CONFIG, _LT_COMPILER_OPTION, _LT_LINKER_OPTION)
        (_LT_COMPILER_C_O, _LT_COMPILER_FILE_LOCKS)
        (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
        (_LT_SYS_HIDDEN_DEPLIBS): m4_require it to ensure the commands are
        defined before they are called.

- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.9
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCfNEUFRMICSmD1gYRAve5AKC1MjLOhIqcMd2yQ+9q+/eF4KL8qwCeMC1m
jztYGs7Kx/tiC7Ye8ftIPus=
=VKwi
-----END PGP SIGNATURE-----
* looking for address@hidden/libtool--gary--1.0--patch-29 to compare with
* comparing to address@hidden/libtool--gary--1.0--patch-29
M  libltdl/m4/libtool.m4
M  ChangeLog

* modified files

Index: Changelog
from  Gary V. Vaughan  <address@hidden>

        Some macros had relied on accidentally correct ordering in order
        for $MV to be defined before use.  Factor out setting of some
        common file commands and m4_require it before use:

        * libltdl/m4/libtool.m4 (_LT_PROG_DEFAULTS): Allow user to
        override some common file commands at configure time.
        (_LT_SETUP, _LT_CONFIG, _LT_COMPILER_OPTION, _LT_LINKER_OPTION)
        (_LT_COMPILER_C_O, _LT_COMPILER_FILE_LOCKS)
        (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
        (_LT_SYS_HIDDEN_DEPLIBS): m4_require it to ensure the commands are
        defined before they are called.

--- orig/libltdl/m4/libtool.m4
+++ mod/libltdl/m4/libtool.m4
@@ -106,6 +106,17 @@
 ])
 
 
+# _LT_PROG_DEFAULTS
+# -----------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after `m4_require([_LT_PROG_DEFAULTS])'.
+m4_defun([_LT_PROG_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_PROG_DEFAULTS
+
+
 # _LT_SETUP
 # ---------
 m4_defun([_LT_SETUP],
@@ -133,6 +144,7 @@
 AC_REQUIRE([AC_EXEEXT])dnl
 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 m4_require([_LT_CHECK_XSI_SHELL])dnl
 m4_require([_LT_CMD_RELOAD])dnl
 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
@@ -185,9 +197,6 @@
 # Sed substitution to avoid accidental globbing in evaled expressions
 no_glob_subst='s/\*/\\\*/g'
 
-# Constants:
-RM="rm -f"
-
 # Global variables:
 ofile=libtool
 can_build_shared=yes
@@ -246,7 +255,6 @@
 ])# _LT_PROG_LTMAIN
 
 
-
 ## ------------------------------------- ##
 ## Accumulate code for creating libtool. ##
 ## ------------------------------------- ##
@@ -646,7 +654,8 @@
 # to config.status for appending the configuration named by TAG from the
 # matching tagged config vars.
 m4_defun([_LT_CONFIG],
-[_LT_CONFIG_SAVE_COMMANDS([
+[m4_require([_LT_PROG_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
   m4_if(_LT_TAG, [C], [
     # See if we are running on zsh, and set the options which allow our
@@ -1190,6 +1199,7 @@
 # Check whether the given compiler option works
 AC_DEFUN([_LT_COMPILER_OPTION],
 [AC_REQUIRE([AC_OBJEXT])dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 m4_require([_LT_DECL_SED])dnl
 AC_CACHE_CHECK([$1], [$2],
   [$2=no
@@ -1238,7 +1248,8 @@
 # ----------------------------------------------------
 # Check whether the given linker option works
 AC_DEFUN([_LT_LINKER_OPTION],
-[AC_CACHE_CHECK([$1], [$2],
+[m4_require([_LT_PROG_DEFAULTS])dnl
+AC_CACHE_CHECK([$1], [$2],
   [$2=no
    save_LDFLAGS="$LDFLAGS"
    LDFLAGS="$LDFLAGS $3"
@@ -1608,6 +1619,7 @@
 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
 m4_defun([_LT_COMPILER_C_O],
 [AC_REQUIRE([AC_OBJEXT])dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 m4_require([_LT_TAG_COMPILER])dnl
 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
@@ -1660,7 +1672,7 @@
 # Check to see if we can do hard links to lock some files if needed
 m4_defun([_LT_COMPILER_FILE_LOCKS],
 [m4_require([_LT_ENABLE_LOCK])dnl
-
+m4_require([_LT_PROG_DEFAULTS])dnl
 _LT_COMPILER_C_O([$1])
 
 hard_links="nottested"
@@ -1788,7 +1800,8 @@
 # -----------------------------
 # PORTME Fill in your ld.so characteristics
 m4_defun([_LT_SYS_DYNAMIC_LINKER],
-[m4_require([_LT_DECL_EGREP])
+[m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 AC_MSG_CHECKING([dynamic linker characteristics])
 m4_case([$1],
        [C], [withGCC=$GCC],
@@ -3662,6 +3675,7 @@
 m4_defun([_LT_LINKER_SHLIBS],
 [AC_REQUIRE([LT_PATH_LD])dnl
 AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 m4_require([_LT_DECL_EGREP])dnl
 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
@@ -4797,6 +4811,7 @@
 m4_defun([_LT_LANG_CXX_CONFIG],
 [AC_REQUIRE([_LT_PROG_CXX])dnl
 AC_REQUIRE([LT_SYS_DLOPEN_SELF])dnl
+m4_require([_LT_PROG_DEFAULTS])dnl
 m4_require([_LT_DECL_EGREP])dnl
 
 AC_LANG_PUSH(C++)
@@ -5774,7 +5789,8 @@
 # Parse the compiler output and extract the necessary
 # objects, libraries and library flags.
 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
-[# Dependencies to place before and after the object being linked:
+[m4_require([_LT_PROG_DEFAULTS])dnl
+# Dependencies to place before and after the object being linked:
 _LT_TAGVAR(predep_objects, $1)=
 _LT_TAGVAR(postdep_objects, $1)=
 _LT_TAGVAR(predeps, $1)=




reply via email to

[Prev in Thread] Current Thread [Next in Thread]