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
180 HAVE_SNDFILE=0180 HAVE_SNDFILE=0
181 ])181 ])
182 182
183AM_CONDITIONAL([HAVE_LIBSNDFILE], [test "x$ac_cv_sndfile" = "xyes"])
184
183#====================================================================================185#====================================================================================
184# Check for ALSA.186# Check for ALSA.
185 187
examples/Makefile.am+4−0
@@ -1,7 +1,9 @@
1# This file was automatically generated1# This file was automatically generated
2# DO NOT EDIT!2# DO NOT EDIT!
3 3
4if HAVE_LIBSNDFILE
4bin_PROGRAMS = sndfile-resample5bin_PROGRAMS = sndfile-resample
6endif
5 7
6check_PROGRAMS = varispeed-play timewarp-file8check_PROGRAMS = varispeed-play timewarp-file
7 9
@@ -15,8 +17,10 @@ AM_CFLAGS = @SNDFILE_CFLAGS@ · 7 unmodified lines
15 17
16#===============================================================================18#===============================================================================
17 19
20if HAVE_LIBSNDFILE
18sndfile_resample_SOURCES = sndfile-resample.c21sndfile_resample_SOURCES = sndfile-resample.c
19sndfile_resample_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS)22sndfile_resample_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS)
23endif
20 24
21varispeed_play_SOURCES = varispeed-play.c audio_out.c audio_out.h25varispeed_play_SOURCES = varispeed-play.c audio_out.c audio_out.h
22varispeed_play_LDADD = $(SAMPLERATEDIR)/libsamplerate.la $(SNDFILE_LIBS) $(OS_SPECIFIC_LINKS)26varispeed_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