]> granicus.if.org Git - libass/commitdiff
autoconf: lowercase variables
authorGrigori Goronzy <greg@blackbox>
Sun, 25 Sep 2011 01:19:39 +0000 (03:19 +0200)
committerGrigori Goronzy <greg@blackbox>
Sun, 25 Sep 2011 01:19:39 +0000 (03:19 +0200)
Use lowercase variable names to avoid bogus "possibly undefined macro"
errors.

configure.ac

index cba77a48424318abc3b8c6a27fc066e6878d36cc..af32d74b6a39e07e854b10562e49572314b2ecd9 100644 (file)
@@ -93,23 +93,23 @@ fi
 AM_CONDITIONAL([HAVE_LIBPNG], [test x$libpng = xtrue])
 
 # add libraries/packages to pkg-config for static linking
-PKG_LIBS="-lm"
-PKG_REQUIRES="freetype2 >= 9.6.3"
-PKG_REQUIRES="fribidi >= 0.19.0, ${PKG_REQUIRES}"
+pkg_libs="-lm"
+pkg_requires="freetype2 >= 9.6.3"
+pkg_requires="fribidi >= 0.19.0, ${pkg_requires}"
 if test x$enca = xtrue; then
-    PKG_REQUIRES="enca, ${PKG_REQUIRES}"
+    pkg_requires="enca, ${pkg_requires}"
 fi
 if test x$fontconfig = xtrue; then
-    PKG_REQUIRES="fontconfig >= 2.2.0, ${PKG_REQUIRES}"
+    pkg_requires="fontconfig >= 2.2.0, ${pkg_requires}"
 fi
 if test x$harfbuzz = xtrue; then
-    PKG_REQUIRES="harfbuzz >= 0.7.0, ${PKG_REQUIRES}"
+    pkg_requires="harfbuzz >= 0.7.0, ${pkg_requires}"
 fi
 
-AC_SUBST([PKG_LIBS_DEFAULT], [$(test x$enable_shared = xno && echo $PKG_LIBS)])
-AC_SUBST([PKG_REQUIRES_DEFAULT], [$(test x$enable_shared = xno && echo $PKG_REQUIRES)])
-AC_SUBST([PKG_LIBS_PRIVATE], [$(test x$enable_shared = xno || echo $PKG_LIBS)])
-AC_SUBST([PKG_REQUIRES_PRIVATE], [$(test x$enable_shared = xno || echo $PKG_REQUIRES)])
+AC_SUBST([PKG_LIBS_DEFAULT], [$(test x$enable_shared = xno && echo ${pkg_libs})])
+AC_SUBST([PKG_REQUIRES_DEFAULT], [$(test x$enable_shared = xno && echo ${pkg_requires})])
+AC_SUBST([PKG_LIBS_PRIVATE], [$(test x$enable_shared = xno || echo ${pkg_libs})])
+AC_SUBST([PKG_REQUIRES_PRIVATE], [$(test x$enable_shared = xno || echo ${pkg_requires})])
 
 # Setup output beautifier.
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])