summaryrefslogtreecommitdiffstats
path: root/libs/gsmlib/patches/01-update-autotools.patch
blob: 372a4e6158e96e43276c2301245aaaca9a29fd89 (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
Description: Update autotools-related stuff.

--- a/configure.in
+++ b/configure.in
@@ -15,6 +15,7 @@ AC_INIT(gsmlib/gsm_error.h)
 
 dnl Other
 AC_CONFIG_AUX_DIR(scripts)
+AC_CONFIG_MACRO_DIR([m4])
 AC_PROG_INSTALL
 
 dnl check for libintl
@@ -34,6 +35,8 @@ if test "$CXXFLAGS" = ""; then
    CXXFLAGS="-O2"
 fi
 
+AC_USE_SYSTEM_EXTENSIONS
+
 dnl comment out this line to get extensive debugging output and asserts
 dnl CXXFLAGS="-DNDEBUG $CXXFLAGS"
 
@@ -108,7 +111,7 @@ AC_SUBST(GSM_VERSION)
 dnl national language support (NLS)
 LINGUAS="de"
 ALL_LINGUAS=$LINGUAS
-AM_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
 dnl AM_GLIB_GNU_GETTEXT
 
 dnl set locale dir (FIXME there must be a better way)
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1,5 @@
+DOMAIN = $(PACKAGE)
+
+subdir = po
+top_builddir = ..
+
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,14 +11,12 @@
 # * Created: 21.5.1999
 # *************************************************************************
 
+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS_ =	po gsmlib apps tests doc scripts win32 ext
 
 EXTRA_DIST =	gsmlib.spec
 
-if COMPILE_INTL
-SUBDIRS =	intl $(SUBDIRS_) # po - make automake happy
-else
 SUBDIRS =	$(SUBDIRS_) # po intl - make automake happy
-endif
 
 all: