You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2005/04/08 13:14:20 UTC
[PATCH] libexpat.a on FreeBSD
Hi,
libexpat is not in /usr because its install via ports tree which goes in
/usr/local by default. /usr/local is not in the APR's LTFLAGS search path.
To fix this, I added an option to configure
--with-expat=DIR
then run
./configure .... --with-expat=/usr/local
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 160535)
+++ acinclude.m4 (working copy)
@@ -30,7 +30,10 @@
AC_ARG_WITH(perl-opts,
AC_HELP_STRING([--with-perl-opts],[extra MakeMaker
options]),
[PERL_OPTS=$withval],[PERL_OPTS=""])
-
+ AC_ARG_WITH(expat,
+ AC_HELP_STRING([--with-expat=DIR],
[Specify Expat location]),
+ [EXPAT_DIR=$withval],[EXPAT_DIR=""])
+
prereq_check="$PERL build/version_check.pl"
if test -n "$APACHE2_SRC"; then
@@ -156,6 +159,11 @@
APR_ADDTO([APR_LDFLAGS], "`$APU_CONFIG --link-ld --ldflags`")
APR_ADDTO([APR_LDFLAGS], "`$APR_CONFIG --link-ld --ldflags`")
+ if test -n "$EXPAT_DIR"; then
+ APR_ADDTO([APR_INCLUDES], "-I$EXPAT_DIR/include")
+ APR_ADDTO([APR_LTFLAGS], "-L$EXPAT_DIR/lib")
+ fi
+
dnl Absolute source/build directory
abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`
--
END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml