Hi all,
In: http://sources.redhat.com/automake/automake.html#Conditionals
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[debug=false])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
I have a couple of questions:
- is enableval always defined? It's the value given by the uer for the ARG?
- AM_CONDITIONAL has a x$debug and xtrue. What is this? A typo? Shouldn't it be:
AM_CONDITIONAL(DEBUG, test "$debug" = "true")
Cheers,
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group