BTW; You can use a simple unittest_erasure_code_jerasure_CXXFLAGS = $(UNITTEST_CXXFLAGS) here, you don't have to include AM_CXXFLAGS.