diff options
author | James O'Gorman <james@netinertia.co.uk> | 2008-10-05 13:20:21 +0000 |
---|---|---|
committer | James O'Gorman <james@netinertia.co.uk> | 2008-10-05 13:20:21 +0000 |
commit | 31c892532d5be4ebb92d26f35f726c1fbbfd6fba (patch) | |
tree | f0c5766a482e761ddfb76784b12182b4a0a171c8 /infrastructure/m4/ax_bswap64.m4 | |
parent | bbab844d269b4d748291f8fbffbfd59b356fc893 (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_bswap64.m4')
-rw-r--r-- | infrastructure/m4/ax_bswap64.m4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/infrastructure/m4/ax_bswap64.m4 b/infrastructure/m4/ax_bswap64.m4 index 9bfc84fc..8110743c 100644 --- a/infrastructure/m4/ax_bswap64.m4 +++ b/infrastructure/m4/ax_bswap64.m4 @@ -13,7 +13,7 @@ AC_DEFUN([AX_BSWAP64], [ bswap64_function="" AC_CHECK_HEADERS([sys/endian.h asm/byteorder.h]) if test "x$ac_cv_header_sys_endian_h" = "xyes"; then - AC_CACHE_CHECK([for htobe64], [have_htobe64], + AC_CACHE_CHECK([for htobe64], [box_cv_have_htobe64], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ $ac_includes_default #include <sys/endian.h> @@ -21,15 +21,15 @@ AC_DEFUN([AX_BSWAP64], [ htobe64(0); return 1; ]])], - [have_htobe64=yes], [have_htobe64=no] + [box_cv_have_htobe64=yes], [box_cv_have_htobe64=no] )]) - if test "x$have_htobe64" = "xyes"; then + if test "x$box_cv_have_htobe64" = "xyes"; then bswap64_function=htobe64 fi fi if test "x$bswap64_function" = "x" && \ test "x$ac_cv_header_asm_byteorder_h" = "xyes"; then - AC_CACHE_CHECK([for __cpu_to_be64], [have___cpu_to_be64], + AC_CACHE_CHECK([for __cpu_to_be64], [box_cv_have___cpu_to_be64], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ $ac_includes_default #include <asm/byteorder.h> @@ -37,9 +37,9 @@ AC_DEFUN([AX_BSWAP64], [ __cpu_to_be64(0); return 1; ]])], - [have___cpu_to_be64=yes], [have___cpu_to_be64=no] + [box_cv_have___cpu_to_be64=yes], [box_cv_have___cpu_to_be64=no] )]) - if test "x$have___cpu_to_be64" = "xyes"; then + if test "x$box_cv_have___cpu_to_be64" = "xyes"; then bswap64_function=__cpu_to_be64 fi fi |