Try to run
autoreconf --force --install ./configure make
in the root directory of your project.
If this does not work, try running make maintainer-clean , and then go to step 1.
If this still does not work, run make maintainer-clean , and then delete each generated file in the root directory of your project; including aclocal.m4 , any m4 directory, any autom4te.cache directory, configure , Makefile.in , config.h , config.h.in , config.status , libtool , ltmain.sh , etc. Then go to step 1.
Why it works: libtool and aclocal.m4 are both files that are generated by your build system. If they are not synchronized (generated by different versions of the build tools), you will get this error. Usually this should not happen, but an example of something that might cause this is that you are checking the generated files for the original control.
What is this solution is to delete and restore all auto-generated files. Once they are erased and restored, they can no longer sync.
ptomato Jul 08 2018-10-10T00: 00Z
source share