Problem Autoconf2.59 vs 2.65

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux