dmtx-utils: fix for libtool>=2.4.6

This commit is contained in:
Jürgen Buchmüller 2015-10-25 21:05:16 +01:00
parent 2d3e588d3c
commit 4fd71940c2
2 changed files with 18 additions and 3 deletions

View file

@ -0,0 +1,13 @@
Remove check for getopt_long and not existing source
files common/getopt.c and common/getopt1.c
--- configure.ac 2015-10-25 20:55:07.635988008 +0100
+++ configure.ac 2015-10-25 20:56:18.683993130 +0100
@@ -20,7 +20,6 @@
AC_CHECK_HEADERS([sysexits.h])
AC_CHECK_HEADERS([getopt.h])
-AC_CHECK_FUNC([getopt_long], [], [ AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) ])
AC_ARG_ENABLE(
[dmtxquery],

View file

@ -1,7 +1,7 @@
# Template file for 'dmtx-utils'
pkgname=dmtx-utils
version=0.7.4
revision=3
revision=4
build_style=gnu-configure
maintainer="Dominik Honnef <dominik@honnef.co>"
hostmakedepends="automake libtool pkg-config"
@ -13,6 +13,8 @@ distfiles="$SOURCEFORGE_SITE/libdmtx/${pkgname}-${version}.tar.bz2"
checksum=9f510f6c26a2a73e44da28eae78308973cc274043873cc7f90606624066ec7d0
pre_configure() {
touch aclocal.m4
libtoolize -f
# Remove check for non-existent common/getopt{,1}.c
sed -i configure.ac \
-e "/AC_CHECK_FUNC(\[getopt_long\]/s;.*;);"
autoreconf -if
}