diff options
-rw-r--r-- | server/Makefile.am | 5 | ||||
-rw-r--r-- | server/build_macros.m4 | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/server/Makefile.am b/server/Makefile.am index acf060c6..b70be938 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -13,6 +13,11 @@ pipepath = @pipepath@ initdir = @initdir@ shadow_utils_path = @shadow_utils_path@ +AM_CFLAGS = +if WANT_AUX_INFO + AM_CFLAGS += -aux-info $@.X +endif + REPLACE_CFLAGS = \ -I $(srcdir)/../replace REPLACE_LIBS = \ diff --git a/server/build_macros.m4 b/server/build_macros.m4 index 5ddcc3c5..37d96439 100644 --- a/server/build_macros.m4 +++ b/server/build_macros.m4 @@ -13,3 +13,9 @@ AC_DEFUN([BUILD_WITH_SHARED_BUILD_DIR], AC_SUBST(sharedbuilddir) ]) +AC_DEFUN([BUILD_WITH_AUX_INFO], + [ AC_ARG_WITH([aux-info], + [AC_HELP_STRING([--with-aux-info], + [Build with -aux-info output])]) + ]) +AM_CONDITIONAL([WANT_AUX_INFO], [test x$with_aux_info = xyes]) |