Re: [PHP4BETA] ZTS on unix.
| From: | Thies C. Arntzen | Date: | Tue, 31 Aug 1999 19:48:13 +0000 |
| Subject: | Re: [PHP4BETA] ZTS on unix. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3929@lists.php.net to get a copy of this message | ||
On Tue, 31 Aug 1999, Sascha Schumann wrote:
> On Tue, Aug 31, 1999 at 08:28:02PM +0200, Stig Bakken wrote:
> > On Tue, 31 Aug 1999, Thies C. Arntzen wrote:
> >
> > > hi mr. autoconf (stig?),
> > >
> > > we'll need to make a few adjustments to the configure for
> > > --enable-thread-safety mode.
> > >
> > > (i'm kinda lost here)
> > >
> > > libzend/zend-scanner.l needs to create zend-scanner.cc (c++ version) and
> > > that needs to be complied:
> > >
> > > my ugly hack (libzend/Makefile) did:
> > >
> > > hack:
> > > $(LEX) -+ -S$(srcdir)/flex.skl -Pzend -ozend-scanner.cc -i $(srcdir)/zend-scanner.l
> > > g++ -g -Wall $(DEFS) -c zend-scanner.cc -o zend-scanner.o
> > >
> > > so i could say:
> > > # make hack
> > > ....
> > > # make
> > >
> > > to get my ZTS version of libzend.
> > >
> > > also -I../TSRM -I../../TSRM needs to be in some of the makefiles
> >
> > Is what you're saying that we should use different [f]lex commands when
> > compiling with and without ZTS?
>
> Yes. For ZTS, a C++ flexer must be created. Could be easily
> solved by adding a new make rule and filling in the values on
> configure time, depending on --*-thread-safety.
>
> if on
> AC_SUBST(zend-scanner, zend-scanner.cc)
> AC_SUBST(zend-scanner-compile, '$(CXX) $(CXXFLAGS) $< -o $@')
> else
> AC_SUBST(zend-scanner, zend-scanner.c)
> AC_SUBST(zend-scanner-compile '$(CC) $(CCFLAGS) $< -o $@')
> endif
>
> Then we need another check for C++ compiler as well.
yupidupiedu (what you read is how it sounds WYRIHIS;-)
there are just a few things that need changing in the configuration
stuff, and i think it would take me too long to get into the php4 config.
we need to have different flex-flags, compile zend-scanner.cc using a c++
compiler, also we need to link with c++ (as we need the basic c++
I/O-libs) if we want to create an executable.
also having an option to compile everything shared - including
php4isapi.c - would be nice and will be needed in the future.
right now you should be able to create a "thread-save" cgi by doing
./configure --enable-thread-save
and some fiddeling in the makefiles (see above).
again, i'm not mr. autoconf, but i want to see server-modules on unix!
tc
BTW: will we have a --shared=max|module_name like apache has it for unix?
>
> --
>
> Regards,
>
> Sascha Schumann
> Consultant
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany