shithub: sox

Download patch

ref: c8a0bd584edcca5f27eaee1d0b2f847d199ee614
parent: cc2d84d60ea57be6f8ad85b099224a1a0b2c83c7
author: rrt <rrt>
date: Thu Jul 19 07:27:00 EDT 2007

Rename HAVE_LIBLTDL to USE_LIBLTDL for clarity

--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@
 ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS = lpc10 @LIBGSM_SUBDIR@ src
-if HAVE_LIBLTDL
+if USE_LIBLTDL
 SUBDIRS += libltdl
 endif
 DIST_SUBDIRS = libltdl lpc10 src
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@
   AC_SUBST(LTDLINCL)
   AC_CHECK_HEADERS(ltdl.h)
 fi
-AM_CONDITIONAL(HAVE_LIBLTDL, test x$enable_shared = xyes)
+AM_CONDITIONAL(USE_LIBLTDL, test x$enable_shared = xyes)
 
 m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG])
 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,7 +23,7 @@
 # libsox Dynamic Libraries for File Formats #
 #############################################
 
-if HAVE_LIBLTDL
+if USE_LIBLTDL
 # Format modules; listed first so optional ones can be added later
 pkglib_LTLIBRARIES = libsox_fmt_auto.la libsox_fmt_raw.la libsox_fmt_s1.la \
 	  libsox_fmt_s2.la libsox_fmt_s3.la libsox_fmt_s4.la libsox_fmt_u1.la \
@@ -208,7 +208,7 @@
 	  soxconfig.h
 libsox_la_CFLAGS = 
 
-if HAVE_LIBLTDL
+if USE_LIBLTDL
 else
   libsox_la_SOURCES += auto.c raw-fmt.c s1-fmt.c s2-fmt.c s3-fmt.c \
     s4-fmt.c u1-fmt.c u2-fmt.c u3-fmt.c u4-fmt.c al-fmt.c la-fmt.c ul-fmt.c \
@@ -265,7 +265,7 @@
     libsox_la_SOURCES += sunaudio.c
 endif
 
-#end !HAVE_LIBLTDL
+#end !USE_LIBLTDL
 endif
 
 EXTRA_DIST = tests.sh testall.sh tests.bat testall.bat monkey.au monkey.wav libgsm