Doing a quick check on ...

pear
pear-core
pecl
phpdoc
php-src
ZendAPI
ZendEngine2

I've attached diffs to deal with == being = for compliance.






On 09/11/06, Hubert Feyrer <[EMAIL PROTECTED]> wrote:

Hi,

I've stumbled across this with php5, but this is also in php6 (against
which the patch below is): the sqlite Makefile.am uses a GNU/Linux-only
test(1) syntax that won't build on (e.g.) NetBSD. The patch below fixes
this for POSIX/SUSv3 conformance.


  - Hubert


Index: configure
===================================================================
RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure,v
retrieving revision 1.4
diff -u -r1.4 configure
--- configure   14 Aug 2006 16:35:22 -0000      1.4
+++ configure   9 Nov 2006 17:34:22 -0000
@@ -19700,7 +19700,7 @@
      OS_WIN=0
      OS_OS2=1
      TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
        TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
        BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
      fi
Index: configure.ac
===================================================================
RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure.ac,v
retrieving revision 1.4
diff -u -r1.4 configure.ac
--- configure.ac        14 Aug 2006 16:35:22 -0000      1.4
+++ configure.ac        9 Nov 2006 17:34:23 -0000
@@ -412,7 +412,7 @@
      OS_WIN=0
      OS_OS2=1
      TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
        TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
        BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
      fi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php




--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
Index: tests/PEAR_Command_Pickle/pickle/packagefiles/http/config.m4
===================================================================
RCS file: 
/repository/pear-core/tests/PEAR_Command_Pickle/pickle/packagefiles/http/config.m4,v
retrieving revision 1.1
diff -u -r1.1 config.m4
--- tests/PEAR_Command_Pickle/pickle/packagefiles/http/config.m4        30 Oct 
2005 19:13:24 -0000      1.1
+++ tests/PEAR_Command_Pickle/pickle/packagefiles/http/config.m4        10 Nov 
2006 10:42:19 -0000
@@ -83,20 +83,20 @@
                
                AC_MSG_CHECKING([for SSL support in libcurl])
                CURL_SSL=`$CURL_CONFIG --features | $EGREP SSL`
-               if test "$CURL_SSL" == "SSL"; then
+               if test "$CURL_SSL" = "SSL"; then
                        AC_MSG_RESULT([yes])
                        AC_DEFINE([HTTP_HAVE_SSL], [1], [ ])
                        
                        AC_MSG_CHECKING([for SSL library used])
                        CURL_SSL_FLAVOUR=
                        for i in $CURL_LIBS; do
-                               if test "$i" == "-lssl"; then
+                               if test "$i" = "-lssl"; then
                                        CURL_SSL_FLAVOUR="openssl"
                                        AC_MSG_RESULT([openssl])
                                        AC_DEFINE([HTTP_HAVE_OPENSSL], [1], [ ])
                                        AC_CHECK_HEADERS([openssl/crypto.h])
                                        break
-                               elif test "$i" == "-lgnutls"; then
+                               elif test "$i" = "-lgnutls"; then
                                        CURL_SSL_FLAVOUR="gnutls"
                                        AC_MSG_RESULT([gnutls])
                                        AC_DEFINE([HTTP_HAVE_GNUTLS], [1], [ ])
