bug-automake
[Top][All Lists]
Advanced

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

Problem with AM_CONDITIONAL


From: Santiago Capel Torres
Subject: Problem with AM_CONDITIONAL
Date: Mon, 21 Jan 2008 18:52:28 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20070914)

Hi, I have been studying deeply the GNU automake manual in order to use AM_CONDITIONAL and I have found that is is not useful for me in the following sense:

I define the AM_CONDITIONAL in 'configure.ac':

   CONF_HAVE_RTK=yes
   AM_CONDITIONAL( [COMPILE_WITH_RTK], [ test $CONF_HAVE_RTK == yes ])

and in the makefile.am:

   if COMPILE_WITH_RTK
       RTK_SUBDIR = gestiong-rtk
   endif
   SUBDIRS = gestiong-lib gestiong-gui-qt3 $(RTK_SUBDIR) gestiong-system \
       gestiong-contactos gestiong-contable gestiong-socias gestiong

Everything works fine, but the problem is that in the generated Makefile, there is a line almost at the bottom that says:

   RTK_SUBDIR = gestiong-rtk

but this line is BELOW the line that says

   SUBDIRS = gestiong-lib gestiong-gui-qt3 $(RTK_SUBDIR) gestiong-system \
       gestiong-contactos gestiong-contable gestiong-socias gestiong

in the same Makefile, so there is no substitution at all and my RTK_SUBDIR is never compiled.

To the best of my knoledge, the line RTK_SUBDIR = gestiong should have been generated at the beginning of the Makefile.


Is that an issue? Is there any workaround?


Thanks in advance,
-- santilin








reply via email to

[Prev in Thread] Current Thread [Next in Thread]