summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/fhs.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/fhs.m4 b/m4/fhs.m4
index 803693e4..e550cc5a 100644
--- a/m4/fhs.m4
+++ b/m4/fhs.m4
@@ -42,6 +42,10 @@ AC_ARG_WITH(fhs-opt, [ --with-fhs-opt Use FHS optional layout],
],
AC_MSG_RESULT(no))
+if test "$with_fhs_opt" = "yes"; then
+ AC_DEFINE([IS_FHS_OPT], [1], [Use FHS optional layout])
+fi
+
if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
AC_MSG_ERROR([Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options.])
fi