summaryrefslogtreecommitdiff
path: root/infrastructure/m4/ax_check_define_pragma.m4
diff options
context:
space:
mode:
authorJames O'Gorman <james@netinertia.co.uk>2008-10-05 13:20:21 +0000
committerJames O'Gorman <james@netinertia.co.uk>2008-10-05 13:20:21 +0000
commit31c892532d5be4ebb92d26f35f726c1fbbfd6fba (patch)
treef0c5766a482e761ddfb76784b12182b4a0a171c8 /infrastructure/m4/ax_check_define_pragma.m4
parentbbab844d269b4d748291f8fbffbfd59b356fc893 (diff)
Update autoconf to silence warnings on autoconf >= 2.62
* AC_SUBST now only works with one variable per call * When using AC_CACHE the variable must contain the string '_cv_', thus prefix all cache variables with box_cv_
Diffstat (limited to 'infrastructure/m4/ax_check_define_pragma.m4')
-rw-r--r--infrastructure/m4/ax_check_define_pragma.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/infrastructure/m4/ax_check_define_pragma.m4 b/infrastructure/m4/ax_check_define_pragma.m4
index 176faf3d..e3f7fe89 100644
--- a/infrastructure/m4/ax_check_define_pragma.m4
+++ b/infrastructure/m4/ax_check_define_pragma.m4
@@ -10,14 +10,14 @@ dnl @version 2005/07/03
dnl @license AllPermissive
AC_DEFUN([AX_CHECK_DEFINE_PRAGMA], [
- AC_CACHE_CHECK([for pre-processor pragma defines], [have_define_pragma],
+ AC_CACHE_CHECK([for pre-processor pragma defines], [box_cv_have_define_pragma],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#define TEST_DEFINE #pragma pack(1)
TEST_DEFINE
]])],
- [have_define_pragma=yes], [have_define_pragma=no]
+ [box_cv_have_define_pragma=yes], [box_cv_have_define_pragma=no]
)])
- if test "x$have_define_pragma" = "xyes"; then
+ if test "x$box_cv_have_define_pragma" = "xyes"; then
AC_DEFINE([HAVE_DEFINE_PRAGMA], 1, [Define to 1 if #define of pragmas works])
m4_ifvaln([$1],[$1],[:])dnl
m4_ifvaln([$2],[else $2])dnl