Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16892 invoked by uid 1010); 9 Nov 2006 21:15:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16877 invoked from network); 9 Nov 2006 21:15:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2006 21:15:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:7948]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 78/36-00893-D6A93554 for ; Thu, 09 Nov 2006 16:15:25 -0500 Authentication-Results: pb1.pair.com smtp.mail=hubertf@NetBSD.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hubertf@NetBSD.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain NetBSD.org from 83.151.27.39 cause and error) X-PHP-List-Original-Sender: hubertf@NetBSD.org X-Host-Fingerprint: 83.151.27.39 fehu.org Linux 2.4/2.6 Received: from [83.151.27.39] ([83.151.27.39:37615] helo=mail.fehu.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/B2-12290-53863554 for ; Thu, 09 Nov 2006 12:41:11 -0500 Received: by mail.fehu.org (Postfix, from userid 1001) id 22D0E206045; Thu, 9 Nov 2006 18:40:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.fehu.org (Postfix) with ESMTP id 2029720601C for ; Thu, 9 Nov 2006 18:40:10 +0100 (CET) Date: Thu, 9 Nov 2006 18:40:10 +0100 (CET) X-X-Sender: feyrer@m2s05.vlinux.de To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: make php build on non-Linux: test ... == ... From: hubertf@NetBSD.org (Hubert Feyrer) 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