Fixed missing cache-id warning

This commit is contained in:
Robert Roth
2013-08-21 15:43:10 +03:00
parent 5adaa90de3
commit 4cffb2f094

View File

@@ -237,8 +237,8 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
fi fi
AC_MSG_CHECKING(what we need to define to get struct msginfo) AC_MSG_CHECKING(what we need to define to get struct msginfo)
AC_CACHE_VAL(msginfo_needs, AC_CACHE_VAL(cv_msginfo_needs,
msginfo_needs= cv_msginfo_needs=
for def in nothing KERNEL _KERNEL; do for def in nothing KERNEL _KERNEL; do
AC_COMPILE_IFELSE([#define $def AC_COMPILE_IFELSE([#define $def
#include <sys/types.h> #include <sys/types.h>
@@ -254,21 +254,21 @@ main (void)
return 0; return 0;
}], }],
[ [
msginfo_needs=$def cv_msginfo_needs=$def
if test ${msginfo_needs} = KERNEL; then if test ${cv_msginfo_needs} = KERNEL; then
AC_DEFINE(STRUCT_MSGINFO_NEEDS_KERNEL, 1, AC_DEFINE(STRUCT_MSGINFO_NEEDS_KERNEL, 1,
[Define to 1 if we need to define KERNEL to get 'struct msginfo']) [Define to 1 if we need to define KERNEL to get 'struct msginfo'])
elif test ${msginfo_needs} = _KERNEL; then elif test ${cv_msginfo_needs} = _KERNEL; then
AC_DEFINE(STRUCT_MSGINFO_NEEDS__KERNEL, 1, AC_DEFINE(STRUCT_MSGINFO_NEEDS__KERNEL, 1,
[Define to 1 if we need to define _KERNEL to get 'struct msginfo']) [Define to 1 if we need to define _KERNEL to get 'struct msginfo'])
fi fi
] ]
) )
test -n "${msginfo_needs}" && break test -n "${cv_msginfo_needs}" && break
done done
) )
AC_MSG_RESULT($msginfo_needs) AC_MSG_RESULT($cv_msginfo_needs)
if test -z "${msginfo_needs}"; then if test -z "${cv_msginfo_needs}"; then
AC_MSG_ERROR([Could not find the definition of 'struct msginfo']) AC_MSG_ERROR([Could not find the definition of 'struct msginfo'])
fi fi
;; ;;