I was trying to create a small test case for another
bug, when I ran into the following error:

Makefile.am:1: library used but `RANLIB' not defined in `configure.in'

Here are my files:

% cat configure.in 
AC_INIT(foo.cc)

AM_INIT_AUTOMAKE(foo, 1.0)

AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_PROG_CC

AC_OUTPUT([Makefile])

% cat Makefile.am
lib_LIBRARIES = libfoo.a

libfoo_a_SOURCES = \
foo.c
foo.cc

Am I just missing something obvious? If automake needs
to use RANLIB (when making lib_LIBRARIES) why would
it not include a AC_CHECK_TOOL for ranlib?

Mo DeJong
Red Hat Inc

Reply via email to