[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AM_CONDITIONAL



I copied the follwing code from the automake info pages:

     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)

but when I start ./configure I get the follwing error:

	./configure: line 549: syntax error near unexpected token
`AM_CONDITIONAL(DEBUG,'
	./configure: line 549: `AM_CONDITIONAL(DEBUG, "test x$debug = xtrue")'

Why?

Thanks for any help, Karl.