Solution to LIBTOOLisundefined [plain] configure. ac: 10: error: possiblyundefinedmacro: AC_PROG_LIBTOOLIfthistokenandothersarelegitimate, pleaseusem4_patte LIBTOOL is undefined solution [plain] configure. ac: 10: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. see the Autoconf documentation. + automake -- foreign -- copy -- add-missing-Woverride src/common/compress/Makefile. am: 9: Libtool library used but 'libtool' is undefined src/common/compress/Makefile. am: 9: The usual way to define 'libtool' is to add 'AC _ prog_libtool' src/common/compress/Makefile. am: 9: to 'configure. AC' and run 'aclocal' and 'autoconf' again. src/common/compress/Makefile. am: 9: If 'AC _ PROG_LIBTOOL 'is in 'configure. ac', make sure src/common/compress/Makefile. am: 9: its definition is in aclocal's search path. I also looked for this question for a long time. I finally saw two articles and recorded them: Viewpoint 1: Cause analysis aclocal is a scanning program responsible for scanning configure. all macros in the ac are defined and expanded. the above reason is that the LIBTOOL macro definition cannot be found. the reason is that aclocal and libtool are not installed in the same directory. aclocal searches for all aclocal files under the default installation directory/usr/share/aclocal. find the macro defined in the m4 file, but because multiple aclocal files are installed, the aclocal directory may not exist, and the actual directory is/usr/share/aclocal1.10, this causes aclocal to fail to find the m4 file. the solution is to rename the aclocal1.10 folder to aclocal. or the specified path aclocal-I/usr/share/aclocal1.10-I/usr/share/libtool/m4 -- install or copy all the files under/usr/share/libtool/m4. to/usr/share/aclocal1.10. opinion 2: There are two main reasons for this problem: 1. solution: install libtool2. the library LIBTOOL of aclocal is not correctly configured. m4 path solution: -- View aclocal path aclocal -- print-ac-dir -- if the corresponding *. if the m4 file is not in this directory, reconfigure the path or change the corresponding *. copy the m4 file to this path (aclocal-I DIR)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.