diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-10 13:14:48 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 10:28:15 +0900 |
| commit | 428cd73fdc83ca90d0da4dd47e67efad49be82aa (patch) | |
| tree | 1edfc3a9757a294c2653a21e7e0e3e0b9892da45 | |
| parent | 095f8fae6476a1a184eafd7ed4c115324b131d99 (diff) | |
build: fix some minor autoconf & automake breakage
- use AS_HELP_STRING in configure.ac
- don't define HAVE_SETNS twice
- remove unused AM_LDFLAGS
- AC_PROG_RANLIB is automatically called by LT_INIT
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | Makefile.am | 1 | ||||
| -rwxr-xr-x | configure.ac | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index d19df6f3b6..19ec8d0c8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,4 +26,3 @@ clean-local: endif ACLOCAL_AMFLAGS = -I m4 -ACLOCAL_LDFLAGS = -ljson diff --git a/configure.ac b/configure.ac index 4a60782d27..61b50d779e 100755 --- a/configure.ac +++ b/configure.ac @@ -53,7 +53,7 @@ dnl ------------ dnl Check CFLAGS dnl ------------ AC_ARG_WITH(cflags, -[ --with-cflags Set CFLAGS for use in compilation.]) + AS_HELP_STRING([--with-cflags], [Set CFLAGS for use in compilation.])) if test "x$with_cflags" != "x" ; then CFLAGS="$with_cflags" ; cflags_specified=yes ; elif test -n "$CFLAGS" ; then @@ -61,7 +61,7 @@ elif test -n "$CFLAGS" ; then fi AC_ARG_ENABLE(tcmalloc, -[ --enable-tcmalloc Turn on tcmalloc], + AS_HELP_STRING([--enable-tcmalloc], [Turn on tcmalloc]), [case "${enableval}" in yes) tcmalloc_enabled=true LIBS="$LIBS -ltcmalloc_minimal" @@ -78,7 +78,6 @@ AC_LANG([C]) AC_PROG_CC AC_PROG_CPP AM_PROG_CC_C_O -AC_PROG_RANLIB AC_PROG_EGREP AC_PROG_CC_C99 @@ -912,7 +911,7 @@ AC_CHECK_HEADER([asm-generic/unistd.h], AC_DEFINE(HAVE_NETNS,, Have netns),, QUAGGA_INCLUDES [#include <asm-generic/unistd.h> ]) - AC_CHECK_FUNCS(setns, AC_DEFINE(HAVE_SETNS,, Have setns))] + AC_CHECK_FUNCS(setns)] ) dnl ------------------------------------ |
