autoconf
[Top][All Lists]
Advanced

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

Re: AC_PATH_PROG bug?


From: Travis Shirk
Subject: Re: AC_PATH_PROG bug?
Date: Tue, 30 Jul 2002 17:01:53 -0600 (MDT)

On Tue, 30 Jul 2002, Peter Eisentraut wrote:

> Travis Shirk writes:
> 
> > AC_DEFUN([ACX_CHECK_PYTHON2], [
> >    PYTHON=""
> >    for p in python2 python; do
> >       AC_PATH_PROG([PYTHON], [${p}])
> >    done
> > ])
> 
> AC_PATH_PROGS(PYTHON, [python2 python])

Yea, I though of this already, but thanks.  It does work for now, but
ideally I'd like to check for python, verify that is 2.x, and only check
for python2 if the latter is acceptable.  Doing so will require a loop
like above.  And I'm also concerned with the whacko behavior that
AC_PATH_PROG demonstrates in my example.  Is this a bug?
I don't have 2.53 installed, so I'm not sure how it handles the example.

Thanks again!

Travis




reply via email to

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