summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 22:12:29 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 22:12:29 +0000
commit5b77d2068a4f8cc93eace20ea70339f8aaa0a158 (patch)
tree0530a895409409c72639b1e560575c5934281767 /m4
parentcf5ba612bb34ddde3ee4c8746f72725982847a9b (diff)
efl: helper macro and remove duplicated defines.
AC_CHECK_HEADERS() will already define HAVE_STDINT_H and HAVE_INTTYPES_H. SVN revision: 77834
Diffstat (limited to '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 0000000..961ca64
--- /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])