Laszlo (Laca) Peter wrote: > Can you not nest the if conditions? > > if HAVE_PAPI > if HAVE_CUPS > GTK_PRINT_BACKENDS=papi,cups,lpr > else > GTK_PRINT_BACKENDS=papi,lpr > endif > else > GTK_PRINT_BACKENDS=cups,lpr > endif > > or similar? >
Your suggestion is syntactically correct, but logically is slightly incomplete. That is, the final 'else' will always have to include cups which I don't think it is always correct with gtk+. For example, when try to build gtk+ on windows, that backend build will certain failed. If we do not include cups, that it fails on Linux. So that variable is inevitable. Thanks for the suggestion though, these automake stuff is really worth learning :) -Ghee > Laca > > On Fri, 2008-04-04 at 10:51 +0000, Ghee Teo wrote: > >> It is unfortunately it is not possible in this case, because >> autoconf >> does not allow logical condition of if (HAVE_PAPI && HAVE_CUPS) >> in the Makefile.am. Also the condition is to define a list of module >> name >> that must not consist of spaces, that is can't have >> GTK_PRINT_BACKENDS=papi, cups, lpr >> but must have >> GTK_PRINT_BACKENDS=papi,cups,lpr >> > >
