From: Tom Hughes Date: Tue, 24 Aug 2004 23:09:07 +0000 (+0000) Subject: Only check whether linux/mii.h can be processed so that we don't X-Git-Tag: svn/VALGRIND_2_2_0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da2b7b0f725e06b5b4ae199ad7399d9870985823;p=thirdparty%2Fvalgrind.git Only check whether linux/mii.h can be processed so that we don't generate ugly warnings by trying to compile it. Patch from Eric Estievenart git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2613 --- diff --git a/configure.in b/configure.in index e64c318a42..a9f287a33e 100644 --- a/configure.in +++ b/configure.in @@ -350,9 +350,12 @@ AC_SUBST(PREFERRED_STACK_BOUNDARY) AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h mqueue.h linux/compiler.h]) -AC_CHECK_HEADERS([linux/mii.h]) -AC_MSG_RESULT([ (Nb: Valgrind users, please ignore any warnings about mii.h)]) -AC_MSG_RESULT([ (They are not important)]) +AH_TEMPLATE([HAVE_LINUX_MII_H], []) +AC_MSG_CHECKING([for linux/mii.h]) +AC_PREPROC_IFELSE([#include ], + [AC_DEFINE([HAVE_LINUX_MII_H]) + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_UID_T