]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/ltmain.in: Only check precious_files_regex if it is not empty.
authorScott James Remnant <scott@netsplit.com>
Sun, 14 Mar 2004 14:18:10 +0000 (14:18 +0000)
committerScott James Remnant <scott@netsplit.com>
Sun, 14 Mar 2004 14:18:10 +0000 (14:18 +0000)
ChangeLog
ltmain.in

index cfe5f17215c57d5f5829fbbaddac353b9ec507a8..f0f429f311ed67c4f7bfa3b33040dba0d96db442 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-14  Scott James Remnant  <scott@netsplit.com>
+
+       * m4/ltmain.in: Only check precious_files_regex if it is not empty.
+
 2004-03-05  David Edelsohn  <edelsohn@gnu.org>
 
        * libtool.m4: Disable building static libraries if building
index 2af6ec92982aec5a65971be207f4c4b36ee5ff46..3b79549717ee1bcef7f325c3ad149218bc645acc 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -3113,9 +3113,11 @@ EOF
            *.$objext)
               ;;
            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
-              if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
-              then
-                continue
+              if test "X$precious_files_regex" != "X"; then
+                if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+                then
+                  continue
+                fi
               fi
               removelist="$removelist $p"
               ;;