Skip to content

Commit

Permalink
build: add AC_PROG_LIBTOOL to configure.ac
Browse files Browse the repository at this point in the history
It should fix the following build error with old autoconf/automake
versions:

    Makefile.am:24: Libtool library used but `LIBTOOL' is undefined
    Makefile.am:24: The usual way to define `LIBTOOL' is to add
    `AC_PROG_LIBTOOL'
    Makefile.am:24: to `configure.ac' and run `aclocal' and `autoconf'
    again.

Fixes: libuv#111
PR-URL: libuv#113
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
  • Loading branch information
bnoordhuis committed Jan 5, 2015
1 parent 0ac26d3 commit 43e256a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -27,6 +27,8 @@ AM_PROG_CC_C_O
CC_CHECK_CFLAGS_APPEND([-Wno-dollar-in-identifier-extension])
# AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR.
AC_PROG_LIBTOOL
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
LT_INIT
# TODO(bnoordhuis) Check for -pthread vs. -pthreads
Expand Down

0 comments on commit 43e256a

Please sign in to comment.