bug-autoconf
[Top][All Lists]
Advanced

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

Re: OBJEXT not set if AC_PROG_CC is in a conditional


From: Akim Demaille
Subject: Re: OBJEXT not set if AC_PROG_CC is in a conditional
Date: 15 Oct 2001 18:14:07 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

>>>>> "Bradley" == Bradley Baetz <address@hidden> writes:

Bradley> Using autoconf-2.52d, the following configure.in file doesn't
Bradley> work: AC_INIT

Bradley> if test -z "$USE_SECOND"; then AC_PROG_CC else AC_PROG_CC fi

Bradley> ./configure works, but USE_SECOND=1 ./configure will fail,
Bradley> because OBJEXT and EXEEXT are never tested, and so testing
Bradley> that a file exists does:

That's correct, using conditional checking with Autoconf is a very bad
idea.  You should never do that.  Always check, and perform
conditional actions, but don't make conditional checks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]