httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] apxs.in
Date Mon, 29 Apr 2002 19:02:52 GMT
Thom May <thom@planetarytramp.net> writes:

> * Jeff Trawick (trawick@attglobal.net) wrote :
> > Pier Fumagalli <pier@betaversion.org> writes:
> > 
> > > This is (again) Thom's patch to make APXS work when we don't use standard
> > > layouts, and we move things around after building...

Why doesn't the code to move things around after building fix it up
and not require the user to specify "-d my-server-root"?  That's what
Apache's install-bindist.sh does.  I guess I'm confused about when the
user would use the new -d option.

> Index: apxs.in
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/support/apxs.in,v
> retrieving revision 1.36
> diff -u -u -r1.36 apxs.in
> --- apxs.in	13 Mar 2002 20:48:05 -0000	1.36
> +++ apxs.in	29 Apr 2002 17:38:43 -0000

> @@ -217,10 +188,81 @@
>      }
>  }
>  
> +
> +##
> +##  Configuration
> +##
> +
> +# read the configuration variables once
> +my %config_vars = ();
> +my $mode;
> +my $working_dir;
> +my $server_root;
> +my $installbuilddir;
> +
> +my $temp_path = $0;
> +    
> +while (-l $temp_path) {
> +    $temp_path = readlink $temp_path;
> +}
> +        
> +if ($temp_path =~ /^(.*)\/apxs/){
> +    $working_dir = $1;
> +}
> +
> +if  ($opt_d ne ''){
> +    $mode = "rel";
> +    $server_root = $opt_d . "/";
> +    $installbuilddir = $server_root . "@rel_installbuilddir@";
> +}
> +elsif ($working_dir eq '@exp_bindir@') {
> +#if ($working_dir eq '@exp_bindir@') {

oops

> @@ -234,6 +276,10 @@
>  	exit 1;
>  }
>  
> +if ($mode eq 'rel') {
> +    $httpd = "LD_LIBRARY_PATH=$libdir $httpd";
> +}

like I mentioned before, this doesn't work everywhere... envvars has
the right stuff, and I just committed a change to source envvars before
running httpd; I hope envvars has been tweaked in whatever environment
corresponds to $mode == 'rel'

--/--

I'm out of time for today unfortunately.
-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message