Ivana Varekova wrote:
> 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 ":"
> 
> Signed-off-by: Ivana Varekova <[email protected]>

Nice cleanup!

Acked-by: Jan Safranek <[email protected]>

> ---
> 
>  configure.in |   11 ++++++++---
>  1 files changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/configure.in b/configure.in
> index e864fa5..398c5e3 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -30,11 +30,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
>  AC_PROG_LEX
> +if test "$LEX" != flex; then
> +     AC_MSG_ERROR([This program cannot be built unless flex is installed.])
> +fi
>  
>  # Checks for libraries.
>  # FIXME: Replace `main' with a function in `-lcgroup':
> 
> 
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to