Ralf Hemmecke wrote:
> In configure.ac, I find
> 
> AC_CHECK_PROGS([MAKE], [make], AC_MSG_ERROR([Make utility missing.])])
> 
> but have you looked at the resulting file "configure"? The code then 
> looks like
> 
> test -n "$MAKE" || MAKE="{ { echo "$as_me:$LINENO: error: Make utility 
> missing." >&5
> echo "$as_me: error: Make utility missing." >&2;}
>     { (exit 1); exit 1; }; }"
> 
> which doesn't look right to me. There is a double-quoted string inside a 
> double-quoted string. I am sure sh does not treat that correctly.
>

This really does not work in bash: if make is found the code
works, but if make is missing than I get error message from
shell about missing error:, and configure goes on ignoring the
error.  With bash the following works:

AC_CHECK_PROGS([MAKE], [make], [`AC_MSG_ERROR([Make utility missing.])`])
 
but the resulting code looks like:

... MAKE="`..."...."...`"

which is supposed to be nonportable.

> In GCC configure.ac they have something like...
> 
> MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
> AC_CHECK_PROGS([YACC], ['bison -y' byacc yacc], [$MISSING bison -y])
> 
> Shouldn't we do the same? You even have already included the script 
> "config/missing" into the repository.
> 

We want error message during configure.  "config/missing" will
produce error message only during build, when we try to use it.

It looks that we either should use [`AC_MSG_ERROR([...])`] and
live with non-portablity, or use something like:

        AC_CHECK_PROGS([MAKE], [make])
        test -n "$MAKE" || AC_MSG_ERROR([Make utility missing.])
        

Probably the best way would be to have our own macro which would
expand to the code above.

-- 
                              Waldek Hebisch
[EMAIL PROTECTED] 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel

Reply via email to