summaryrefslogtreecommitdiff
path: root/m4/ac_define_if.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ac_define_if.m4')
-rw-r--r--m4/ac_define_if.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/ac_define_if.m4 b/m4/ac_define_if.m4
new file mode 100644
index 0000000000..961ca64452
--- /dev/null
+++ b/m4/ac_define_if.m4
@@ -0,0 +1,7 @@
1dnl use: AC_DEFINE_IF(id, testcond, val, comment)
2AC_DEFUN([AC_DEFINE_IF],
3[
4if $2; then
5 AC_DEFINE($1, $3, $4)
6fi
7])