changeset 6190:605b7cac11f2

Don't complain about missing options in the first-use case.
author Bruno Haible <bruno@clisp.org>
date Thu, 01 Sep 2005 12:28:32 +0000
parents 9d1ed82c5d14
children 2146c09cc8f4
files ChangeLog gnulib-tool
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-09-01  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (import): In the first-use case, provide defaults.
+
 2005-09-01  Bruno Haible  <bruno@clisp.org>
 
 	* gnulib-tool (func_import): Remove the .tmp files.
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2005-09-01 12:18:03 $'
+cvsdatestamp='$Date: 2005-09-01 12:28:32 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -1518,7 +1518,10 @@
       if test $m4dirs_count = 0; then
         # First use of gnulib in a package.
         # Any number of additional modules can be given.
+        test -n "$supplied_libname" || supplied_libname=true
+        test -n "$sourcebase" || sourcebase="lib"
         m4base="m4"
+        test -n "$macro_prefix" || macro_prefix="gl"
         func_import "$*"
       else
         if test $m4dirs_count = 1; then