You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Bill Stoddard <st...@raleigh.ibm.com> on 2000/01/20 21:53:06 UTC

AP_USE_HSREGEX

Where is the best place to define this macro? I'm thinking os.h since it is
a per OS thing and the regex libraries are not in APR (and I'm not sure they
belong ther either). Would need to include os.h in httpd.h. I'm not sure I
follow the thinking for the recent activity to isolate macro name spaces so
I wanted to bounce this idea off the list before implementing it.

Bill

________________________________________________
Bill Stoddard stoddard@raleigh.ibm.com

Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>




Re: AP_USE_HSREGEX

Posted by Greg Stein <gs...@lyra.org>.
This is the approach used by Python. Platforms that support ./configure do
so. For the Windows platforms, there is PC/config.h to replace the
config.h that is normally generated by configure.

It works quite well. As long as you remember to update PC/config.h after
changes to the configure process :-)

Note that we used to place USE_HSREGEX on the command line for each
compilation. IMO, putting it into a configure-generated file makes more
sense.

Cheers,
-g

On Thu, 20 Jan 2000 rbb@apache.org wrote:
> Please look again.  The problem is that you are looking in files that are
> extracted on a Windows box.  This macro is generated by autoconf on a Unix
> box.  As we have stated multiple times, platforms that do not have
> autoconf must define their own header files to replace those that autoconf
> generates.
> 
> This means that for Windows, we will need an ap_windows_auto_conf.h which
> defines everything that is generated by autoconf on unix.  The best way to
> do this is the extract to a unix box and run ./buildconf (or get somebody
> to send a copy of ap_auto_config.h to you) and then just go through and
> modify the macro defintions so they make sense for windows.  Then, just
> commit this file, and modify ap_config to include it where we would
> normally include ap_auto_config.h on Unix.
> 
> Ryan
> 
> On Thu, 20 Jan 2000, Bill Stoddard wrote:
> 
> > It's not defined anywhere that is obvious. The problem is that Windows needs
> > to define AP_USE_HSREGEX. Probably can happen as part of the autoconf stuff
> > in Unix.
> > 
> > Bill
> > ----- Original Message -----
> > From: <rb...@apache.org>
> > To: <ne...@apache.org>
> > Sent: Thursday, January 20, 2000 4:13 PM
> > Subject: Re: AP_USE_HSREGEX
> > 
> > 
> > >
> > > This macro is currently defined somewhere, I believe it is in
> > > ap_ac_config.h, but I could be wrong.  what is wrong with where it is
> > > currently defined?
> > >
> > > Ryan
> > >
> > > On Thu, 20 Jan 2000, Bill Stoddard wrote:
> > >
> > > > Where is the best place to define this macro? I'm thinking os.h since it
> > is
> > > > a per OS thing and the regex libraries are not in APR (and I'm not sure
> > they
> > > > belong ther either). Would need to include os.h in httpd.h. I'm not sure
> > I
> > > > follow the thinking for the recent activity to isolate macro name spaces
> > so
> > > > I wanted to bounce this idea off the list before implementing it.
> > > >
> > > > Bill
> > > >
> > > > ________________________________________________
> > > > Bill Stoddard stoddard@raleigh.ibm.com
> > > >
> > > > Come to the first official Apache Software Foundation
> > > > Conference!  <http://ApacheCon.Com/>
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > Come to the first official Apache Software Foundation
> > > Conference!!!   <http://ApacheCon.Com/>
> > >
> > >
> > ____________________________________________________________________________
> > ___
> > > Ryan Bloom                        rbb@ntrnet.net
> > > 2121 Stonehenge Dr. Apt #3
> > > Raleigh, NC 27615 Ryan Bloom -- thinker, adventurer, artist,
> > >      writer, but mostly, friend.
> > > --------------------------------------------------------------------------
> > -----
> > >
> > 
> > 
> 
> 
> Come to the first official Apache Software Foundation
> Conference!!!   <http://ApacheCon.Com/>
> 
> _______________________________________________________________________________
> Ryan Bloom                        	rbb@ntrnet.net
> 2121 Stonehenge Dr. Apt #3
> Raleigh, NC 27615		Ryan Bloom -- thinker, adventurer, artist,
> 				     writer, but mostly, friend.
> -------------------------------------------------------------------------------
> 

-- 
Greg Stein, http://www.lyra.org/


Re: AP_USE_HSREGEX

Posted by rb...@apache.org.
Please look again.  The problem is that you are looking in files that are
extracted on a Windows box.  This macro is generated by autoconf on a Unix
box.  As we have stated multiple times, platforms that do not have
autoconf must define their own header files to replace those that autoconf
generates.

This means that for Windows, we will need an ap_windows_auto_conf.h which
defines everything that is generated by autoconf on unix.  The best way to
do this is the extract to a unix box and run ./buildconf (or get somebody
to send a copy of ap_auto_config.h to you) and then just go through and
modify the macro defintions so they make sense for windows.  Then, just
commit this file, and modify ap_config to include it where we would
normally include ap_auto_config.h on Unix.

Ryan

On Thu, 20 Jan 2000, Bill Stoddard wrote:

