Add AC rules and macros for Chelsio backports