From f01b3b2c6dbec26a373410b1d5d44d72e3c73909 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sun, 17 Nov 2013 22:50:08 -0700
Subject: Change macro to AC_CONFIG_HEADERS


diff --git a/configure.ac b/configure.ac
index dd9b63c..abfea77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ AC_PREREQ(2.53)
 AC_CONFIG_SRCDIR([jbig2dec.c])
 
 AM_INIT_AUTOMAKE([-Wall])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS([config.h])
 
 dnl Library versioning - Adapted from the libtool info page
 dnl
-- 
2.24.0


From 8fecd6a59a06f3645a9b10d620302a3f4bdf4320 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 11 Jan 2020 21:07:00 +0100
Subject: restore jbig2_ctx_new for ABI compatibility.


diff --git a/jbig2.c b/jbig2.c
index 07c7969..136cf78 100644
--- a/jbig2.c
+++ b/jbig2.c
@@ -99,6 +99,13 @@ jbig2_error(Jbig2Ctx *ctx, Jbig2Severity severity, int32_t segment_number, const
     return -1;
 }
 
+#undef jbig2_ctx_new
+Jbig2Ctx *
+jbig2_ctx_new(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data)
+{
+    return jbig2_ctx_new_imp((allocator), (options), (global_ctx), (error_callback), (error_callback_data), JBIG2_VERSION_MAJOR, JBIG2_VERSION_MINOR);
+}
+
 Jbig2Ctx *
 jbig2_ctx_new_imp(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data, int jbig2_version_major, int jbig2_version_minor)
 {
-- 
2.24.0

