summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/Makefile.am5
-rw-r--r--server/build_macros.m46
2 files changed, 11 insertions, 0 deletions
diff --git a/server/Makefile.am b/server/Makefile.am
index acf060c6c..b70be9380 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 5ddcc3c56..37d964392 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])