2018-03-23 10:27:32 +01:00
|
|
|
Index: configure.ac
|
|
|
|
===================================================================
|
2012-11-20 18:05:17 +01:00
|
|
|
--- configure.ac.orig
|
|
|
|
+++ configure.ac
|
2015-12-03 15:59:16 +01:00
|
|
|
@@ -22,9 +22,6 @@
|
2012-11-20 18:05:17 +01:00
|
|
|
AC_PREREQ(2.61)
|
2015-12-03 15:59:16 +01:00
|
|
|
AC_INIT([libmetalink], [0.1.3], [t-tujikawa@users.sourceforge.net])
|
|
|
|
|
2012-11-20 18:05:17 +01:00
|
|
|
-LT_PREREQ([2.2.6])
|
|
|
|
-LT_INIT()
|
2015-12-03 15:59:16 +01:00
|
|
|
-
|
2012-11-20 18:05:17 +01:00
|
|
|
dnl See versioning rule:
|
|
|
|
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
2015-12-03 15:59:16 +01:00
|
|
|
AC_SUBST(LT_CURRENT, 4)
|
2018-03-23 10:27:32 +01:00
|
|
|
@@ -66,7 +63,10 @@ AC_ARG_ENABLE([gcc-visibility],
|
2012-11-20 18:05:17 +01:00
|
|
|
[gcc_visibility=$withval], [gcc_visibility=no])
|
|
|
|
|
|
|
|
# Checks for programs
|
|
|
|
-AC_PROG_CC
|
|
|
|
+AC_PROG_CC_STDC
|
|
|
|
+AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
+AC_SYS_LARGEFILE
|
|
|
|
+LT_INIT([disable-static pic-only])
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
# Package version
|
2018-03-23 10:27:32 +01:00
|
|
|
Index: lib/libexpat_metalink_parser.c
|
|
|
|
===================================================================
|
2012-11-20 18:05:17 +01:00
|
|
|
--- lib/libexpat_metalink_parser.c.orig
|
|
|
|
+++ lib/libexpat_metalink_parser.c
|
|
|
|
@@ -130,7 +130,7 @@ METALINK_PUBLIC
|
|
|
|
metalink_parse_file(const char* filename, metalink_t** res)
|
|
|
|
{
|
|
|
|
metalink_error_t r;
|
|
|
|
- FILE *docfp = fopen(filename, "rb");
|
|
|
|
+ FILE *docfp = fopen(filename, "rbe");
|
|
|
|
if(docfp == NULL)
|
|
|
|
return METALINK_ERR_CANNOT_OPEN_FILE;
|
|
|
|
r = metalink_parse_fp(docfp, res);
|
2018-03-23 10:27:32 +01:00
|
|
|
Index: lib/Makefile.am
|
|
|
|
===================================================================
|
2012-11-20 18:05:17 +01:00
|
|
|
--- lib/Makefile.am.orig
|
|
|
|
+++ lib/Makefile.am
|
2015-12-03 15:59:16 +01:00
|
|
|
@@ -1,7 +1,7 @@
|
2012-11-20 18:05:17 +01:00
|
|
|
SUBDIRS = includes
|
|
|
|
|
|
|
|
-AM_CPPFLAGS = -I$(srcdir)/includes -I$(builddir)/includes \
|
|
|
|
- @XML_CPPFLAGS@ @EXPAT_CFLAGS@ \
|
|
|
|
+AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(srcdir)/includes -I$(builddir)/includes \
|
|
|
|
+ @EXPAT_CFLAGS@ \
|
|
|
|
@DEFS@
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2018-03-23 10:27:32 +01:00
|
|
|
@@ -57,6 +57,6 @@ OBJECTS += libexpat_metalink_parser.c
|
|
|
|
endif
|
|
|
|
|
2012-11-20 18:05:17 +01:00
|
|
|
libmetalink_la_SOURCES = $(HFILES) $(OBJECTS)
|
2018-03-23 10:27:32 +01:00
|
|
|
-libmetalink_la_LDFLAGS = -no-undefined \
|
|
|
|
+libmetalink_la_LDFLAGS = -no-undefined -export-symbols-regex '^metalink_'\
|
2012-11-20 18:05:17 +01:00
|
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
|
|
|
- @XML_LIBS@ @EXPAT_LIBS@
|
|
|
|
+ @EXPAT_LIBS@
|
2018-03-23 10:27:32 +01:00
|
|
|
Index: test/Makefile.am
|
|
|
|
===================================================================
|
2012-11-20 18:05:17 +01:00
|
|
|
--- test/Makefile.am.orig
|
|
|
|
+++ test/Makefile.am
|
|
|
|
@@ -11,7 +11,7 @@ metalinktest_SOURCES = \
|
|
|
|
metalinktest_LDADD = ${top_builddir}/lib/libmetalink.la
|
|
|
|
metalinktest_LDFLAGS = -static @CUNIT_LIBS@
|
|
|
|
|
|
|
|
-AM_CFLAGS = -I${top_srcdir}/lib -I${top_srcdir}/lib/includes \
|
|
|
|
+AM_CFLAGS = -include $(top_builddir)/config.h -I${top_srcdir}/lib -I${top_srcdir}/lib/includes \
|
|
|
|
-I${top_builddir}/lib/includes \
|
|
|
|
-DLIBMETALINK_TEST_DIR=\"$(top_srcdir)/test/\" @CUNIT_CFLAGS@
|
|
|
|
TESTS = metalinktest
|