If the behavior is subject to change, there is no way you can test that at configure time. This needs to be a run time check.
You're right. So I put some code in configure.ac, try to compile & run it when configure is executed. If everything is OK, a macro will be defined in config.h.