History

Install `sndfile-resample` only if libsndfile is enabled and found

* Installing a non-working executable to show a mere information banner is considered bad style and serves to only confuse users. See also: https://bugs.gentoo.org/show_bug.cgi?id=408849

David Seifert committed 9 years ago

Commit 3224a2a1 parent 1730b912 files · +6 −0Browse files

Unified · Split

2 files
  1. configure.ac +2 −0
  2. examples/Makefile.am +4 −0
configure.ac+2−0
@@ -180,6 +180,8 @@ AS_IF([test "x$ac_cv_sndfile" = "x1"], [ · 179 unmodified lines
180180 HAVE_SNDFILE=0
181181 ])
182182
183+AM_CONDITIONAL([HAVE_LIBSNDFILE], [test "x$ac_cv_sndfile" = "xyes"])
184+
183185 #====================================================================================
184186 # Check for ALSA.
185187
examples/Makefile.am+4−0
@@ -1,7 +1,9 @@
11 # This file was automatically generated
22 # DO NOT EDIT!
33
4+if HAVE_LIBSNDFILE
45 bin_PROGRAMS = sndfile-resample
6+endif
57
68 check_PROGRAMS = varispeed-play timewarp-file
79
@@ -15,8 +17,10 @@ AM_CFLAGS = @SNDFILE_CFLAGS@ · 7 unmodified lines
1517
1618 #===============================================================================
1719
20+if HAVE_LIBSNDFILE
1821 sndfile_resample_SOURCES = sndfile-resample.c
1922 sndfile_resample_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS)
23+endif
2024
2125 varispeed_play_SOURCES = varispeed-play.c audio_out.c audio_out.h
2226 varispeed_play_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS) $(OS_SPECIFIC_LINKS)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t