automake
[Top][All Lists]
Advanced

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

tests & graceful tool dependencies


From: Derek R. Price
Subject: tests & graceful tool dependencies
Date: Thu, 22 Feb 2001 13:29:32 -0500

>From tests/defs:


     # User can set which tools from Autoconf to use.
     test -z "$AUTOCONF" && AUTOCONF=autoconf
     if ($AUTOCONF --version) >/dev/null 2>&1; then
       has_autoconf=:
       needs_autoconf=:
     else
       has_autoconf=false
       needs_autoconf='exit 77'
     fi

What's preventing you from removing the needs_autoconf variable entirely
and assigning something like

    AUTOCONF='exit 77 &&'

in the case that autoconf is missing or broken?  It removes a step and
becomes transparent when a test doesn't want to test $has_autoconf.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
I will not burp in class.
I will not burp in class.
I will not burp in class...

          - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

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