Petr Machata <[email protected]> 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. This double-definition of
HAVE_LIBDW is what maybe you could avoid if you really knew how to use
automake/autoconf. I avoid them when I can, so I'm not an expert.

dima

_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to