bug-automake
[Top][All Lists]
Advanced

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

AM_PATH_PYTHON


From: colliera
Subject: AM_PATH_PYTHON
Date: Fri, 22 Nov 2002 16:52:53 +0200
User-agent: Mutt/1.4i

hello,

i have been using AM_PATH_PYTHON but find the following a bit troublesome: the 
definition of PYTHON_PREFIX in python.m4:


  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])

is problematic in that one cannot use the PYTHON_PREFIX elsewhere in the 
configure.in script (for example to indicate location of extra libraries in 
AC_CHECK_LIB) as the definition ${prefix} is not expanded.

would it not be better to define it as follows:

PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"`
AC_SUBST(PYTHON_PREFIX)

best regards,
andrew collier.



-- 
Andrew B. Collier               http://chinstrap.nu.ac.za/~colliera/

Antarctic Research Fellow                       tel: +27 31 2601157
Space Physics Research Institute                fax: +27 31 2616550
University of Natal, Durban, South Africa

Attachment: pgpPgaUaUfUH7.pgp
Description: PGP signature


reply via email to

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