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