745 |
# FIXME: Ensure ltmain.sh, libtool.m4 and ltdl.m4 are from the same release |
# FIXME: Ensure ltmain.sh, libtool.m4 and ltdl.m4 are from the same release |
746 |
} |
} |
747 |
|
|
748 |
|
# func_massage_aclocal_DATA [glob_exclude] |
749 |
|
# @aclocal_DATA\@ is substituted as per its value in Makefile.am; this |
750 |
|
# function massages it into a suitable format for func_copy_some_files. |
751 |
|
func_massage_aclocal_DATA () |
752 |
|
{ |
753 |
|
pkgmacro_files= # GLOBAL VAR |
754 |
|
|
755 |
|
my_glob_exclude="$1" |
756 |
|
|
757 |
|
# Massage a value for pkgmacro_files from the value used in Makefile.am. |
758 |
|
for my_filename in @aclocal_DATA@; do |
759 |
|
my_filename=`$ECHO "X$my_filename" | $Xsed -e "$basename"` |
760 |
|
|
761 |
|
# ignore excluded filenames |
762 |
|
if test -n "$my_glob_exclude"; then |
763 |
|
eval 'case $my_filename in '$my_glob_exclude') continue ;; esac' |
764 |
|
fi |
765 |
|
|
766 |
|
pkgmacro_files="$pkgmacro_files:$my_filename" |
767 |
|
done |
768 |
|
|
769 |
|
# strip spurious leading `:' |
770 |
|
pkgmacro_files=`$ECHO "X$pkgmacro_files" | $Xsed -e 's,^:*,,'` |
771 |
|
} |
772 |
|
|
773 |
|
|
774 |
## ----------- ## |
## ----------- ## |
775 |
## Main. ## |
## Main. ## |
778 |
{ |
{ |
779 |
rerun_aclocal=false |
rerun_aclocal=false |
780 |
|
|
781 |
# NOTE: PKGMACRO_FILES must be kept in synch with aclocal_DATA in the |
# libtool.m4 and ltdl.m4 are handled specially below |
782 |
# libtool top_srcdir/Makefile.am (libtool.m4 and ltdl.m4 are handled |
func_massage_aclocal_DATA 'libtool.m4|ltdl.m4' |
|
# specially below though, so don't add them here): |
|
|
pkgmacro_files='argz.m4:ltoptions.m4:ltsugar.m4:ltversion.m4' |
|
783 |
|
|
784 |
glob_exclude_pkgaux_files='config.guess|config.sub|install-sh|ltmain.sh' |
glob_exclude_pkgaux_files='config.guess|config.sub|install-sh|ltmain.sh' |
785 |
|
|