[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PATH_PROG bug?
From: |
Andreas Schwab |
Subject: |
Re: AC_PATH_PROG bug? |
Date: |
Wed, 31 Jul 2002 10:49:51 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) |
Travis Shirk <address@hidden> writes:
|> Hello,
|>
|> I'm writing a function to find python2, and I did not get far before
|> noticing this:
|>
|> creating cache ./config.cache
|> checking for python2... /usr/bin/python2
|> checking for python... (cached) /usr/bin/python2
|> updating cache ./config.cache
|>
|> Here's the function:
|>
|> AC_DEFUN([ACX_CHECK_PYTHON2], [
|> PYTHON=""
|> for p in python2 python; do
|> AC_PATH_PROG([PYTHON], [${p}])
|> done
|> ])
|>
|> So, why is the first discovery of python2 getting the cache result for the
|> check for python.
Because the cache value is keyed on the first parameter of AC_PATH_PROG.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."