Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9979 invoked by uid 1010); 31 Mar 2005 20:02:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9776 invoked from network); 31 Mar 2005 20:01:52 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 31 Mar 2005 20:01:52 -0000 X-Host-Fingerprint: 67.139.146.250 unknown Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from ([67.139.146.250:52093] helo=xchgsrv.SeattleAD.bstep.us) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 2C/3A-22409-E175C424 for ; Thu, 31 Mar 2005 15:01:36 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 31 Mar 2005 12:03:01 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Config.m4 modifications Thread-Index: AcU2LKLeSs4uqU9eQgy9eC8NsXxIHw== To: Subject: Config.m4 modifications From: jhiggins@birdstep.com ("John Higgins") I have modified the Birdstep section of the config.m4 in the /ext/odbc = directory, but it does not appear to have any effect. What I am trying to do is = call the AC_DEFINE macro with the define value to be based on the operating = system. I am very new to autoconf, so I based my changes on the AC_FIND_SOLID_LIBS = macro at=20 the very beginning of this same config.m4 file. =20 Below is the entire Birdstep section of config.m4. My changes lie = between "dnl=20 BEGIN_BIRDSTEP_CHANGES" and "dnl END_BIRDSTEP_CHANGES". Note that if I = simply=20 insert the AC_DEFINE in the file, it works fine, but if I try to use a = case block,=20 it isn't working... Can anyone tell me what I am doing wrong here? = (Yes, I'm=20 deleting the autom4te.cache and running buildconf after modifying the = config.m4) AC_MSG_CHECKING(for Birdstep support) AC_ARG_WITH(birdstep, [ --with-birdstep[=3DDIR] Include Birdstep support. DIR is the = Birdstep base install directory, defaults to = /usr/local/birdstep.], [ PHP_WITH_SHARED dnl BEGIN_BIRDSTEP_CHANGES ac_birdstep_uname_s=3D`uname -s 2>/dev/null` ac_birdstep_uname_p=3D`uname -p 2>/dev/null` case $ac_birdstep_uname_s in AIX) AC_DEFINE(AIX_POWERPC,1,[ ]);; HP-UX) AC_DEFINE(HPUX_PARISC,1,[ ]);; Linux) AC_DEFINE(LINUX_X86,1,[ ]);; QNX) AC_DEFINE(NEUTRINO_X86,1,[ ]);; SunOs) if test "$ac_birdstep_uname_p" =3D=3D "i386"; then AC_DEFINE(SOLARIS_X86,1,[ ]) elif test "$ac_birdstep_uname_p" =3D=3D "sparc"; then AC_DEFINE(SOLARIS_SPARC,1,[ ]) fi;; UnixWare) AC_DEFINE(UNIXWARE_X86,1,[ ]);; esac dnl END_BIRDSTEP_CHANGES if test "$withval" !=3D "no"; then if test "$withval" =3D "yes"; then ODBC_INCDIR=3D/usr/local/birdstep/include ODBC_LIBDIR=3D/usr/local/birdstep/lib else ODBC_INCDIR=3D$withval/include ODBC_LIBDIR=3D$withval/lib fi ODBC_INCLUDE=3D-I$ODBC_INCDIR ODBC_TYPE=3Dbirdstep ODBC_LFLAGS=3D-L$ODBC_LIBDIR ODBC_LIBS=3D"-lCrdbc32" AC_DEFINE(HAVE_BIRDSTEP,1,[ ]) dnl AC_DEFINE(LINUX_X86,1,[ ]) #if I do this, it works fine. AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi ],[ AC_MSG_RESULT(no) ]) fi ------------------------------------------------------------- Birdstep Technology John Higgins Office: 206 748 5353 Software Engineer Fax: 206 748 5200 Direct: 206 748 5240 Web: http://www.birdstep.com