Mohammad Akhlaghi wrote: > > It is be possible to search libraries using AC_RUN_IFELSE instead of > > AC_LINK_IFELSE, and add -rpath options as needed. The AC_LIB_LINKFLAGS > > macro from gnulib does this. It appears that you used the stock Autoconf > > macro, which does not do this. > > You are right, so far we are just using `AC_SEARCH_LIBS'. Thank you very > much for this recommendation. I just defined it as a task [1]. We'll > look into it and hopefully implement it in Gnuastro soon.
Here's the relevant documentation: https://www.gnu.org/software/gnulib/manual/html_node/Searching-for-Libraries.html#Locating-Libraries Bruno