[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ports/94043: [bsd.autotools.mk] aclocal can't find libtool macros



>Number:         94043
>Category:       ports
>Synopsis:       [bsd.autotools.mk] aclocal can't find libtool macros
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 03 06:40:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Frolov
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
RISS-Telecom
>Environment:
System: FreeBSD nerve.riss-telecom.ru 5.3-BETA7 FreeBSD 5.3-BETA7 #18: Wed Jun 8 15:55:56 NOVST 2005 root_(_at_)_*****_(_dot_)_riss-telecom_(_dot_)_ru:/var/obj/usr/src/sys/NERVE i386


	
>Description:

aclocal from devel/automake19 fails to find libtool macros if
both aclocal and libtool used in port's Makefile.  That's because
aclocal searches for macros (according to bsd.autotools.mk) in
${LOCALBASE}/share/aclocal${AUTOMAKE_VERSION} dir but devel/libtool*
ports install their aclocal macros into ${LOCALBASE}/share/aclocal dir.

>How-To-Repeat:

frol_(_at_)_nerve ttypa:~/ports/sysutils/ipmitool$grep AUTO Makefile
USE_AUTOTOOLS=  autoconf:259 libtool:15 aclocal:19 automake:19

frol_(_at_)_nerve ttypa:~/ports/sysutils/ipmitool$make configure
===>  Vulnerability check disabled, database not found
===>  Extracting for ipmitool-1.8.6_1
[...]
===>  Configuring for ipmitool-1.8.6_1
aclocal:configure.in:38: warning: macro `AM_PROG_LIBTOOL' not found in library
configure.in:38: error: possibly undefined macro: AM_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
*** Error code 1

>Fix:

One of the possible fixes (patch against bsd.autotools.mk rev 1.23):

--- /usr/ports/Mk/bsd.autotools.mk	Sat Feb 25 01:25:03 2006
+++ bsd.autotools.mk	Fri Mar  3 12:21:59 2006
@@ -122,7 +122,7 @@
 . endif
 
 . if defined(AUTOTOOL_aclocal)
-ACLOCAL_ARGS?=		--acdir=${ACLOCAL_DIR}
+ACLOCAL_ARGS?=		--acdir=${ACLOCAL_DIR} ${ACLOCAL_INC}
 . endif
 
 .endif
@@ -198,7 +198,8 @@
 LIBTOOLIZE=			${LOCALBASE}/bin/libtoolize
 LIBTOOL_LIBEXECDIR=	${LOCALBASE}/libexec/libtool
 LIBTOOL_SHAREDIR=	${LOCALBASE}/share/libtool
-LIBTOOL_M4=			${LOCALBASE}/share/aclocal/libtool.m4
+LIBTOOL_ACLOCALDIR=	${LOCALBASE}/share/aclocal
+LIBTOOL_M4=			${LIBTOOL_ACLOCALDIR}/libtool.m4
 LTMAIN=				${LIBTOOL_SHAREDIR}/ltmain.sh
 LIBTOOL_VARS=		LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} LIBTOOL_M4=${LIBTOOL_M4}
 
@@ -206,6 +207,9 @@
 BUILD_DEPENDS+=		${LIBTOOL_DEPENDS}
 
 LIBTOOLFLAGS?=		# default to empty
+
+# Add libtool macros dir to the list of aclocal dirs
+ACLOCAL_INC+=	-I ${LIBTOOL_ACLOCALDIR}
 
 . if defined(AUTOTOOL_autoconf)
 LIBTOOLFILES?=		aclocal.m4
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org