[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem Autoconf2.59 vs 2.65
From: |
pellegrini |
Subject: |
Problem Autoconf2.59 vs 2.65 |
Date: |
Thu, 17 Jun 2010 12:01:30 +0200 |
User-agent: |
Thunderbird 2.0.0.9 (Windows/20071031) |
Hello everybody,
I found a long time ago an useful macro called AX_CHECK_HEADER that
could check the occurence of a given header file into a set of target
directories (a kind of generalization of AC_CHECK_HEADER). For whatever
reasons,
I can not retrieve any trace of that macro on the web ...
When runnning it with AC 2.59, it used to work but now with AC 2.65 I
got the following error message:
configure.in:83: error: AC_SUBST: `HAVE_${header}' is not a valid shell
variable name
aclocal.m4:576: AX_CHECK_HEADER is expanded from...
configure.in:83: the top level
Here is the contents of the macro:
AC_DEFUN([AX_CHECK_HEADER],[
header=m4_toupper(AS_TR_SH($1))
eval HAVE_${header}="no"
for dir in $2; do
AC_CHECK_HEADER($dir/$1, [got="yes"], [got="no"])
if test "${got}" = "yes"; then
eval HAVE_${header}=$dir
break
else
eval HAVE_${header}="no"
fi
done
AC_SUBST(HAVE_${header})
])
I read that AC 2.65 have introduced some unavoidable backwards
uncompatibilities for sanity but when trying the solution proposed (at
least the few ones I could understand ...), it still failed. Any idea ?
I also got the same kind of problem with all the AZ_PYTHON_* macros.
Thanks a lot
Eric
- Problem Autoconf2.59 vs 2.65,
pellegrini <=