[SCM] GNU Libtool branch, master, updated. v2.4-44-g286e87b

"Peter O'Gorman" <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  286e87b1030c353d9cfc89dbb72d59e0391cb693 (commit)
      from  e94c6d6e0359d92f08f491f57e0ef3371e978952 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 286e87b1030c353d9cfc89dbb72d59e0391cb693
Author: Peter O'Gorman <[email protected]>
Date:   Thu Jan 27 17:13:10 2011 -0600

    Don't loop through wrapper script arguments unnecessarily.
    
    * libltdl/m4/ltmain.m4sh: Check that argv contains " --lt-"
    before looping to remove wrapper script targetted arguments.
    Performance regression reported by Dan McGee.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |    7 +++++++
 libltdl/config/ltmain.m4sh |   19 +++++++++++--------
 2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6da9d7e..8ff779b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-27  Peter O'Gorman  <[email protected]>
+
+	Don't loop through wrapper script arguments unnecessarily.
+	* libltdl/m4/ltmain.m4sh: Check that argv contains " --lt-"
+	before looping to remove wrapper script targetted arguments.
+	Performance regression reported by Dan McGee.
+
 2011-01-20  Gerald Pfeifer  <[email protected]>  (tiny change)
 
 	Remove support for FreeBSD 1.x.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 7baa6aa..766777f 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -3195,14 +3195,17 @@ func_exec_program_core ()
 # launches target application with the remaining arguments.
 func_exec_program ()
 {
-  for lt_wr_arg
-  do
-    case \$lt_wr_arg in
-    --lt-*) ;;
-    *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
-    esac
-    shift
-  done
+  case \" \$* \" in
+  *\\ --lt-*)
+    for lt_wr_arg
+    do
+      case \$lt_wr_arg in
+      --lt-*) ;;
+      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
+      esac
+      shift
+    done ;;
+  esac
   func_exec_program_core \${1+\"\$@\"}
 }
 


hooks/post-receive
-- 
GNU Libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.