+2005-10-04 Helge Hess <helge.hess@skyrix.com>
+
+ * GNUmakefile: add APR include dirs if apr-config can be found (this is
+ for Apache2 only) (OGo bug #900)
+
2005-08-01 Helge Hess <helge.hess@skyrix.com>
* scanhttp.c, sns.c: fixed gcc 4.0 warnings
APACHE = /usr
APXS = $(APACHE)/sbin/apxs
+APR =
+# lowercase are commandline args (eg make apxs=/usr/bin/apxs)
ifneq ($(apxs),no)
ifneq ($(apxs),yes)
ifneq ($(apxs),)
APXS=
endif
+# lowercase are commandline args (eg make apr=/usr/bin/apr)
+ifneq ($(apr),no)
+ifneq ($(apr),yes)
+ifneq ($(apr),)
+APR=$(apr)
+else
+APR=$(shell which apr-config 2>/dev/null)
+endif
+else
+APR=$(shell which apr-config 2>/dev/null)
+endif
+else
+APR=
+endif
+
ifeq ($(APXS),)
APXS=$(shell which apxs2 2>/dev/null)
ifeq ($(APXS),)
endif
+ifneq ($(APR),)
+APR_INCLUDE_DIRS = -I$(shell $(APR) --includedir)
+endif
+
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)/Library/WOAdaptors/Apache
CC = gcc
LD = gcc
SHARED_LIBEXT = .so
-CFLAGS = -Wall -I. -fPIC $(APXS_CFLAGS) $(APXS_INCLUDE_DIRS)
+CFLAGS = -Wall -I. -fPIC \
+ $(APXS_CFLAGS) $(APXS_INCLUDE_DIRS) $(APR_INCLUDE_DIRS)
+
LDFLAGS = $(APXS_LDFLAGS) -shared -fPIC
# adaptor
rm -f *.o $(product) *.so *~
distclean :: clean
-
+
apache-dir :
$(MKDIRS) $(GNUSTEP_INSTALLATION_DIR)