gnash-dev
[Top][All Lists]
Advanced

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

[Gnash-dev] portable test and =


From: Jeremy C. Reed
Subject: [Gnash-dev] portable test and =
Date: Fri, 13 Jun 2008 10:11:55 -0500 (CDT)

Saw this in 0.8.3. The world doesn't always use bash's builtin test. Even 
coreutils test(1) documents single =.

Please consider the following:

--- configure.ac.orig   2008-06-13 10:04:41.000000000 -0500
+++ configure.ac        2008-06-13 10:04:55.000000000 -0500
@@ -2533,7 +2533,7 @@
         echo "               This version of ffmpeg may not work!" >&3
         echo "               Version 51.27.0 or newer is highly recommended." 
>&3
       else
-       if test x"${avformat_h}" == x; then
+       if test x"${avformat_h}" = x; then
           echo "        ERROR: FFMPEG's libavcodec header is installed but not 
libavformat." >&3
           echo "               You can install FFMPEG from 
http://ffmpeg.mplayerhq.hu"; >&3
           echo "               or .deb users: apt-get install libavformat-dev" 
>&3
@@ -2900,7 +2900,7 @@
   fi
 fi
 
-if test "$GMSGFMT" == ":"; then
+if test "$GMSGFMT" = ":"; then
   echo "        WARNING: You need the gettext package installed to use 
translations." >&4
   echo "                 Required for building a package or 'make distcheck'" 
>&4
   echo "                 Install it from http://www.gnu.org/software/gettext/"; 
>&4
--- macros/docbook.m4.orig      2008-06-13 10:07:55.000000000 -0500
+++ macros/docbook.m4   2008-06-13 10:08:08.000000000 -0500
@@ -58,7 +58,7 @@
     AC_MSG_NOTICE([checking for other programs needed to process the DocBook 
files])
     AC_PATH_PROG(FOP, fop.sh, [],
        
[$PATH:/usr/local/fop-0.20.5/:/usr/fop-0.20.5/:/usr/local/fop:/usr/lib/java/fop])
-    if test x"$FOP" == x; then
+    if test x"$FOP" = x; then
         AC_PATH_PROG(FOP, fop, [],
             
[$PATH:/usr/local/fop-0.20.5/:/usr/fop-0.20.5/:/usr/local/fop:/usr/lib/java/fop])
     fi




reply via email to

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