On 16 May 2001 00:22:43 +0200, Ralf Corsepius wrote:
> Until now this package's configure.in has been using AC_EXEEXT alone
> (w/o AC_PROG_CC), now I seem to need adding AC_PROG_CC, but ..
> .. Adding AC_CANONICAL_HOST would give sense, but this also
> apparently isn't sufficient.
This does seem like the right thing to do though, as here the .exe is
not an important part of setting up compilation rules, but rather
something specific to the platform.
So you could use something like:
AC_CANONICAL_HOST
EXEEXT=
case "$host" in
i?86-*-cygwin*)
EXEEXT=.exe ;;
esac
AC_SUBST(EXEEXT)
Simply adding AC_EXEEXT would do no good; the only reason it's still
supported, is that automake relies on it to decide whether or not to
generate rules with @EXEEXT@.