On Mon, Jul 02, 2001 at 04:33:42PM +0200, Emiliano wrote:
> Alexander Bokovoy wrote:
>
> > > Figures. And even if it does get added to php-config, it's not going
> > > to be retrofitted to pre-4.0.6, so it's too late for us.
> >
> > May be something like this will help:
> > PHP_VERSION=`echo "#include \"php_version.h\"
> > PHP_VERSION" | cpp -I$PHP_INCLUDE/main -P`
> >
> > note line break after include.
>
> I'll assume
> $ PHP_INCLUDE=`php-config --includes`
> before this. Well, this looks like it works, but you need to locate
> cpp first. For me it's in /lib, I'm not counting on other platforms
> doing the same. Is cpp required to be a separate executable, anyway?
This is simple -- use '${CC:-gcc} -E -I$PHP_INCLUDE/main -P -' instead of cpp
call (bash syntax). Well, I think this is a good workaround.
Compiler must be defined in any way before compiling.
> > > Serves them friggin' right. Life's been no picnic trying to route
> > > around 1001 distro incompatibilities :)
> >
> > You know, I'm one those vendors :-)))
>
> Well then, better get around the table with the LSB guys :)
I have to re-read LSB 1.0 before that :-) Hope to find some time for it
:-)))
--
Sincerely yours, Alexander Bokovoy
The Midgard Project | ALT Linux Team | Minsk Linux Users Group
www.midgard-project.org | www.altlinux.ru | www.minsk-lug.net
-- You won't skid if you stay in a rut.
-- Frank Hubbard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]