binary-dist:: binary-dist-pre
BIN_DIST_TOP= distrib/Makefile-bin.in \
- distrib/configure-bin.in \
+ distrib/configure-bin.ac \
distrib/INSTALL \
$(BIN_DIST_MAIN_DIR)/ANNOUNCE \
$(BIN_DIST_MAIN_DIR)/VERSION \
echo "PACKAGE_LINKS = $($(Project)BinDistLinks)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
cat $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile-bin.in >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
@echo "Generating a shippable configure script.."
- $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure-bin.in $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure.in
+ $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure-bin.ac $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure.ac
( cd $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); autoconf )
if test -x $(BIN_DIST_MAIN_DIR)/mk/post-install-script ; then \
cp $(BIN_DIST_MAIN_DIR)/mk/post-install-script \
#
SRC_DIST_DIRS += docs distrib $(SUBDIRS)
SRC_DIST_FILES += \
- configure.in config.guess config.sub configure \
+ configure.ac config.guess config.sub configure \
aclocal.m4 acconfig.h README Makefile Makefile.config install-sh \
mk/bootstrap.mk \
mk/boilerplate.mk mk/config.h.in mk/config.mk.in mk/opts.mk \
all: configure
-configure: configure.in aclocal.m4
+configure: configure.ac aclocal.m4
rm -f configure.new
- autoconf configure.in > configure.new \
+ autoconf configure.ac > configure.new \
|| ( rm -f configure.new; exit 1 )
rm -f configure
mv configure.new configure
CONFIG_H_IN = ghc/includes/config.h.in
-config.h.in: configure.in
+config.h.in: configure.ac
rm -f $(CONFIG_H_IN)
- autoheader configure.in > $(CONFIG_H_IN) \
+ autoheader configure.ac > $(CONFIG_H_IN) \
|| ( rm -f $(CONFIG_H_IN); exit 1 )
# do something about autoheader
Descriptive text for the C preprocessor macros that
the fptools configuration script can define.
The current version may not use all of them; autoheader copies the ones
- your configure.in uses into your configuration header file templates.
+ your configure.ac uses into your configuration header file templates.
The entries are in sort -df order: alphabetical, case insensitive,
ignoring punctuation (such as underscores). Although this order
dnl == autoconf source for the Glasgow FP tools ==
-dnl (run "grep '^dnl \*' configure.in | sed -e 's/dnl / /g; s/\*\*/ +/g;'"
+dnl (run "grep '^dnl \*' configure.ac | sed -e 's/dnl / /g; s/\*\*/ +/g;'"
dnl (or some such) to see the outline of this file)
dnl
#
fi;
echo "Removing configure script files...not needed"
-rm -f config.guess config.sub configure configure.in mkdirhier
+rm -f config.guess config.sub configure configure.ac mkdirhier
rm -f Makefile-bin.in Makefile.in aclocal.m4 install-sh
rm -rf autom4te.cache
fi;
echo "Removing configure script files...not needed"
-rm -f config.guess config.sub configure configure.in mkdirhier
+rm -f config.guess config.sub configure configure.ac mkdirhier
rm -f Makefile-bin.in Makefile.in aclocal.m4 install-sh
rm -rf autom4te.cache
6.1.</para>
<para>Autoconf builds the <command>configure</command>
- script from <filename>configure.in</filename> and
+ script from <filename>configure.ac</filename> and
<filename>aclocal.m4</filename>. If you modify either of
these files, you'll need <command>autoconf</command> to
rebuild <filename>configure</filename>.</para>
</listitem>
<listitem>
- <para><filename>configure.in</filename>,
+ <para><filename>configure.ac</filename>,
<filename>config.sub</filename>,
<filename>config.guess</filename>: these files support the
configuration process.</para>
only one project (<literal>happy</literal>, say), you must have
a source tree whose root directory contains
<filename>Makefile</filename>, <filename>mk/</filename>,
- <filename>configure.in</filename>, and the project(s) you want
+ <filename>configure.ac</filename>, and the project(s) you want
(<filename>happy/</filename> in this case). You cannot get by
with just the <filename>happy/</filename> directory.</para>
</sect2>
issue the command
<command>autoconf</command><indexterm><primary>autoconf</primary></indexterm>
(with no arguments). This GNU program converts
- <filename><constant>$(FPTOOLS_TOP)</constant>/configure.in</filename>
+ <filename><constant>$(FPTOOLS_TOP)</constant>/configure.ac</filename>
to a shell script called
<filename><constant>$(FPTOOLS_TOP)</constant>/configure</filename>.
</para>
<para>Some projects, including GHC, have their own
configure script. If there's an
- <constant>$(FPTOOLS_TOP)/<project>/configure.in</constant>,
+ <constant>$(FPTOOLS_TOP)/<project>/configure.ac</constant>,
then you need to run <command>autoconf</command> in that
directory too.</para>
<para>Both these steps are completely
platform-independent; they just mean that the
- human-written file (<filename>configure.in</filename>) can
+ human-written file (<filename>configure.ac</filename>) can
be short, although the resulting shell script,
<command>configure</command>, and
<filename>mk/config.h.in</filename>, are long.</para>
#endif
</pre>
-Instead, add an appropriate test to the configure.in script and use
+Instead, add an appropriate test to the configure.ac script and use
the result of that test instead.
<pre>
file0=C:\TEMP\fptools\glafp-utils\mkdirhier\mkdirhier
file1=C:\TEMP\fptools\ghc\ANNOUNCE
file2=C:\TEMP\fptools\aclocal.m4
-file3=C:\TEMP\fptools\configure.in
+file3=C:\TEMP\fptools\configure.ac
file4=C:\TEMP\fptools\config.status
file5=C:\TEMP\fptools\configure
file6=C:\TEMP\fptools\config.guess
AC_SUBST(patchlevel)
dnl Uncomment links to unix docs if necessary dnl NOTE: This is a slight
-dnl hack: It needs to be synchronized with fptools/configure.in and
+dnl hack: It needs to be synchronized with fptools/configure.ac and
dnl fptools/libraries/Makefile and should probably use target features
dnl instead of host.
AC_CANONICAL_HOST
#endif
</pre>
-Instead, add an appropriate test to the configure.in script and use
+Instead, add an appropriate test to the configure.ac script and use
the result of that test instead.
<pre>
@echo "Running $(FPTOOLS_TOP)/config.status to update configuration info..."
@( cd $(FPTOOLS_TOP) && ./config.status )
-$(TOP)/configure : $(TOP)/configure.in $(TOP)/aclocal.m4
+$(TOP)/configure : $(TOP)/configure.ac $(TOP)/aclocal.m4
@echo "Regenerating $(FPTOOLS_TOP)/configure..."
@( cd $(FPTOOLS_TOP) && $(MAKE) -f Makefile.config ./configure )
-/* mk/config.h.in. Generated from configure.in by autoheader. */
+/* mk/config.h.in. Generated from configure.ac by autoheader. */
/* acconfig.h
Descriptive text for the C preprocessor macros that
the fptools configuration script can define.
The current version may not use all of them; autoheader copies the ones
- your configure.in uses into your configuration header file templates.
+ your configure.ac uses into your configuration header file templates.
The entries are in sort -df order: alphabetical, case insensitive,
ignoring punctuation (such as underscores). Although this order