Index: Net_Gopher/config.m4
===================================================================
RCS file: /repository/pecl/Net_Gopher/config.m4,v
retrieving revision 1.1
diff -u -r1.1 config.m4
--- Net_Gopher/config.m4        17 Jul 2003 03:11:32 -0000      1.1
+++ Net_Gopher/config.m4        10 Nov 2006 10:46:22 -0000
@@ -1,7 +1,7 @@
 PHP_ARG_ENABLE(gopher, whether to enable the gopher stream wrapper,
 [  --enable-gopher         Enable PHP gopher:// wrapper.])
 
-if test "$PHP_GOPHER" == "yes"; then
+if test "$PHP_GOPHER" = "yes"; then
   AC_DEFINE(WITH_GOPHER, 1, [Whether you want gopher])
   PHP_NEW_EXTENSION(gopher, gopher_fopen_wrapper.c,
        $ext_shared,,)
Index: dbdo/config.m4
===================================================================
RCS file: /repository/pecl/dbdo/config.m4,v
retrieving revision 1.3
diff -u -r1.3 config.m4
--- dbdo/config.m4      18 Nov 2004 14:40:04 -0000      1.3
+++ dbdo/config.m4      10 Nov 2006 10:46:22 -0000
@@ -38,7 +38,7 @@
   PHP_DBDO_CFLAGS=`$DBDO_DIR/bin/pkg-config --cflags libgda`
   
 
-  if test "$PHP_DBDO_CFLAGS" == ""; then
+  if test "$PHP_DBDO_CFLAGS" = ""; then
      AC_MSG_ERROR([pkg-config failed to find libgda])
   fi
   INCLUDES="$INCLUDES $PHP_DBDO_CFLAGS"
Index: flitetts/config.m4
===================================================================
RCS file: /repository/pecl/flitetts/config.m4,v
retrieving revision 1.2
diff -u -r1.2 config.m4
--- flitetts/config.m4  22 Jan 2006 11:56:58 -0000      1.2
+++ flitetts/config.m4  10 Nov 2006 10:46:23 -0000
@@ -14,7 +14,7 @@
      FLITETTS=/usr/local
   fi
 
-  if test "$FLITETTS" == "yes"; then
+  if test "$FLITETTS" = "yes"; then
      FLITETTS=/usr/local
   fi
 
Index: oggvorbis/config.m4
===================================================================
RCS file: /repository/pecl/oggvorbis/config.m4,v
retrieving revision 1.1
diff -u -r1.1 config.m4
--- oggvorbis/config.m4 9 Sep 2003 22:03:04 -0000       1.1
+++ oggvorbis/config.m4 10 Nov 2006 10:46:23 -0000
@@ -1,7 +1,7 @@
 PHP_ARG_ENABLE(oggvorbis, whether to enable the Ogg Vorbis stream wrapper,
 [  --enable-oggvorbis      Enable PHP ogg.vorbis:// wrapper.])
 
-if test "$PHP_OGGVORBIS" == "yes"; then
+if test "$PHP_OGGVORBIS" = "yes"; then
   AC_CHECK_LIB(ogg, oggpack_writealign, [
     PHP_ADD_LIBRARY(ogg,, OGGVORBIS_SHARED_LIBADD)
   ], [
Index: pdo_sqlite/sqlite/configure
===================================================================
RCS file: /repository/pecl/pdo_sqlite/sqlite/configure,v
retrieving revision 1.4
diff -u -r1.4 configure
--- pdo_sqlite/sqlite/configure 14 Aug 2006 16:35:22 -0000      1.4
+++ pdo_sqlite/sqlite/configure 10 Nov 2006 10:46:26 -0000
@@ -19700,7 +19700,7 @@
     OS_WIN=0
     OS_OS2=1
     TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
       TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
       BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
     fi
Index: pdo_sqlite/sqlite/configure.ac
===================================================================
RCS file: /repository/pecl/pdo_sqlite/sqlite/configure.ac,v
retrieving revision 1.4
diff -u -r1.4 configure.ac
--- pdo_sqlite/sqlite/configure.ac      14 Aug 2006 16:35:22 -0000      1.4
+++ pdo_sqlite/sqlite/configure.ac      10 Nov 2006 10:46:31 -0000
@@ -412,7 +412,7 @@
     OS_WIN=0
     OS_OS2=1
     TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
       TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
       BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
     fi
Index: svn/config.m4
===================================================================
RCS file: /repository/pecl/svn/config.m4,v
retrieving revision 1.8
diff -u -r1.8 config.m4
--- svn/config.m4       9 Jun 2005 01:41:39 -0000       1.8
+++ svn/config.m4       10 Nov 2006 10:46:31 -0000
@@ -24,7 +24,7 @@
       break;
     fi
   done
-  if test "$PHP_SVN_LDFLAGS" == ""; then
+  if test "$PHP_SVN_LDFLAGS" = ""; then
      AC_MSG_ERROR([failed to find svn_client.h])
   fi
   
@@ -42,7 +42,7 @@
       break;
     fi
   done
-  if test "$PHP_SVN_APR_FOUND" == ""; then
+  if test "$PHP_SVN_APR_FOUND" = ""; then
      AC_MSG_ERROR([failed to find apr.h])
   fi
 
Index: en/internals/zendapi/build.xml
===================================================================
RCS file: /repository/phpdoc/en/internals/zendapi/build.xml,v
retrieving revision 1.1
diff -u -r1.1 build.xml
--- en/internals/zendapi/build.xml      21 Aug 2005 16:27:06 -0000      1.1
+++ en/internals/zendapi/build.xml      10 Nov 2006 10:48:47 -0000
@@ -161,8 +161,8 @@
    when desired by the user (by explicitly specifying
    <literal>--enable-my_module</literal> or
    <literal>--with-my_module</literal>), change the test for
-   <literal>$PHP_MY_MODULE</literal> to <literal>== "yes"</literal>:
-   <programlisting>if test "$PHP_MY_MODULE" == "yes"; then dnl
+   <literal>$PHP_MY_MODULE</literal> to <literal>= "yes"</literal>:
+   <programlisting>if test "$PHP_MY_MODULE" = "yes"; then dnl
     Action.. PHP_EXTENSION(my_module, $ext_shared)
     fi</programlisting>This would require you to use
    <literal>--enable-my_module</literal> each time when reconfiguring
Index: Extending_Zend_Build.xml
===================================================================
RCS file: /repository/ZendAPI/Extending_Zend_Build.xml,v
retrieving revision 1.9
diff -u -r1.9 Extending_Zend_Build.xml
--- Extending_Zend_Build.xml    13 Jun 2004 12:26:19 -0000      1.9
+++ Extending_Zend_Build.xml    10 Nov 2006 10:50:12 -0000
@@ -161,8 +161,8 @@
    when desired by the user (by explicitly specifying
    <literal>--enable-my_module</literal> or
    <literal>--with-my_module</literal>), change the test for
-   <literal>$PHP_MY_MODULE</literal> to <literal>== "yes"</literal>:
-   <programlisting>if test "$PHP_MY_MODULE" == "yes"; then dnl
+   <literal>$PHP_MY_MODULE</literal> to <literal>= "yes"</literal>:
+   <programlisting>if test "$PHP_MY_MODULE" = "yes"; then dnl
     Action.. PHP_EXTENSION(my_module, $ext_shared)
     fi</programlisting>This would require you to use
    <literal>--enable-my_module</literal> each time when reconfiguring
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to