[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
library used but `LIBTOOL' not defined in `configure.in
From: |
Allen Wayne Best |
Subject: |
library used but `LIBTOOL' not defined in `configure.in |
Date: |
Sun, 19 Aug 2001 10:52:44 -0700 |
hello:
pardon my coming in from the "Gread Unwashed" crowd; i am having a basic
failure to understand problem....<g>
i have been using "gnu autoconf, automake, and libtool" to try to understand
how to setup a project. i've make my bootstrap program, a configure.in, and a
subdirectory called lib (amoungst others). i have run libtoolize on the
project, copied in the m4 files, etc. the bootstrap program is:
--------------- start bootstrap --------------------
#!/bin/sh
set -x
aclocal -I config \
&& autoheader \
&& config/ltconfig --disable-static --with-gcc config/ltmain.sh
`config/config.guess` \
&& automake --gnu --add-missing --copy
autoconf
------------- end bootstrap -------------
in my configure.in, i've the relevant lines:
-------------- start configure.in --------------------
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acconfig.h)
AC_CONFIG_AUX_DIR(config)
dnl Initialize automake stuff
SYS_MAJOR_VERSION=0
SYS_MINOR_VERSION=0
SYS_MICRO_VERSION=0
SYS_INTERFACE_AGE=0
SYS_BINARY_AGE=0
SYS_VERSION=$SYS_MAJOR_VERSION.$SYS_MINOR_VERSION.$SYS_MICRO_VERSION
dnl libtool versioning
LT_RELEASE=$SYS_MAJOR_VERSION.$SYS_MINOR_VERSION
LT_CURRENT=`expr $SYS_MICRO_VERSION - $SYS_INTERFACE_AGE`
LT_REVISION=$SYS_INTERFACE_AGE
LT_AGE=`expr $SYS_BINARY_AGE - $SYS_INTERFACE_AGE`
PACKAGE=system
VERSION=$SYS_VERSION
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
test -f $top_builddir/configure && break
done
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
if ./libtool --features | grep '^enable static libraries$' > /dev/null 2>&1 ;
then
STATIC=-static
else
STATIC=
fi
AC_SUBST(STATIC)
AC_CHECK_LIBM
AC_SUBST(LIBM)
....
LIBSOURCES="foo.c bar.c"
LTLDFLAGS="-shared -release $SYSVERSION"
AC_MSG_RESULT([$LIBSOURCES])
AC_SUBST(LTLDFLAGS)
AC_SUBST(LIBSOURCES)
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
AC_SUBST(LTLIBOBJS)
LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'`
AC_SUBST(LTALLOCA)
SUBDIRS = "lib src po intl lib"
AC_SUBST(SUBDIRS)
AC_OUTPUT(po/Makefile doc/Makefile intl/Makefile doc/C/Makefile Makefile
doc/es/Makefile lib/Makefile src/Makefile pixmaps/Makefile)
------------------ end of configure.in---------------
the lib/Makefile.am is as follows:
-------------- start makefile.am ------------
## lib/Makefile.am - process this file with automake
EXTRA_DIST = acinclude.m4
INCLUDES = -I$(top_builddir) -I$(top_srcdir)
lib_LTLIBRARIES = libsyspci.la
libsyspci_la_SOURCES = @LIBSOURCES@
libsyspci_la_LIBADD = $(LIBM)
libsyspci_la_LDFLAGS = @LTLDFLAGS@
------------ end makefile.am -------------
when use bootstrap, it get the following message:
.....
+ automake --gnu --add-missing --copy
lib/Makefile.am:7: library used but `LIBTOOL' not defined in `configure.in'
...
if i "pretend" that i did not get the error and run ./configure, a
lib/Makefile is created with (amoungst other lines)
----------- lib/makefile snippet -----------
libsyspci.la: $(libsyspci_la_OBJECTS) $(libsyspci_la_DEPENDENCIES)
$(LINK) -rpath $(libdir) $(libsyspci_la_LDFLAGS)
$(libsyspci_la_OBJECTS)
$(libsyspci_la_LIBADD) $(LIBS)
--------- end lib/makefile snippet ----------
LINK is undefined in both lib/Makefile and ./Makefile.
Would someone point out the error(s) in my way???? i am deeply grateful for
any and all assist!
--
regards,
allen wayne best, esq
"your friendly neighborhood rambler owner"
"my rambler will go from 0 to 105"
Current date: 43:29:10::230:2001
Humor in the Court:
Q: Now, you have investigated other murders, have you not, where there was
a victim?
- library used but `LIBTOOL' not defined in `configure.in,
Allen Wayne Best <=