Added srcdir includes so that the include files could be found in vpath builds.
authorMonty Taylor <mordred@inaugust.com>
Wed, 13 May 2009 19:03:28 +0000 (12:03 -0700)
committerMonty Taylor <mordred@inaugust.com>
Wed, 13 May 2009 19:03:28 +0000 (12:03 -0700)
config/protocol_binary.m4

index 7d3a1590dc55fc645396557ef1b4a998e6982774..8b8f3f98b2edc018fd8e66bca728f4283c94597f 100644 (file)
@@ -1,6 +1,8 @@
 dnl ---------------------------------------------------------------------------
 dnl Macro: PROTOCOL_BINARY_TEST
 dnl ---------------------------------------------------------------------------
+save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -I${srcdir}"
 AC_RUN_IFELSE([ 
    AC_LANG_PROGRAM([
       #include "libmemcached/memcached/protocol_binary.h"
@@ -11,6 +13,7 @@ AC_RUN_IFELSE([
       }
    ])
 ],, AC_MSG_ERROR([Unsupported struct padding done by compiler.])) 
+CFLAGS="$save_CFLAGS"
 
 dnl ---------------------------------------------------------------------------
 dnl End Macro: PROTOCOL_BINARY_TEST