mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
CFLAGS/CPPFLAGS/LDFLAGS -> AM_*, requested by Dilyan Palauzov.
This commit is contained in:
@ -51,8 +51,8 @@ AC_ARG_ENABLE(
|
||||
AC_HELP_STRING(--enable-static, create a static build)
|
||||
)
|
||||
if test "x$enable_static" = xyes; then
|
||||
LDFLAGS="$LDFLAGS -static"
|
||||
test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
|
||||
AM_LDFLAGS="-static"
|
||||
fi
|
||||
|
||||
# Is this gcc?
|
||||
@ -129,7 +129,7 @@ PKG_CHECK_MODULES(
|
||||
LIBEVENT,
|
||||
libevent,
|
||||
[
|
||||
CPPFLAGS="$LIBEVENT_CFLAGS $CPPFLAGS"
|
||||
AM_CFLAGS="$LIBEVENT_CFLAGS $AM_CFLAGS"
|
||||
LIBS="$LIBEVENT_LIBS $LIBS"
|
||||
found_libevent=yes
|
||||
],
|
||||
@ -156,7 +156,7 @@ PKG_CHECK_MODULES(
|
||||
LIBNCURSES,
|
||||
ncurses,
|
||||
[
|
||||
CPPFLAGS="$LIBNCURSES_CFLAGS $CPPFLAGS"
|
||||
AM_CFLAGS="$LIBNCURSES_CFLAGS $AM_CFLAGS"
|
||||
LIBS="$LIBNCURSES_LIBS $LIBS"
|
||||
found_ncurses=yes
|
||||
],
|
||||
@ -646,4 +646,7 @@ AM_CONDITIONAL(IS_HPUX, test "x$PLATFORM" = xhpux)
|
||||
AM_CONDITIONAL(IS_UNKNOWN, test "x$PLATFORM" = xunknown)
|
||||
|
||||
# autoconf should create a Makefile.
|
||||
AC_SUBST(AM_CFLAGS)
|
||||
AC_SUBST(AM_CPPFLAGS)
|
||||
AC_SUBST(AM_LDFLAGS)
|
||||
AC_OUTPUT(Makefile)
|
||||
|
Reference in New Issue
Block a user