History

build: check for FLAC using pkg-config

Replace the tortuous test with PKG_CHECK_MODULES and hope it does the right thing.

Mans Rullgard committed 6 years ago

Commit c8bd9b11 parent fbe24981 file · +3 −6Browse files

Unified · Split

configure.ac+3−6
@@ -479,12 +479,9 @@ if test "$GCC" = "yes"; then · 478 unmodified lines
479fi479fi
480 480
481 481
482# Check for FLAC libraries482dnl Check for FLAC library
483# Note passing in OGG_VORBIS_LIBS. That is because FLAC has optional483AC_OPTIONAL_FORMAT(flac, FLAC,
484# support for OGG and if OGG libraries are found on this484 [PKG_CHECK_MODULES([FLAC], [flac], [], [using_flac=no])])
485# system then its highly likely to be compiled into FLAC
486# and will require these at link time.
487AC_OPTIONAL_FORMAT(flac, FLAC, [AC_CHECK_HEADER(FLAC/all.h, [AC_CHECK_DECL(FLAC_API_VERSION_CURRENT, [AC_CHECK_LIB(FLAC, FLAC__stream_encoder_new, FLAC_LIBS="-lFLAC $FLAC_LIBS $OGG_VORBIS_LIBS",using_flac=no, $FLAC_LIBS $OGG_VORBIS_LIBS)], using_flac=no, [#include <FLAC/all.h>])], using_flac=no)], using_flac=no)
488 485
489 486
490dnl When enable_dl_amrbw, do not let add libraries to be linked in487dnl When enable_dl_amrbw, do not let add libraries to be linked in

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