Fix a build error with automake 1.12 or newer.

Since automake 1.12, the warnings in the category 'extra-portability'
are now enabled by '-Wall'. Because of this change, linking libtool
archives requires the new AM_PROG_AR macro.
This commit is contained in:
Grischa Toedt 2012-07-07 22:54:42 +02:00 committed by Jef Driesen
parent 6423edffc8
commit 2f4a9abf88

View File

@ -20,6 +20,9 @@ AC_CONFIG_MACRO_DIR([m4])
# Initialize automake.
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Fix for automake >= 1.12
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# Initialize libtool.
LT_PREREQ([2.2.0])
LT_INIT([win32-dll])