Skip to content

Commit

Permalink
Add macro file for configure time developer mode flag
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Apr 6, 2024
1 parent 95526e6 commit 16530f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build-aux/que_developer_mode.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Like AM_MAINTAINER_MODE, but doesn't touch automake internals and so
# can be used freely to control access to project specific developer
# tooling without breaking autotools if disabled.
AC_DEFUN([QUE_DEVELOPER_MODE], [
m4_case(m4_default([$1], [disable]),
[enable], [m4_define([_que_developer_def], [disable])],
[disable], [m4_define([_que_developer_def], [enable])],
[m4_define([_que_developer_def], [enable])
m4_warn([syntax], [unexpected argument to AM@&t@_DEVELOPER_MODE: $1])])
AC_MSG_CHECKING([whether to enable developer-specific portions of Makefiles])
AC_ARG_ENABLE([developer-mode],
[AS_HELP_STRING([--]_que_developer_def[-developer-mode],
_que_developer_def[ dependencies and make targets only useful for developers])],
[USE_DEVELOPER_MODE=$enableval],
[USE_DEVELOPER_MODE=]m4_if(_que_developer_def, [enable], [no], [yes]))
AC_MSG_RESULT([$USE_DEVELOPER_MODE])
AM_CONDITIONAL([DEVELOPER_MODE], [test $USE_DEVELOPER_MODE = yes])
])

0 comments on commit 16530f7

Please sign in to comment.