I have a library that I am developing the configuration and makefiles for using Autotools suite. The library requires an external library (specifically fftw3) on the system it is being compiled on and I want Autoconf/Automake to automatically find and link/include the external library before/when compiling (Either in configure.ac or Makefile.am).
I currently am just using autoconf "--with-" flags for the user to provide the location of both the library file and the include folder of the external library on their system, but this seems like such a hassle for the user. The library I am building the configure file and makefiles for will be deployed on various shared systems, so it's difficult to assume the necessary external library will always be in the same place.
What's the best way to approach this?