From: Yves <yme...@pe...> - 2005-02-23 10:37:32
|
> The next is missing: > AM_CONDITIONAL([USE_SOURCE_NAGIOS], [ test "x${USE_SOURCE_NAGIOS}" =3D = "xyes" > ]) > AM_CONDITIONAL([USE_SOURCE_ASNMTAP], [ test "x${USE_SOURCE_ASNMTAP}" =3D > "xyes" ]) No, you don't need conditionnals. You only need AC_DEFINE_UNQUOTED to tell configure to write something in = config.h Then, in the file.c, you have #include <config.h> where USE_SOURCE_ASNMTA= P or USE_SOURCE_NAGIOS is defined. AM_CONDITIONAL is used to make tests in Makefile.am. If you don't make a = test in Makefile.am, don't use AM_CONDITIONAL. If you want to have a variable in MAkefile.am, use AC_SUBST :) Yves --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://www.perfparse.org/ - |