]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
configure.in: Don't use the dc command unless it is required
authorTheodore Ts'o <tytso@mit.edu>
Sat, 16 Feb 2008 02:28:48 +0000 (21:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 Feb 2008 22:33:57 +0000 (17:33 -0500)
Some systems don't have the 'dc' command installed, and this causes
configure to print a warning message unnecessarily for a standard
(non-WIP and non-pre) release of e2fsprogs.

It's easy enough to avoid this problem, so let's do it.

Addresses-Sourceforge-Bug: #1893024

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in

index baac0b0ee286878686f65c9762d1fe69ff9177e3..b569dd8ca875dc1d2dfd1408811ae7f001ba5709 100755 (executable)
--- a/configure
+++ b/configure
@@ -1901,12 +1901,12 @@ esac
 
 base_ver=`echo $E2FSPROGS_VERSION | \
               sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
-pre_vers=`echo $base_ver 0.01 - p | dc`
 
 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
 
 case $E2FSPROGS_VERSION in
 *-WIP|pre-*)
+       pre_vers=`echo $base_ver 0.01 - p | dc`
        E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
        ;;
 *)
index 6ef853357a3ea72f524bd8b5ac7e869aae785a0a..5a9dead39c64e3719c0b82e738fb8e8f8556ad99 100644 (file)
@@ -41,12 +41,12 @@ esac
 
 base_ver=`echo $E2FSPROGS_VERSION | \
               sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
-pre_vers=`echo $base_ver 0.01 - p | dc`
 
 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
 
 case $E2FSPROGS_VERSION in
 *-WIP|pre-*)
+       pre_vers=`echo $base_ver 0.01 - p | dc`
        E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
        ;;
 *)