[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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 03 06:40:06 GMT 2006
>Originator:     Dmitry Frolov
>Release:        FreeBSD 5.3-BETA7 i386
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


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.


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


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)
 . endif
@@ -198,7 +198,8 @@
 LIBTOOLIZE=			${LOCALBASE}/bin/libtoolize
-LIBTOOL_M4=			${LOCALBASE}/share/aclocal/libtool.m4
@@ -206,6 +207,9 @@
 LIBTOOLFLAGS?=		# default to empty
+# Add libtool macros dir to the list of aclocal dirs
 . if defined(AUTOTOOL_autoconf)
 LIBTOOLFILES?=		aclocal.m4
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"

Visit your host, monkey.org