]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Only check whether linux/mii.h can be processed so that we don't
authorTom Hughes <tom@compton.nu>
Tue, 24 Aug 2004 23:09:07 +0000 (23:09 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 24 Aug 2004 23:09:07 +0000 (23:09 +0000)
generate ugly warnings by trying to compile it.

Patch from Eric Estievenart <eric.estievenart@free.fr>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2613

configure.in

index e64c318a42519103b4c06a0d9a1dddf0a3f439a8..a9f287a33e15c0c23dc7bb72c17d312f978cbdae 100644 (file)
@@ -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 <linux/mii.h>],
+                   [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