[Ltrace-devel] Compilation error with dwarf code

Petr Machata pmachata at redhat.com
Tue May 13 13:33:43 UTC 2014


Dima Kogan <lists at dima.secretsauce.net> writes:

> Petr Machata <pmachata at redhat.com> writes:
>
>> Regarding this:
>>
>> +AM_CONDITIONAL(HAVE_LIBDW, test x"$enable_elfutils" = xyes)
>>
>> I already see the following in configure.ac:
>>
>> if test x"$enable_elfutils" = xyes; then
>>   libdw_LIBS=-ldw
>>   AC_SUBST(libdw_LIBS)
>>   AC_DEFINE([HAVE_LIBDW], [1], [we have elfutils libdw])
>> fi
>>
>> Which does the same.
>
> It does the same, but apparently autoconf is separate from automake. So
> without that extra AM_CONDITIONAL line you can't put in that extra logic
> in Makefile.am. You'll see that if you try.

Oh, I see.  OK then, what can we do.  I'll take the patch as is.

Thanks,
PM



More information about the Ltrace-devel mailing list