bug#74387: Cannot use Make conditionals

2025-02-23 Thread Karl Berry
Hi Maxim - I think so much depends on the details of a given project that I lack ideas for something to do in general. One possibility that occurs to me in your case is to turn your automake conditional into a make conditional, instead of mixing them. Another possibility might be to move the make

bug#74387: Cannot use Make conditionals

2024-11-24 Thread Maxim Cournoyer
Hi Zack, "Zack Weinberg" writes: > Automake conditionals were originally created because make > conditionals aren't portable. In principle, if you are willing to > require GNU make (or any other specific Make that has conditionals) > you shouldn't *need* Automake conditionals. > > Of course, thi

bug#74387: Cannot use Make conditionals

2024-11-20 Thread Maxim Cournoyer
Hi Karl, Karl Berry writes: > Hi Maxim - thanks for the report and doing the research to find that old > answer. Do you have any ideas for a better solution? I can't think of > one. We can't change Automake syntax now. Nor does it seem maintainble > for automake to have special knowledge of all

bug#74387: Cannot use Make conditionals

2024-11-19 Thread Zack Weinberg
Automake conditionals were originally created because make conditionals aren't portable. In principle, if you are willing to require GNU make (or any other specific Make that has conditionals) you shouldn't *need* Automake conditionals. Of course, things may not be that simple anymore. Can you p

bug#74387: Cannot use Make conditionals

2024-11-19 Thread Karl Berry
Hi Maxim, the Make conditionals would not work as I expected. Since Automake rearranges things quite a lot when generating the Makefile from Makefile.am, I'm not too surprised there can be problems. I could give it another look to see if I can distill some interesting points from t

bug#74387: Cannot use Make conditionals (was: Cannot nest Make conditionals inside Automake conditionals)

2024-11-17 Thread Karl Berry
Hi Maxim - thanks for the report and doing the research to find that old answer. Do you have any ideas for a better solution? I can't think of one. We can't change Automake syntax now. Nor does it seem maintainble for automake to have special knowledge of all of make's builtin conditionals and matc

bug#74387: Cannot use Make conditionals (was: Cannot nest Make conditionals inside Automake conditionals)

2024-11-16 Thread Maxim Cournoyer
Hi, The problem appears simpler than I first thought; it seems Automake is hard-coded to expect 'endif' to be matched with its own 'if'; causing parsing errors when attempting to use Make's conditional such as ifdef, ifeq, etc. that also end with 'endif'. This was reported 23 years ago here: htt