From: Ryan Bloom Date: Fri, 28 Sep 2001 04:19:39 +0000 (+0000) Subject: Allow support programs to be compiled against a static version X-Git-Tag: 2.0.26~177 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed0af9c112e429e0232bca8bf9d6ae832ec25df0;p=thirdparty%2Fapache%2Fhttpd.git Allow support programs to be compiled against a static version of libapr. This allows the smaller support programs to be relocated. Submitted by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91167 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 8ed935aacbf..0d70354bd0e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.26-dev + *) Allow support programs to be compiled against a static version + of libapr. This allows the smaller support programs to be + relocated. [Aaron Bannert ] + *) Update the mime.types file to the registered media types as of 2001-09-25, and add mapping for xsl extension [Mark Cox] diff --git a/support/Makefile.in b/support/Makefile.in index a0c2c7580c9..c64375948f2 100644 --- a/support/Makefile.in +++ b/support/Makefile.in @@ -23,23 +23,23 @@ install: htpasswd_OBJECTS = htpasswd.lo htpasswd: $(htpasswd_OBJECTS) - $(LINK) $(htpasswd_OBJECTS) $(PROGRAM_LDADD) + $(LINK) $(htpasswd_LTFLAGS) $(htpasswd_OBJECTS) $(PROGRAM_LDADD) htdigest_OBJECTS = htdigest.lo htdigest: $(htdigest_OBJECTS) - $(LINK) $(htdigest_OBJECTS) $(PROGRAM_LDADD) + $(LINK) $(htdigest_LTFLAGS) $(htdigest_OBJECTS) $(PROGRAM_LDADD) rotatelogs_OBJECTS = rotatelogs.lo rotatelogs: $(rotatelogs_OBJECTS) - $(LINK) $(rotatelogs_OBJECTS) $(PROGRAM_LDADD) + $(LINK) $(rotatelogs_LTFLAGS) $(rotatelogs_OBJECTS) $(PROGRAM_LDADD) logresolve_OBJECTS = logresolve.lo logresolve: $(logresolve_OBJECTS) - $(LINK) $(logresolve_OBJECTS) $(PROGRAM_LDADD) + $(LINK) $(logresolve_LTFLAGS) $(logresolve_OBJECTS) $(PROGRAM_LDADD) ab_OBJECTS = ab.lo ab: $(ab_OBJECTS) - $(LINK) $(ab_OBJECTS) $(PROGRAM_LDADD) + $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(PROGRAM_LDADD) suexec_OBJECTS = suexec.lo suexec: $(suexec_OBJECTS) diff --git a/support/config.m4 b/support/config.m4 new file mode 100644 index 00000000000..ce377479b69 --- /dev/null +++ b/support/config.m4 @@ -0,0 +1,45 @@ + + +htpasswd_LTFLAGS="" +htdigest_LTFLAGS="" +rotatelogs_LTFLAGS="" +logresolve_LTFLAGS="" +ab_LTFLAGS="" + +dnl XXX Should we change the foo_LTFLAGS="-static" settings below +dnl to something like APR_ADDTO? -aaron + +AC_ARG_ENABLE(static-htpasswd,[ --enable-static-htpasswd Build a statically linked version of htpasswd],[ +if test "$enableval" = "yes" ; then + htpasswd_LTFLAGS="-static" +fi +]) +APACHE_SUBST(htpasswd_LTFLAGS) + +AC_ARG_ENABLE(static-htdigest,[ --enable-static-htdigest Build a statically linked version of htdigest],[ +if test "$enableval" = "yes" ; then + htdigest_LTFLAGS="-static" +fi +]) +APACHE_SUBST(htdigest_LTFLAGS) + +AC_ARG_ENABLE(static-rotatelogs,[ --enable-static-rotatelogs Build a statically linked version of rotatelogs],[ +if test "$enableval" = "yes" ; then + rotatelogs_LTFLAGS="-static" +fi +]) +APACHE_SUBST(rotatelogs_LTFLAGS) + +AC_ARG_ENABLE(static-logresolve,[ --enable-static-logresolve Build a statically linked version of logresolve],[ +if test "$enableval" = "yes" ; then + logresolve_LTFLAGS="-static" +fi +]) +APACHE_SUBST(logresolve_LTFLAGS) + +AC_ARG_ENABLE(static-ab,[ --enable-static-ab Build a statically linked version of ab],[ +if test "$enableval" = "yes" ; then + ab_LTFLAGS="-static" +fi +]) +APACHE_SUBST(ab_LTFLAGS)