You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-cvs@tcl.apache.org by ro...@apache.org on 2011/09/14 01:04:58 UTC
svn commit: r1170381 - in /tcl/websh/trunk: CHANGES src/ChangeLog
src/unix/Makefile.in src/unix/configure.in
Author: ronnie
Date: Tue Sep 13 23:04:58 2011
New Revision: 1170381
URL: http://svn.apache.org/viewvc?rev=1170381&view=rev
Log:
- added --with-apr/apu to configure
Modified:
tcl/websh/trunk/CHANGES
tcl/websh/trunk/src/ChangeLog
tcl/websh/trunk/src/unix/Makefile.in
tcl/websh/trunk/src/unix/configure.in
Modified: tcl/websh/trunk/CHANGES
URL: http://svn.apache.org/viewvc/tcl/websh/trunk/CHANGES?rev=1170381&r1=1170380&r2=1170381&view=diff
==============================================================================
--- tcl/websh/trunk/CHANGES (original)
+++ tcl/websh/trunk/CHANGES Tue Sep 13 23:04:58 2011
@@ -19,6 +19,9 @@ Known Issues
Trunk
-----
+- Added --with-apr and --with-apu to allow more flexible configuration
+ with configure
+
- Fixed Web_InterpCfg_AP and Web_InterpClassCfg_AP in modwebsh_ap.c
(potential segfault for invalid parameters)
Modified: tcl/websh/trunk/src/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/websh/trunk/src/ChangeLog?rev=1170381&r1=1170380&r2=1170381&view=diff
==============================================================================
--- tcl/websh/trunk/src/ChangeLog (original)
+++ tcl/websh/trunk/src/ChangeLog Tue Sep 13 23:04:58 2011
@@ -1,3 +1,9 @@
+2011-09-13 Brunner Ronnie <ro...@netcetera.ch>
+ * src/unix/configure.in, src/unix/Makefile.in:
+ - added --with-apr and --with-apu to allow more flexibility
+ with configure (e.g. to compile w/o manual tweaking for
+ paths under OSX Lion)
+
2011-08-15 Brunner Ronnie <ro...@netcetera.ch>
* src/generic/modwebsh_ap.c:
- fixed Web_InterpCfg_AP and Web_InterpClassCfg_AP: NULL terminate
Modified: tcl/websh/trunk/src/unix/Makefile.in
URL: http://svn.apache.org/viewvc/tcl/websh/trunk/src/unix/Makefile.in?rev=1170381&r1=1170380&r2=1170381&view=diff
==============================================================================
--- tcl/websh/trunk/src/unix/Makefile.in (original)
+++ tcl/websh/trunk/src/unix/Makefile.in Tue Sep 13 23:04:58 2011
@@ -116,6 +116,7 @@ endif
SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
STLIB_LD = @STLIB_LD@
+APRU_LIBS = @APR_LIB@@APU_LIB@
TCL_BIN_DIR = @TCL_BIN_DIR@
TCL_DEFS = @TCL_DEFS@
TCL_EXTRA_CFLAGS = @TCL_EXTRA_CFLAGS@
@@ -276,10 +277,11 @@ websh$(VERSION): tclAppInit.$(OBJEXT) $(
mod_websh$(MODULE_LIB_SUFFIX): $(web_OBJECTS_ap) $(web_LIB_FILE)
$(SHLIB_LD_CURRENT) -o mod_websh$(MODULE_LIB_SUFFIX) \
- $(web_OBJECTS_ap) $(web_LIB_FILE) $(TCL_LIB_SPEC) $(TCL_STUB_LIB_SPEC)
+ $(web_OBJECTS_ap) $(web_LIB_FILE) $(APRU_LIBS) \
+ $(TCL_LIB_SPEC) $(TCL_STUB_LIB_SPEC)
mod_websh$(UNSHARED_LIB_SUFFIX): $(web_OBJECTS_ap) $(web_OBJECTS)
- $(STLIB_LD) $(TCL_LD_FLAGS) -o mod_websh$(UNSHARED_LIB_SUFFIX) \
+ $(STLIB_LD) mod_websh$(UNSHARED_LIB_SUFFIX) \
$(web_OBJECTS_ap) $(web_OBJECTS)
pure: websh$(VERSION).pure
Modified: tcl/websh/trunk/src/unix/configure.in
URL: http://svn.apache.org/viewvc/tcl/websh/trunk/src/unix/configure.in?rev=1170381&r1=1170380&r2=1170381&view=diff
==============================================================================
--- tcl/websh/trunk/src/unix/configure.in (original)
+++ tcl/websh/trunk/src/unix/configure.in Tue Sep 13 23:04:58 2011
@@ -192,7 +192,7 @@ AC_SUBST(HTTPD_BIN)
# --with-apr and --with-apr-util
#--------------------------------------------------------------------
# needed for Apache httpd 2.2.4 (and others) if Apache httpd is configured
-# with --with-apr and/or --with-apr-util -> header files are missing in
+# with --with-apr and/or --with-apu -> header files are missing in
# installation of httpd
AC_ARG_WITH(aprinclude, [ --with-aprinclude directory containing apr header files.], with_aprinclude=${withval}, with_aprinclude=NA)
@@ -227,6 +227,44 @@ else
AC_SUBST(APU_INCLUDES)
fi
+if test "`uname -s`" = "Darwin" ; then
+ shlibext=dylib
+else
+ shlibext=so
+fi
+
+AC_ARG_WITH(apr, [ --with-apr directory containing apr library.], with_apr=${withval}, with_apr=NA)
+
+if test x"${with_apr}" != xNA ; then
+ AC_MSG_CHECKING(for apache runtime (apr) library)
+ if test -f "${with_apr}/libapr-1.${shlibext}" ; then
+ echo "found ${with_apr}"
+ APR_LIB=" -L\"${with_apr}\" -lapr-1"
+ AC_SUBST(APR_LIB)
+ else
+ AC_MSG_ERROR([${with_apr}: directory does not contain apr library libapr-1.${shlibext}])
+ fi
+else
+ APR_LIB=
+ AC_SUBST(APR_LIB)
+fi
+
+AC_ARG_WITH(apu, [ --with-apu directory containing apr util library.], with_apu=${withval}, with_apu=NA)
+
+if test x"${with_apu}" != xNA ; then
+ AC_MSG_CHECKING(for apache runtime utils (apu) library)
+ if test -f "${with_apu}/libaprutil-1.${shlibext}" ; then
+ echo "found ${with_apu}"
+ APU_LIB=" -L\"${with_apu}\" -laprutil-1"
+ AC_SUBST(APU_LIB)
+ else
+ AC_MSG_ERROR([${with_apu}: directory does not contain apu library libaprutil-1.${shlibext}])
+ fi
+else
+ APU_LIB=
+ AC_SUBST(APU_LIB)
+fi
+
#--------------------------------------------------------------------
# A few miscellaneous platform-specific items:
#
---------------------------------------------------------------------
To unsubscribe, e-mail: websh-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-cvs-help@tcl.apache.org