aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--main.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 139bcd5a..fd761407 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * main.c (main): Add a warning message if -M is used and gawk was
+ compiled without MPFR/GMP.
+
2014-07-24 Arnold D. Robbins <arnold@skeeve.com>
* main.c (usage): Put text for `-n' *after* text for `-m'.
diff --git a/main.c b/main.c
index 422f1406..2691e224 100644
--- a/main.c
+++ b/main.c
@@ -472,6 +472,8 @@ main(int argc, char **argv)
case 'M':
#ifdef HAVE_MPFR
do_flags |= DO_MPFR;
+#else
+ warning(_("-M ignored: MPFR/GMP support not compiled in"));
#endif
break;