use pkg-config to configure with fdk-aac

This commit is contained in:
Jay Sorg 2017-08-01 16:33:58 -07:00 committed by jsorg71
parent 4f91a52109
commit 152318ad7c
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ fi
# checking for fdk aac
if test "x$enable_fdkaac" = "xyes"
then
AC_CHECK_HEADER([fdk-aac/aacenc_lib.h], [],
PKG_CHECK_MODULES([FDKAAC], [fdk-aac >= 0.1.0], [],
[AC_MSG_ERROR([please install libfdk-aac-dev or fdk-aac-devel])])
fi

View File

@ -24,8 +24,8 @@ CHANSRV_EXTRA_LIBS += $(FUSE_LIBS)
endif
if XRDP_FDK_AAC
AM_CPPFLAGS += -DXRDP_FDK_AAC
CHANSRV_EXTRA_LIBS += -lfdk-aac
AM_CPPFLAGS += -DXRDP_FDK_AAC $(FDKAAC_CFLAGS)
CHANSRV_EXTRA_LIBS += $(FDKAAC_LIBS)
endif
if XRDP_OPUS