You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sascha Schumann <sa...@schumann.cx> on 2000/03/07 19:27:47 UTC
mod_so in Apache 2.0
On Tue, Mar 07, 2000 at 06:15:58PM -0000, David Reid wrote:
> This fixes the problem of -ldl and might prove useful?
>
> --- /boot/home/cvs/apache-2.0/src/modules/standard/config.m4 Thu Mar 2
> 00:28:51 2000
> +++ config.m4 Tue Mar 7 18:00:35 2000
> @@ -52,8 +52,16 @@
>
> APACHE_MODPATH_FINISH
>
> +PLATFORM=`$ac_config_guess`;
> if test "$sharedobjs" = "yes"; then
> - LIBS="$LIBS -ldl"
> + case "$PLATFORM" in
> + *beos*)
> + ;;
> + *pc-os2_emx*)
> + ;;
> + *)
> + LIBS="$LIBS -ldl";;
> + esac
That does not belong there at all.
We should probably teach mod_so to use libltdl, so we can get rid of this
platform-dependent dynamic loading crap.
What do you guys think?
[FYI: libltdl supports various interfaces (Solaris, Linux, *BSD, HP-UX,
Win16/32, BeOS, GNU DLD, AIX?), and can be included under the Apache license
due to an extremly cool licensing scheme.]
- Sascha
Re: mod_so in Apache 2.0
Posted by David Reid <dr...@jetnet.co.uk>.
Works for me. What I wrote fixed a problem for me, but if there's a better
solution then let's go for it.
d.
----- Original Message -----
From: "Sascha Schumann" <sa...@schumann.cx>
To: <ne...@apache.org>
Sent: Tuesday, March 07, 2000 6:27 PM
Subject: mod_so in Apache 2.0
> On Tue, Mar 07, 2000 at 06:15:58PM -0000, David Reid wrote:
> > This fixes the problem of -ldl and might prove useful?
> >
> > --- /boot/home/cvs/apache-2.0/src/modules/standard/config.m4 Thu Mar 2
> > 00:28:51 2000
> > +++ config.m4 Tue Mar 7 18:00:35 2000
> > @@ -52,8 +52,16 @@
> >
> > APACHE_MODPATH_FINISH
> >
> > +PLATFORM=`$ac_config_guess`;
> > if test "$sharedobjs" = "yes"; then
> > - LIBS="$LIBS -ldl"
> > + case "$PLATFORM" in
> > + *beos*)
> > + ;;
> > + *pc-os2_emx*)
> > + ;;
> > + *)
> > + LIBS="$LIBS -ldl";;
> > + esac
>
> That does not belong there at all.
>
> We should probably teach mod_so to use libltdl, so we can get rid of this
> platform-dependent dynamic loading crap.
>
> What do you guys think?
>
> [FYI: libltdl supports various interfaces (Solaris, Linux, *BSD, HP-UX,
> Win16/32, BeOS, GNU DLD, AIX?), and can be included under the Apache
license
> due to an extremly cool licensing scheme.]
>
> - Sascha
>