16

It seems that some autoconf projects use a configure.in file to generate a configure script, and some use configure.ac.

What is the difference/advantage between using one or the other?

freedrull
  • 2,194
  • 4
  • 21
  • 33

2 Answers2

24

Its just a matter of style. Historically autoconf files were named configure.in. Now configure.ac is the preferred naming scheme. Its also discussed in the documentation.

Mark Loeser
  • 17,657
  • 2
  • 26
  • 34
11

New projects should use configure.ac. Old projects used configure.in; if it is inconvenient to switch to the new name, they can continue to use it, but the autoconf tools will generate a warning.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
  • The current version of `autoconf` (1.13.1 as of 2013-01-01) still supports `configure.ac`, but the [release notes](http://lists.gnu.org/archive/html/automake/2013-01/msg00000.html) say "_Automake 1.14 will drop support for the long-deprecated 'configure.in' name for the Autoconf input file. You are advised to start using the recommended name 'configure.ac' instead, ASAP._" – Jonathan Leffler Jan 25 '13 at 08:30
  • Yup, now they have finally moved forward with deprecating it. – Mark Loeser Jan 25 '13 at 17:08
  • 1
    In my first comment, there's a typo — it should be '_still supports `configure.in` ...'_ as `configure.ac` is the future direction. – Jonathan Leffler Jan 25 '13 at 17:10