}
-# func_autoreconf
-# ---------------
+# func_autoreconf [SUBDIR]
+# ------------------------
# Being careful not to re-run 'autopoint' or 'libtoolize', and not to
# try to run 'autopoint', 'libtoolize' or 'autoheader' on packages that
# don't use them, defer to 'autoreconf' for execution of the remaining
# autotools to bootstrap this package.
+#
+# Projects with multiple trees to reconfigure can hook another call to
+# this function onto func_reconfigure:
+#
+# my_autoreconf_foo ()
+# {
+# func_autoreconf foo
+# }
+# func_add_hook func_reconfigure my_autoreconf_foo
func_autoreconf ()
{
$debug_cmd
$opt_copy || func_append _G_autoreconf_options " --symlink"
$opt_force && func_append _G_autoreconf_options " --force"
$opt_verbose && func_append _G_autoreconf_options " --verbose"
- func_show_eval "$AUTORECONF$_G_autoreconf_options --install" 'exit $?'
+ func_show_eval "$AUTORECONF$_G_autoreconf_options --install${1+ $1}" 'exit $?'
AUTOPOINT=$save_AUTOPOINT
LIBTOOLIZE=$save_LIBTOOLIZE
## Override functions. ##
## ------------------- ##
-# func_reconfigure
-# ------------------
-# In addition to needing to autoreconf two directories, Libtool provides
-# 'libtoolize' and doesn't use 'autopoint', so we can use a somewhat
-# simpler 'func_reconfigure' implementation than bootstrap's version.
-func_reconfigure ()
+# func_autopoint
+# --------------
+# Libtool does not use autopoint.
+func_autopoint ()
{
$debug_cmd
+}
- $require_autoheader
- $require_build_aux
- $require_ltdl_dir
- $require_macro_dir
-
- # Only need this from the top level directory
- func_gnulib_tool
-
- export LIBTOOLIZE
- func_verbose "export LIBTOOLIZE='$LIBTOOLIZE'"
-
- my_autoreconf_options=
- $opt_copy || func_append my_autoreconf_options " --symlink"
- $opt_force && func_append my_autoreconf_options " --force"
- $opt_verbose && func_append my_autoreconf_options " --verbose"
-
- func_show_eval "$AUTORECONF$my_autoreconf_options --install ." \
- 'exit $?'
- # Also bootstrap libltdl ready for installation.
- func_show_eval "$AUTORECONF$my_autoreconf_options --install $ltdl_dir" \
- 'exit $?'
+# func_libtoolize
+# ---------------
+# Libtoolize is part of Libtool!
+func_libtoolize ()
+{
+ $debug_cmd
}
func_add_hook func_gnulib_tool libtool_build_prerequisites
-# libtool_force_changelog
-# -----------------------
-# Automake requires that ChangeLog exist.
-libtool_force_changelog ()
+# libtool_autoreconf_libltdl
+# --------------------------
+# Libtldl directory needs to be autoreconfed too.
+libtool_autoreconf_libltdl ()
{
$debug_cmd
- echo "Autogenerated by 'make dist'" > ChangeLog || exit 1
+ # Also bootstrap libltdl ready for installation.
+ func_autoreconf libltdl
}
-func_add_hook func_gnulib_tool libtool_force_changelog
+func_add_hook func_reconfigure libtool_autoreconf_libltdl
# libtool_readme_release_package_substitutions
}
-# func_autoreconf
-# ---------------
+# func_autoreconf [SUBDIR]
+# ------------------------
# Being careful not to re-run 'autopoint' or 'libtoolize', and not to
# try to run 'autopoint', 'libtoolize' or 'autoheader' on packages that
# don't use them, defer to 'autoreconf' for execution of the remaining
# autotools to bootstrap this package.
+#
+# Projects with multiple trees to reconfigure can hook another call to
+# this function onto func_reconfigure:
+#
+# my_autoreconf_foo ()
+# {
+# func_autoreconf foo
+# }
+# func_add_hook func_reconfigure my_autoreconf_foo
func_autoreconf ()
{
$debug_cmd
$opt_copy || func_append _G_autoreconf_options " --symlink"
$opt_force && func_append _G_autoreconf_options " --force"
$opt_verbose && func_append _G_autoreconf_options " --verbose"
- func_show_eval "$AUTORECONF$_G_autoreconf_options --install" 'exit $?'
+ func_show_eval "$AUTORECONF$_G_autoreconf_options --install${1+ $1}" 'exit $?'
AUTOPOINT=$save_AUTOPOINT
LIBTOOLIZE=$save_LIBTOOLIZE