summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--hieroglyph/Makefile.am2
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e6c749c..e02f426 100644
--- a/configure.ac
+++ b/configure.ac
@@ -311,6 +311,11 @@ AM_PATH_GLIB_2_0($GLIB_REQUIRED, :,
*** GLIB $GLIB_REQUIRED or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.]),
glib)
+dnl To avoid the unexpected errors
+_save_cflags=$CFLAGS
+CFLAGS=$(sed -e 's/\-Werror//g')
+AC_CHECK_LIBM
+CFLAGS=$_save_cflags
dnl ======================================================================
dnl options
diff --git a/hieroglyph/Makefile.am b/hieroglyph/Makefile.am
index 00ae0f3..2de1ab6 100644
--- a/hieroglyph/Makefile.am
+++ b/hieroglyph/Makefile.am
@@ -14,7 +14,7 @@ LIBS = \
@LDFLAGS@ \
$(GLIB_LIBS) \
$(GMODULE_LIBS) \
- -lm \
+ $(LIBM) \
$(NULL)
EXTRA_DIST = \
hgversion.h.in \