On Thu, Feb 17, 2000 at 02:12:19PM +0100, Akim Demaille wrote:
: It'd be much easier if you could send what you have, and how it fails.

Well, since I figured out the problem but didn't know how to implement
"compile-time" autoconf macros, I don't really have anything that fails...
I'm reading up on m4 at the moment, and will hopefully be able to implement
it afterwards.

Before I saw the order of things I thought I could do something like this:

AC_DEFUN(SIM_CHECK_COIN,[
AC_PREREQ([2.14.1])

dnl set up default attributes
default=yes

for attribute in dummy $3; do
  case $attribute in
    dummy)      ;;
    default)    default=yes ;;
    nodefault)  default=no ;;
    *)          AC_MSG_ERROR(invalid attribute \"$attribute\" for `SIM_CHECK_COIN') ;;
  esac
done

AC_ARG_WITH(coin, AC_HELP_STRING([--with-coin=DIR], [set the prefix directory wh
ere Coin resides [default=$default]]), , [with_coin=$default])

[...]

then I would be able to use something like this when libCoin was a non-default
option:

SIM_CHECK_COIN( , , nodefault)

  Lars J

Reply via email to