diff options
author | Ivana Varekova <varekova@redhat.com> | 2009-05-22 13:11:04 +0200 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-05-23 21:17:42 +0530 |
commit | 8315b5b9fb612d995d843361dbc58b3dd99bf1b2 (patch) | |
tree | d51db1e18ea07e00ce975ebc28114552325bc7d6 | |
parent | 0241c6f1df5068c006f756005c8e7faa63058c27 (diff) | |
download | libcg-8315b5b9fb612d995d843361dbc58b3dd99bf1b2.tar.gz libcg-8315b5b9fb612d995d843361dbc58b3dd99bf1b2.tar.xz libcg-8315b5b9fb612d995d843361dbc58b3dd99bf1b2.zip |
configure.in problem with byacc and flex
fix the problem - can be applied now :)
configure.in file wrongly handles YACC and LEX variables so ./configure
exit succesfully, but make fails.
The problems are:
* it enables configuration even if no yacc is installed (it is necessary
for make) - YACC is set to byacc in this case
* the configure.in enables configuration if no lex is installed (it is
again necessary for succesfull make) - in this case YAC is set to ":" i
Signed-off-by: Ivana Varekova <varekova@redhat.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
-rw-r--r-- | configure.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 8271cd1..04afe31 100644 --- a/configure.in +++ b/configure.in @@ -41,11 +41,16 @@ AC_ARG_ENABLE([debug], AC_PROG_CXX AC_PROG_CC AC_PROG_YACC -if test "$YACC" != byacc; then - YACC="$SHELL $missing_dir/missing byacc" - AC_SUBST(YACC, "byacc") +if test "$YACC" = yacc; then + AC_CHECK_PROG([REALLY_YACC], [yacc], [yacc]) + if test "$REALLY_YACC" = ""; then + AC_MSG_ERROR([This program cannot be built unless a version of yacc is installed.]) + fi fi AM_PROG_LEX +if test "$LEX" != flex; then + AC_MSG_ERROR([This program cannot be built unless flex is installed.]) +fi AC_PROG_LIBTOOL # Checks for header files. |