mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Fix passing through CFLAGS/CPPFLAGS/CXXFLAGS when using --enable-debug
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
This commit is contained in:
parent
d15e881ea0
commit
cbbb1e925d
12
acinclude.m4
12
acinclude.m4
@ -302,14 +302,14 @@ AC_DEFUN([AC_ZMQ_CHECK_ENABLE_DEBUG], [{
|
||||
CXXFLAGS="-g0 "
|
||||
fi
|
||||
|
||||
if test "x$LOCAL_CFLAGS" != "xnone"; then
|
||||
CFLAGS="${CFLAGS} ${LOCAL_CFLAGS}"
|
||||
if test "x$ZMQ_ORIG_CFLAGS" != "xnone"; then
|
||||
CFLAGS="${CFLAGS} ${ZMQ_ORIG_CFLAGS}"
|
||||
fi
|
||||
if test "x$LOCAL_CPPFLAGS" != "xnone"; then
|
||||
CPPFLAGS="${CPPFLAGS} ${LOCAL_CPPFLAGS}"
|
||||
if test "x$ZMQ_ORIG_CPPFLAGS" != "xnone"; then
|
||||
CPPFLAGS="${CPPFLAGS} ${ZMQ_ORIG_CPPFLAGS}"
|
||||
fi
|
||||
if test "x$LOCAL_CXXFLAGS" != "xnone"; then
|
||||
CXXFLAGS="${CXXFLAGS} ${LOCAL_CXXFLAGS}"
|
||||
if test "x$ZMQ_ORIG_CXXFLAGS" != "xnone"; then
|
||||
CXXFLAGS="${CXXFLAGS} ${ZMQ_ORIG_CXXFLAGS}"
|
||||
fi
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
|
@ -31,6 +31,11 @@ AC_SUBST(PACKAGE_VERSION)
|
||||
LTVER="1:0:0"
|
||||
AC_SUBST(LTVER)
|
||||
|
||||
# Take a copy of original flags
|
||||
ZMQ_ORIG_CFLAGS="${CFLAGS:-none}"
|
||||
ZMQ_ORIG_CPPFLAGS="${CPPFLAGS:-none}"
|
||||
ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}"
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CC_C99
|
||||
|
Loading…
Reference in New Issue
Block a user