LLNL / lmt

Lustre Monitoring Tools
GNU General Public License v2.0
67 stars 21 forks source link

recursively eval in config/x_ac_expand_install_dirs.m4 #45

Closed ofaaland closed 4 years ago

ofaaland commented 4 years ago

${prefix} is left unexpanded in some path defines processed by config/x_ac_expand_install_dirs.m4. Some macros then include the literal string "${prefix}" in their values as reflected in config/config.h.

define X_DATADIR "${prefix}/share"

define X_INFODIR "${prefix}/share/info"

define X_MANDIR "${prefix}/share/man"

Add adl_RECURSIVE_EVAL() and use it to recursively evaluate the macros in config/x_ac_expand_install_dirs.m4.

Fixes #44

ofaaland commented 4 years ago

Hi @morrone @tonyhutter can you take a look at this? Thanks!

ofaaland commented 4 years ago

I'm going to recommend that you get current latest from the autoconf archive project (named AX_RECURSIVE_EVAL):

https://www.gnu.org/software/autoconf-archive/ax_recursive_eval.html http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_recursive_eval.m4

Good idea. Done.

ofaaland commented 4 years ago

Cherry-picked to master as b15d2bf