From 85b4c147718e0618a0747c8e42c83648350725a0 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 8 Oct 2009 13:40:06 +0200 Subject: [PATCH] build-sys: detect if const is available Some systems define __STDC__ and do not have a working const, some do not define the macro but do have a working const. Use AC_C_CONST to check for its presence. Signed-off-by: Guillem Jover --- configure.ac | 1 + fsck/fsck.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7bf8bcd4..f61102c8 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ AC_SUBST([usrlib_execdir]) AC_PROG_CC_STDC AC_GNU_SOURCE AC_CANONICAL_HOST +AC_C_CONST AC_C_BIGENDIAN dnl libtool-2 diff --git a/fsck/fsck.h b/fsck/fsck.h index 8a0f70e3..45b78446 100644 --- a/fsck/fsck.h +++ b/fsck/fsck.h @@ -8,7 +8,6 @@ #define NOARGS void #else #define NOARGS -#define const #endif #ifdef __GNUC__ -- 2.39.5