shithub: sox

Download patch

ref: b220527a06347663738c223700410d74eff60d96
parent: 6170214e0343a05d0dceb4c7e43add298a2d5958
author: cbagwell <cbagwell>
date: Sun Sep 9 22:53:28 EDT 2007

Don't allow adding libltdl library to link unless header is found.

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,8 +3,7 @@
 RM = rm -f 
 
 AM_CPPFLAGS = -DLADSPA_PATH="\"@LADSPA_PATH@\"" -DPKGLIBDIR="\"$(pkglibdir)\""
-AM_CFLAGS = $(LTDLINCL) -Wconversion
-AM_LDFLAGS = $(LIBLTDL)
+AM_CFLAGS = -Wconversion
 
 # Pass flags from --enable-silent-libtool
 LIBTOOL = @LIBTOOL@ @LIBTOOLFLAGS@
@@ -24,6 +23,9 @@
 #############################################
 
 if HAVE_LIBLTDL
+AM_CFLAGS += $(LTDLINCL)
+AM_LDFLAGS = $(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 \