gao-yan/pacemaker-mgmt

AM_PROG_MKDIR_P to be removed

Opened this issue · 16 comments

Hi,
I've got a problem with compiling the gui. During bootstrap, I get a message concerning aclocal:
aclocal-1.5
aclocal: macro `AM_PROG_MKDIR_P' required but not defined
Do you have an idea how to solve that? I tihnk it needs some patching in makefiles and configure files...

Update: I'm compiling on Scientific Linux 6.4

I think there should be a file like "mkdirp.m4" from automake package, but not?

From what I researched, the macro AM_PROG_MKDIR_P is deprecated in automake...

While some other auto tools in your system still reference it? Apparently, pacemaker-mgmt doesn't directly reference it.

or libtool?

What about po/Makefile.in.in line 104 and following?

Also, aclocal seems to be forced to version 1.5, but it says it supports this mkdir_p thing from aclocal 1.8 and higher...

I think po/Makefile.in.in:104 can be just replaced with "mkdir -p". While would that resolve the reference issue in the tool chain?

bootstrap:143 shows how aclocal is choosed - which is corresponding to the automake.

Already found that, but I don't understand why aclocal 1.5 gets chosen. I'll try replacing mkdir_p in po/Makefile.in.in

The replacing doesn't help, same error...

From what I see, mkdir_p is referenced in libtool

Guessed so. Actually, there's following in po/Makefile.in.in:42:

Automake >= 1.8 provides @mkdir_p@.

Until it can be supposed, use the safe fallback:

mkdir_p = $(install_sh) -d

Hmm, if libtool requires it, then you should use an automake version that provides it.

The problem is, I can't force it to use a different automake version, it sets itself back to aclocal 1.5 whatever I try. I have 1.11.1 installed...