# make php build on non-Linux: test ... == ...

- Thread: https://externals.io/message/26439
- Original archive: https://news-web.php.net/php.internals/26439
- Started by Hubert Feyrer on 2006-11-09T17:40:10+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #26439 — Hubert Feyrer — 2006-11-09T17:40:10+00:00

URL: https://externals.io/message/26439#26439

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

---

## #26457 — Richard Quadling — 2006-11-10T10:51:23+00:00

URL: https://externals.io/message/26439#26457 · In reply to: #26439

Doing a quick check on ...

pear
pear-core
pecl
phpdoc
php-src
ZendAPI
ZendEngine2

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







>
> 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
>
> --
> 
> 
>
>


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
