aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/mingw-libgnurx/mingw-libgnurx/0002-Add-autotool-files.patch
blob: 1365f2473c0f0eb3af42b3b477aa1944c5ef727b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
From 0b74bbc32c4acf5b67d7568a5d1e776fe6578202 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 1 May 2021 14:53:09 -0700
Subject: [PATCH] Add autotool files

This helps in reconfiguring the component with autotools on Linux

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 Makefile.am  |  7 ++++
 configure.ac | 90 ++++++----------------------------------------------
 2 files changed, 16 insertions(+), 81 deletions(-)
 create mode 100644 Makefile.am

diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..be0a797
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,7 @@
+lib_LTLIBRARIES = libgnurx.la
+ 
+libgnurx_la_SOURCES = regex.c
+libgnurx_la_includedir = $(includedir)
+libgnurx_la_include_HEADERS = regex.h
+libgnurx_la_CFLAGS = -I$(top_srcdir)
+libgnurx_la_LDFLAGS = -no-undefined -version-info 0:0:0 -export-dynamic
diff --git a/configure.ac b/configure.ac
index c97738d..de64f75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,83 +1,11 @@
 # configure.ac  -*- Autoconf -*-
 # Process this file with autoconf, to generate a configure script.
-#
-# $Id: configure.ac,v 1.2 2007/05/03 22:46:09 keithmarshall Exp $
-#
-# Copyright (C) 2007, MinGW Project
-# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
-#
-# Package identification.
-#
-# This is configure.ac for the MinGW `libgnurx' package.
-# BASENAME, VERSION_MAJOR and VERSION_MINOR are required tags;
-# complete `Value' fields as appropriate.
-#
-#                            Tag              Value
-#                            ---------------  ----------
-  MINGW_AC_DEFINE_PACKAGE_ID([BASENAME],      [libgnurx])
-  MINGW_AC_DEFINE_PACKAGE_ID([VERSION_MAJOR], [2])
-  MINGW_AC_DEFINE_PACKAGE_ID([VERSION_MINOR], [5])
-#
-# PATCHLEVEL is optional; comment/uncomment and adjust as required.
-#
-  MINGW_AC_DEFINE_PACKAGE_ID([PATCHLEVEL],    [1])
-#
-# DLL_VERSION is required; installed DLLs will be versioned, by
-# appending a hyphen, the specified tag value, and then the `.dll'
-# file name extension, to the base name of each generated DLL.
-#
-  MINGW_AC_DEFINE_PACKAGE_ID([DLL_VERSION],   [0])
-#
-#
-# libgnurx is an adaptation of Tor Lillqvist's original port of the
-# regex functions from GNU libc, for use on native Woe32 platforms.
-#
-# The original sources, on which this port is based, remain copyright
-# of their respective authors, or of the Free Software Foundation Inc.,
-# as indicated in individual file headers; all are redistributed with
-# permission, as granted by the GNU Lesser General Public License.
-#
-# This is free software.  It is provided AS IS, in the hope that it may
-# be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
-# of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
-#
-# Permission is granted to redistribute this software, either "as is" or
-# in modified form, under the terms of the GNU Lesser General Public License,
-# as published by the Free Software Foundation; either version 2.1, or (at
-# your option) any later version.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this software; see the file COPYING.LIB.  If not, write to the
-# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-# Autoconf initialisation.
-#
-  AC_PREREQ([2.59])
-  AC_INIT(__MINGW_AC_PACKAGE_IDENTIFICATION__)
-
-# Compiler and build tool checks.
-#
-  AC_PROG_CC
-  MINGW_AC_PROG_CC_OPTIONS([CC_QUALIFIED], [-m], [threads tune=pentium3])
-
-# Set the release version for the resultant DLL.
-#
-  AC_SUBST([DLLVERSION], [__MINGW_AC_PACKAGE_DLL_VERSION__])
-
-# User configuration options.
-#
-  MINGW_AC_DISTRIBUTION_TYPE([tar])
-  MINGW_AC_MSVC_IMPORT_LIBS([GNURX_LIB], [gnurx.lib])
-  MINGW_AC_DEV_INSTALL_OPTION
-
-# Configuration output.
-#
-  AC_SUBST([GNURX_LIB])
-  AC_SUBST([CC_QUALIFIED], ["$CC $CC_QUALIFIED"])
-  LDFLAGS="$LDFLAGS -Wl,--enable-auto-image-base -Wl,--out-implib,libgnurx.dll.a"
-  test -n "${GNURX_LIB}" && LDFLAGS="$LDFLAGS -Wl,--output-def,libgnurx.def"
-  AC_CONFIG_FILES([Makefile])
-  AC_OUTPUT
-#
-# $RCSfile: configure.ac,v $Revision: 1.2 $: end of file
+ 
+AC_INIT(libgnurx, 2.5.1)
+AM_INIT_AUTOMAKE(foreign)
+AC_PROG_INSTALL
+AC_LIBTOOL_DLOPEN
+AC_LIBTOOL_WIN32_DLL
+AC_PROG_LIBTOOL
+ 
+AC_OUTPUT([Makefile])