summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2001-01-11 19:24:27 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2001-01-11 19:24:27 +0000
commit2fb79af960ed53a0ee7fa9fdd04d5d315c9b7ba5 (patch)
treed097cc1e180fd6f2598aa795a402d963820e7ca0
parentf6e14636dcb2f65204a9153d85bcede01225d4e5 (diff)
downloadlibapr-2fb79af960ed53a0ee7fa9fdd04d5d315c9b7ba5.tar.gz
Avoid re-adding values during each call.
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61052 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--hints.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/hints.m4 b/hints.m4
index 2413cd822..183d36fb7 100644
--- a/hints.m4
+++ b/hints.m4
@@ -8,9 +8,12 @@ dnl Generally, we force the setting of CC, and add flags
dnl to CFLAGS, LIBS and LDFLAGS.
dnl
AC_DEFUN(APR_PRELOAD, [
-echo "Applying hints file rules for $host"
+if test "$DID_APR_PRELOAD" != "yes" ; then
+ DID_APR_PRELOAD="yes"; export DID_APR_PRELOAD
-case "$host" in
+ echo "Applying APR hints file rules for $host"
+
+ case "$host" in
*mint)
APR_ADDTO(CFLAGS, [-DMINT])
APR_ADDTO(LIBS, [-lportlib -lsocket])
@@ -362,6 +365,7 @@ dnl ;;
APR_ADDTO(CFLAGS, [-DSIGPROCMASK_SETS_THREAD_MASK])
APR_ADDTO(CFLAGS, [-DTCP_NODELAY=1])
;;
-esac
-APR_DOEXTRA
+ esac
+ APR_DOEXTRA
+fi
])