]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
configury: use bootstrap ChangeLog management feature.
authorGary V. Vaughan <gary@gnu.org>
Fri, 3 Jan 2014 03:01:53 +0000 (16:01 +1300)
committerGary V. Vaughan <gary@gnu.org>
Fri, 3 Jan 2014 03:01:53 +0000 (16:01 +1300)
* gl/build-aux/bootstrap.in (func_autoreconf): Accept an optional
directory argument to pass to $AUTORECONF.
Update doc-comment.
* bootstrap.conf (func_reconfigure): Remove. Don't completely
overwrite bootstrap's func_reconfigure, shadowing auto-ChangeLog
management.
(func_autopoint, func_libtoolize): Overwrite these un-needed
calls instead.
(libtool_autoreconf_libltdl): New hook function to run second
autoreconf in libltdl directory.
(libtool_force_changelog): Remove.  This is all handled by
bootstrap's func_reconfigure again.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
bootstrap.conf
gl/build-aux/bootstrap.in

index 2fbd533b8732becaff09b603bdb699bda7482eab..c3edaf1bc0fe39ff9897fb5e8ee6f8fc612196bf 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -3016,12 +3016,21 @@ EOT
 }
 
 
-# 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
@@ -3038,7 +3047,7 @@ func_autoreconf ()
     $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
index 6365ca6ea3b69848fd12ef03d50bd21b45f4bcc6..c8614cbd775401888d1f54044ef3bf5f0fd9897e 100644 (file)
@@ -109,37 +109,21 @@ libtool_obsolete_files="
 ## 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
 }
 
 
@@ -231,16 +215,17 @@ libtool_build_prerequisites ()
 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
index 8d1b9cef20b75942e4cf1d89304d5e6ccb45cb21..93f1c25d8975b47e67773dfa95b84c16d26ef5c5 100755 (executable)
@@ -682,12 +682,21 @@ EOT
 }
 
 
-# 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
@@ -704,7 +713,7 @@ func_autoreconf ()
     $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