summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-18 20:53:12 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-11-03 22:02:49 +0100
commit5a00d0480e2b8b5966ab8e9ceb6d1ad117327a01 (patch)
tree40c2c5ae1e0107839c01db11ee9f434fb4fb9cea /libgphoto2_port
parent24b7cfad168017d561562b769ca164fc395b624c (diff)
downloadlibgphoto2-5a00d0480e2b8b5966ab8e9ceb6d1ad117327a01.tar.gz
Use m4_pattern_forbid to find unnoticed GP_ strings
Use m4_pattern_forbid to find unnoticed GP_ strings in the configure and config.status scripts.
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/configure.ac5
-rw-r--r--libgphoto2_port/gphoto-m4/gp-gettext-hack.m41
2 files changed, 6 insertions, 0 deletions
diff --git a/libgphoto2_port/configure.ac b/libgphoto2_port/configure.ac
index 2d10a8e61..2fe797c1b 100644
--- a/libgphoto2_port/configure.ac
+++ b/libgphoto2_port/configure.ac
@@ -20,6 +20,11 @@ AC_LANG(C)
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
AM_SILENT_RULES([no])
+
+dnl Flag all GP_ strings in result as error unless specifically allowed.
+m4_pattern_forbid([^_?GP_])dnl
+
+
dnl ---------------------------------------------------------------------------
dnl Advanced information about versioning:
dnl * "Writing shared libraries" by Mike Hearn
diff --git a/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4 b/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4
index 940e287de..01ca92742 100644
--- a/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4
+++ b/libgphoto2_port/gphoto-m4/gp-gettext-hack.m4
@@ -33,6 +33,7 @@ m4_ifval([$4],[
if test -n "$PACKAGE_BUGREPORT"; then
sed_mb="${PACKAGE_BUGREPORT}"
else
+ m4_pattern_allow([GP_GETTEXT_HACK])dnl
AC_MSG_ERROR([
*** Your configure.{ac,in} is wrong.
*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)