From: Jesse Gross Date: Wed, 3 Nov 2010 17:14:06 +0000 (-0700) Subject: autoconf: Compat checks no longer support multiple files. X-Git-Tag: v1.1.0~941 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=41793158ea9f5815f6f9284e9408f7997cd23aff autoconf: Compat checks no longer support multiple files. We now test that a file exists before grepping but that doesn't work if there are multiple possible files. For the one case that needs this (kmemdup) break the test into two: check the first file and if the pattern isn't found check the second file. --- diff --git a/acinclude.m4 b/acinclude.m4 index 2296dbd97..260812384 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -191,8 +191,10 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [ OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_warn_if_lro], [OVS_DEFINE([HAVE_SKB_WARN_LRO])]) - OVS_GREP_IFELSE([$KSRC26/include/linux/string.h $KSRC26/include/linux/slab.h], - [kmemdup], [OVS_DEFINE([HAVE_KMEMDUP])]) + OVS_GREP_IFELSE([$KSRC26/include/linux/string.h], [kmemdup], + [OVS_DEFINE([HAVE_KMEMDUP])], + [OVS_GREP_IFELSE([$KSRC26/include/linux/slab.h], [kmemdup], + [OVS_DEFINE([HAVE_KMEMDUP])])]) OVS_GREP_IFELSE([$KSRC26/include/linux/types.h], [bool], [OVS_DEFINE([HAVE_BOOL_TYPE])])