Description: Fix FTBFS due to automake warnings treated as errors
Author: Gilles Filippini <pini@debian.org>
Bug-Debian: http://bugs.debian.org/713290
Index: libgarmin-0~svn320/configure.ac
===================================================================
--- libgarmin-0~svn320.orig/configure.ac	2013-07-13 17:23:16.000000000 +0000
+++ libgarmin-0~svn320/configure.ac	2013-07-13 17:26:47.000000000 +0000
@@ -7,6 +7,7 @@
 AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 # Checks for programs.
+AM_PROG_AR
 AC_PROG_CC
 if eval "test x$GCC = xyes"; then
         CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type"
Index: libgarmin-0~svn320/Makefile.inc
===================================================================
--- libgarmin-0~svn320.orig/Makefile.inc	2013-07-13 17:23:16.000000000 +0000
+++ libgarmin-0~svn320/Makefile.inc	2013-07-13 17:28:45.000000000 +0000
@@ -1,11 +1,12 @@
 pkgdocdir=$(pkgdatadir)/doc
+AM_CFLAGS =
 AM_CPPFLAGS =
 if !TARGET_WIN32CE
 #CFLAGS += -shared
 AM_CPPFLAGS += -fPIC
 endif
 if DEBUG
-CFLAGS += -g
+AM_CFLAGS += -g
 AM_CPPFLAGS += -DDEBUG
 endif
 
