File: autoconf.info, Node: Writing Autoconf Macros, Next: Portable Shell, Prev: Programming in M4sh, Up: Top 10 Writing Autoconf Macros ************************** When you write a feature test that could be applicable to more than one software package, the best thing to do is encapsulate it in a new macro. Here are some instructions and guidelines for writing Autoconf macros. You should also familiarize yourself with M4sugar (*note Programming in M4::) and M4sh (*note Programming in M4sh::). * Menu: * Macro Definitions:: Basic format of an Autoconf macro * Macro Names:: What to call your new macros * Dependencies Between Macros:: What to do when macros depend on other macros * Obsoleting Macros:: Warning about old ways of doing things * Coding Style:: Writing Autoconf macros à la Autoconf