summaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-05-22 00:26:30 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-05-22 00:26:30 +0200
commit8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a (patch)
tree4fbffa05b458e126b3a591a89461e1983b66ea09 /aclocal.m4
parent6c84554b671fce473fe333ab3d8b548a0768882b (diff)
downloadbird-8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a.tar
bird-8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a.zip
Better checks for M4 in configure.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 584173d..f3b8953 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -145,3 +145,16 @@ if test -z "$bird_cv_sys_linux_version" ; then
AC_MSG_ERROR([Cannot determine kernel version])
fi
])])
+
+# BIRD_CHECK_PROG_FLAVOR_GNU(PROGRAM-PATH, IF-SUCCESS, [IF-FAILURE])
+# copied autoconf internal _AC_PATH_PROG_FLAVOR_GNU
+m4_define([BIRD_CHECK_PROG_FLAVOR_GNU],
+[# Check for GNU $1
+case `"$1" --version 2>&1` in
+*GNU*)
+ $2;;
+m4_ifval([$3],
+[*)
+ $3;;
+])esac
+])#