add a new AS_VAR_PREPEND helper to simplify prepending stuff to variables

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1913 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent d0fcb3eac2
commit bfbb4eb445

@ -1,3 +1,8 @@
2011-06-24 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Add a new AS_VAR_PREPEND helper.
* configure.ac: Use AS_VAR_PREPEND rather than touching the var directly.
2011-06-23 Mike Frysinger <vapier@gentoo.org>
* src/cmd/Makefile.am: Tweak dependencies so things work from a fresh

@ -139,6 +139,16 @@ AC_DEFUN([AC_PROG_SED],
])dnl
dnl AS_VAR_PREPEND
dnl -------------
dnl
dnl this isn't in autoconf (yet?)
dnl
m4_ifndef([AS_VAR_PREPEND],[dnl
AC_DEFUN([AS_VAR_PREPEND], [$1=$2${$1}])
])dnl
dnl AS_VAR_APPEND
dnl -------------
dnl

@ -344,7 +344,7 @@ AS_IF([test "x$enable_werror" = xyes], [
])
AC_SUBST(WARNINGCFLAGS)
CPPFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include $CPPFLAGS"
AS_VAR_PREPEND([CPPFLAGS], '-I$(top_srcdir) -I$(top_srcdir)/include ')
AC_ARG_ENABLE([apps],
[AS_HELP_STRING([--disable-apps],

Loading…
Cancel
Save