Configure or deduce CLIB_LOG2_CACHE_LINE_BYTES (VPP-1064)
[vpp.git] / src / vppinfra.am
index ec271e6..d138a26 100644 (file)
 
 lib_LTLIBRARIES += libvppinfra.la
 
+BUILT_SOURCES += vppinfra/config.h
+
+vppinfra/config.h:
+       @echo "/** Autogenerated by Autotools **/" > $@
+       @echo "#ifndef included_clib_config_h" >> $@
+       @echo "#define included_clib_config_h" >> $@
+       @echo "#ifndef CLIB_LOG2_CACHE_LINE_BYTES " >> $@
+       @echo "#define CLIB_LOG2_CACHE_LINE_BYTES " @LOG2_CACHE_LINE_BYTES@ >> $@
+       @echo "#endif " >> $@
+       @echo "#endif " >> $@
+
 TESTS = 
 
 if ENABLE_TESTS
@@ -197,6 +208,7 @@ nobase_include_HEADERS = \
   vppinfra/bitops.h \
   vppinfra/byte_order.h \
   vppinfra/cache.h \
+  vppinfra/config.h \
   vppinfra/clib.h \
   vppinfra/clib_error.h \
   vppinfra/cpu.h \