> It's not defined anywhere that is obvious. The problem is that Windows needs
> to define AP_USE_HSREGEX. Probably can happen as part of the autoconf stuff
> in Unix.
> 
> Bill
> ----- Original Message -----
> From: <rb...@apache.org>
> To: <ne...@apache.org>
> Sent: Thursday, January 20, 2000 4:13 PM
> Subject: Re: AP_USE_HSREGEX
> 
> 
> >
> > This macro is currently defined somewhere, I believe it is in
> > ap_ac_config.h, but I could be wrong.  what is wrong with where it is
> > currently defined?
> >
> > Ryan
> >
> > On Thu, 20 Jan 2000, Bill Stoddard wrote:
> >
> > > Where is the best place to define this macro? I'm thinking os.h since it
> is
> > > a per OS thing and the regex libraries are not in APR (and I'm not sure
> they
> > > belong ther either). Would need to include os.h in httpd.h. I'm not sure
> I
> > > follow the thinking for the recent activity to isolate macro name spaces
> so
> > > I wanted to bounce this idea off the list before implementing it.
> > >
> > > Bill
> > >
> > > ________________________________________________
> > > Bill Stoddard stoddard@raleigh.ibm.com
> > >
> > > Come to the first official Apache Software Foundation
> > > Conference!  <http://ApacheCon.Com/>
> > >
> > >
> > >
> > >
> >
> >
> > Come to the first official Apache Software Foundation
> > Conference!!!   <http://ApacheCon.Com/>
> >
> >
> ____________________________________________________________________________
> ___
> > Ryan Bloom                        rbb@ntrnet.net
> > 2121 Stonehenge Dr. Apt #3
> > Raleigh, NC 27615 Ryan Bloom -- thinker, adventurer, artist,
> >      writer, but mostly, friend.
> > --------------------------------------------------------------------------
> -----
> >
> 
> 


Come to the first official Apache Software Foundation
Conference!!!   <http://ApacheCon.Com/>

_______________________________________________________________________________
Ryan Bloom                        	rbb@ntrnet.net
2121 Stonehenge Dr. Apt #3
Raleigh, NC 27615		Ryan Bloom -- thinker, adventurer, artist,
				     writer, but mostly, friend.
-------------------------------------------------------------------------------


Re: AP_USE_HSREGEX

Posted by Bill Stoddard <st...@raleigh.ibm.com>.
It's not defined anywhere that is obvious. The problem is that Windows needs
to define AP_USE_HSREGEX. Probably can happen as part of the autoconf stuff
in Unix.

Bill
----- Original Message -----
From: <rb...@apache.org>
To: <ne...@apache.org>
Sent: Thursday, January 20, 2000 4:13 PM
Subject: Re: AP_USE_HSREGEX


>
> This macro is currently defined somewhere, I believe it is in
> ap_ac_config.h, but I could be wrong.  what is wrong with where it is
> currently defined?
>
> Ryan
>
> On Thu, 20 Jan 2000, Bill Stoddard wrote:
>
> > Where is the best place to define this macro? I'm thinking os.h since it
is
> > a per OS thing and the regex libraries are not in APR (and I'm not sure
they
> > belong ther either). Would need to include os.h in httpd.h. I'm not sure
I
> > follow the thinking for the recent activity to isolate macro name spaces
so
> > I wanted to bounce this idea off the list before implementing it.
> >
> > Bill
> >
> > ________________________________________________
> > Bill Stoddard stoddard@raleigh.ibm.com
> >
> > Come to the first official Apache Software Foundation
> > Conference!  <http://ApacheCon.Com/>
> >
> >
> >
> >
>
>
> Come to the first official Apache Software Foundation
> Conference!!!   <http://ApacheCon.Com/>
>
>
____________________________________________________________________________
___
> Ryan Bloom                        rbb@ntrnet.net
> 2121 Stonehenge Dr. Apt #3
> Raleigh, NC 27615 Ryan Bloom -- thinker, adventurer, artist,
>      writer, but mostly, friend.
> --------------------------------------------------------------------------
-----
>


Re: AP_USE_HSREGEX

Posted by rb...@apache.org.
This macro is currently defined somewhere, I believe it is in
ap_ac_config.h, but I could be wrong.  what is wrong with where it is
currently defined?

Ryan

On Thu, 20 Jan 2000, Bill Stoddard wrote:

> Where is the best place to define this macro? I'm thinking os.h since it is
> a per OS thing and the regex libraries are not in APR (and I'm not sure they
> belong ther either). Would need to include os.h in httpd.h. I'm not sure I
> follow the thinking for the recent activity to isolate macro name spaces so
> I wanted to bounce this idea off the list before implementing it.
> 
> Bill
> 
> ________________________________________________
> Bill Stoddard stoddard@raleigh.ibm.com
> 
> Come to the first official Apache Software Foundation
> Conference!  <http://ApacheCon.Com/>
> 
> 
> 
> 


Come to the first official Apache Software Foundation
Conference!!!   <http://ApacheCon.Com/>

_______________________________________________________________________________
Ryan Bloom                        	rbb@ntrnet.net
2121 Stonehenge Dr. Apt #3
Raleigh, NC 27615		Ryan Bloom -- thinker, adventurer, artist,
				     writer, but mostly, friend.
-------------------------------------------------------------------------------