for AM in `find -name '*.am'` ; do sed -i '/^[A-Za-z_]*_\(LIBADD\|LDADD\|libadd\|ldadd\)/,/[^\]$/ { s/libblkid\.la/$(LIBBLKID_UL_LIB)/g s/libfdisk\.la/$(LIBFDISK_UL_LIB)/g s/libmount\.la/$(LIBMOUNT_UL_LIB)/g s/libsmartcols\.la/$(LIBSMARTCOLS_UL_LIB)/g s/libuuid\.la/$(LIBUUID_UL_LIB)/g } s/-I\$(ul_libblkid_incdir)/$(LIBBLKID_UL_INC)/ s/-I\$(ul_libmount_incdir)/$(LIBMOUNT_UL_INC)/ s/-I\$(ul_libfdisk_incdir)/$(LIBFDISK_UL_INC)/ s/-I\$(ul_libsmartcols_incdir)/$(LIBSMARTCOLS_UL_INC)/ s/-I\$(ul_libuuid_incdir)/$(LIBUUID_UL_INC)/ ' $AM for LIB in blkid mount fdisk smartcols uuid ; do case $AM in ./lib$LIB/*|./Makefile.am) continue;; *) LIBUC=LIB`echo $LIB | tr a-z A-Z` sed -i "s/BUILD_$LIBUC$/HAVE_$LIBUC/g;s/endif # BUILD_$LIBUC$/endif # HAVE_$LIBUC$/g" $AM;; esac done done exit # prepare Makemodules.am for external dependencies # # automake is not capable to properly evaluate dependencies for # AC_SUBST([LIBFOO], [libfoo.la]), which causes failure of parallel build. # Prepare the code for AM_CONDITIONAL, which does not have this problem.