[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: if (...) then; AC_PROG_CC else AC_PROG_CC fi doesn't work?
From: |
Eric Blake |
Subject: |
Re: if (...) then; AC_PROG_CC else AC_PROG_CC fi doesn't work? |
Date: |
Wed, 24 Oct 2007 03:50:33 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Eric Blake <ebb9 <at> byu.net> writes:
> AC_ARG_ENABLE([foo], [AS_HELP_STRING([--enable-foo], [whatever foo does])],
> [echo "enabled"
> if test "x$CC" != xgcc ; then
> echo "uh-oh - gcc not detected"],
Obviously, with correct shell syntax (I left out the 'fi' in the above snippet;
needless to say I didn't actually try this example).
--
Eric Blake