diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-05-22 00:26:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-05-22 00:26:30 +0200 |
commit | 8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a (patch) | |
tree | 4fbffa05b458e126b3a591a89461e1983b66ea09 /configure.in | |
parent | 6c84554b671fce473fe333ab3d8b548a0768882b (diff) |
Better checks for M4 in configure.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 542dd154..6ba79c39 100644 --- a/configure.in +++ b/configure.in @@ -14,6 +14,9 @@ AC_ARG_ENABLE(ipv6,[ --enable-ipv6 enable building of IPv6 version (d AC_ARG_WITH(sysconfig,[ --with-sysconfig=FILE use specified BIRD system configuration file]) AC_ARG_WITH(protocols,[ --with-protocols=LIST include specified routing protocols (default: all)],,[with_protocols="all"]) AC_ARG_WITH(sysinclude,[ --with-sysinclude=PATH search for system includes on specified place]) +AC_ARG_VAR([FLEX], [location of the Flex program]) +AC_ARG_VAR([BISON], [location of the Bison program]) +AC_ARG_VAR([M4], [location of the M4 program]) if test "$srcdir" = . ; then # Building in current directory => create obj directory holding all objects @@ -76,10 +79,12 @@ AC_PROG_INSTALL AC_PROG_RANLIB AC_CHECK_PROG(FLEX, flex, flex) AC_CHECK_PROG(BISON, bison, bison) -AC_CHECK_PROGS(M4, gm4 m4, m4) -if test -z "$FLEX" -o -z "$BISON" -o -z "$M4" ; then - AC_MSG_ERROR([Some tools required for building BIRD are missing.]) - fi +AC_CHECK_PROGS(M4, gm4 m4) + +test -z "$FLEX" && AC_MSG_ERROR([Flex is missing.]) +test -z "$BISON" && AC_MSG_ERROR([Bison is missing.]) +test -z "$M4" && AC_MSG_ERROR([M4 is missing.]) +BIRD_CHECK_PROG_FLAVOR_GNU([$M4], , [AC_MSG_ERROR([Provided M4 is not GNU M4.])]) if test -n "$with_sysconfig" -a "$with_sysconfig" != no ; then if test -f $with_sysconfig ; then |