we're developing a software package that uses autotools (autoconf 2.69 and automake 1.13.3 to be precise). This package needs wxwidgets and this library provides its own m4 file to allow testing the installation of wxwidgets in the final installation system. wxwidgets has recently changed version from 2.8 to 3.0 and in this change they also changed the macro used to determine the availability (i.e. the macro changed from AM_PATH_WXCONFIG to WX_CONFIG_CHECK) as well as its parametrization. That also means that if we distribute the source code from our package and external developers want to rebuild the configure, then the configure.ac file should be aware of which of the two should be used.
So the question is: is there any chance for our package to check whether an m4 macro exists before executing it? If that's not possible, then should we include the m4 files from wxwidgets into our package?