Thanks, works like a charm. I thought this is developer responsibility to do this, and it isn't provided by automake, because AM_PROG_VALAC fails some time in this, but I was wrong. By the way, for enabling the --enable-vala option, I cahged the code, so here's the if statement: if USE_VALA GNOME_MPRIS_Applet_PACKAGES=@applet_PACKAGES@ GNOME_MPRIS_Applet_SOURCES = \ $(GNOME_MPRIS_Applet_VALASOURCES) VALAFLAGS= \ $(GNOME_MPRIS_Applet_PACKAGES) else GNOME_MPRIS_Applet_SOURCES = \ $(GNOME_MPRIS_Applet_VALABUILTSOURCES) endif Now both ./autogen.sh --enable-vala && make distcheck and ./autogen.sh --disable-vala && make distcheck work! (I shell really start reading docs carefully...) Thanks! > Subject: RE: distclean rule works well, but distcheck said it doesn't. > From: nicolai.stange@xxxxxxx > To: autoconf@xxxxxxx > Date: Mon, 15 Aug 2011 11:36:36 +0200 > > Hi Tal, > > I'm really not a Vala/automake expert, the information I got is from the > docs only. > > Am Montag, den 15.08.2011, 12:28 +0300 schrieb Tal Hadad: > > I do understand what you're saying, but that's what I really try to > > avoid. > > There is a really huge reason why not to do what you say, As I say > > earlier: > > > Also, you shell noticed than this scripts compile from vala language > > if compiler exist, otherwise it use C compiler. > > > (Vala compiles first to C, and then to binaries) > > > > This is almost a standard in vala written packages. So what happen if > > I use AM_PROG_VALAC([min_vala_vers])? > > If the user don't have this, it fails to compile, because it > > In the link I've given you in my last email, the following is stated: > "Any .vala file listed in a _SOURCES variable will be compiled into C > code by the Vala compiler. The generated .c files are distributed. The > end user does not need to have a Vala compiler installed." > > So, the end user doesn't need to have a working valac. Otherwise it > would be a bug in the docs that you should report. Did you try it once? > > Best > > Nicolai > > > _______________________________________________ > Autoconf mailing list > Autoconf@xxxxxxx > https://lists.gnu.org/mailman/listinfo/autoconf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf