Conditionally including macros that require a newer autoconf version

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

 



Hi all,

please excuse my limited autoconf knowledge.

I want to add the AX_COMPILE_FLAGS macro to my projects in order to
produce better code. Unfortunately, this macro (more precise: it's
helpers) require at least autoconf 2.64. This is not available on a
number of platforms, Centos 6 is an example (2.61). I don't want to
prevent users from building my projects just because the
AX_COMPILE_FLAGS macro requires newer autoconf -- after all, this is
more or less a development aid.

I initially tried to disable it based on the autoconf version. But I
found out that the macro that obtains this version requires 2.62,
which I also do not have on many platforms. So I tried to add a
conditional switch to disable this macro:

https://github.com/rsyslog/liblognorm/pull/213/commits/61306142e0f4c972df820d161cc960db563afa53

Unfortunately, this does not work either. As it looks, autoreconf
already checks the macro dependencies, so this happens at a stage
before the switch can be used:

http://build.rsyslog.com:8010/builders/liblognorm%20centos6%20rsyslog/builds/83/steps/shell/logs/stdio

I wonder if there is any way to disable that macro, other than
manually removing and re-inserting it on a as-needed basis (which
really is not a good solution).

Any advise is deeply appreciated.
Rainer

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux