summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-11-07 02:57:21 +0000
committerjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-11-07 02:57:21 +0000
commit6b63a19c57cbb67f2c63ce04cd690e204d87a29d (patch)
treecf9e58ba7f2a3ceb4479746b0bbc5cf5da4915d1
parent0737bc90dab3eb3125d7d01404b5aa6abbf41781 (diff)
downloadlibapr-util-6b63a19c57cbb67f2c63ce04cd690e204d87a29d.tar.gz
We weren't correctly detecting BSD/OS systems for Makefile conversion
because we were looking for "*bsdi*" in $host_alias; the problem is that APR-util's $host_alias is not a "real" $host_alias like the one in APR's configure script, but a dummied-up one generated from `uname -s`, which on BSD/OS returns "BSD/OS". So we weren't getting into that case and we were generating SYSV-style Makefiles even on BSD/OS. (I left the *bsdi* part in just for good measure, and also added an extra check for GNU make which I stole from APR.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58444 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CHANGES2
-rw-r--r--configure.in9
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index a734e850..e248eff9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
Changes with APR-util b1
+ *) Fix Makefile conversion for BSD/OS. [Cliff Woolley]
+
*) Use APR_XtOffsetOf instead of offsetof() in the ring macros for
portability. [Cliff Woolley]
diff --git a/configure.in b/configure.in
index 67e4524b..5ea3ee8f 100644
--- a/configure.in
+++ b/configure.in
@@ -89,8 +89,13 @@ dnl
dnl BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
dnl
case "$host_alias" in
-*bsdi*)
- INCLUDE_RULES=".include \"$top_builddir/../apr/build/rules.mk\""
+*bsdi* | BSD/OS)
+ # Check whether they've installed GNU make
+ if make --version > /dev/null 2>&1; then
+ INCLUDE_RULES="include $top_builddir/../apr/build/rules.mk"
+ else
+ INCLUDE_RULES=".include \"$top_builddir/../apr/build/rules.mk\""
+ fi
;;
*)
INCLUDE_RULES="include $top_builddir/../apr/build/rules.mk"