[libgweather] Check for regex library.
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgweather] Check for regex library.
- Date: Fri, 29 May 2009 10:09:40 -0400 (EDT)
commit 5cb8c99d190c30cd6a75e2db91a88e67b7c43bd0
Author: Fridrich Strba <fstrba novell com>
Date: Fri May 29 16:08:12 2009 +0300
Check for regex library.
---
configure.in | 9 +++++++++
libgweather/Makefile.am | 4 +++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index ce24c7a..3866beb 100644
--- a/configure.in
+++ b/configure.in
@@ -154,6 +154,15 @@ AM_GLIB_GNU_GETTEXT
dnl ***************************************************************************
+dnl *** REGEX ***
+dnl ***************************************************************************
+AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,
+ [REGEX_LIBS=-lregex],
+ [AC_MSG_ERROR([No regex library found])])])
+AC_SUBST(REGEX_LIBS)
+
+
+dnl ***************************************************************************
dnl *** Check for presence of tm.tm_gmtoff on the system ***
dnl ***************************************************************************
AC_CHECK_MEMBER([struct tm.tm_gmtoff],[struct_tm_tm_gmtoff=true],[struct_tm_tm_gmtoff=false],[#include <time.h>])
diff --git a/libgweather/Makefile.am b/libgweather/Makefile.am
index 8a51bd2..a5f15b2 100644
--- a/libgweather/Makefile.am
+++ b/libgweather/Makefile.am
@@ -55,7 +55,8 @@ libgweather_la_LIBADD = \
$(GTK_LIBS) \
$(LIBXML_LIBS) \
$(LIBSOUP_LIBS) \
- $(GCONF_LIBS)
+ $(GCONF_LIBS) \
+ $(REGEX_LIBS)
libgweather_la_LDFLAGS = \
-version-info $(LT_VERSION) -no-undefined
@@ -88,6 +89,7 @@ test_metar_CFLAGS = \
test_metar_LDADD = \
$(LIBSOUP_LIBS) \
+ $(REXEX_LIBS) \
libgweather.la
test_locations_SOURCES = test_locations.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]