]> git.sesse.net Git - ffmpeg/commitdiff
build: Remove check for gsm/gsm.h for libgsm
authorDiego Biurrun <diego@biurrun.de>
Tue, 26 Sep 2017 10:13:07 +0000 (12:13 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 10 Oct 2017 21:20:16 +0000 (23:20 +0200)
libgsm never installed more than a single header, the headers installed into
the gsm/ subdirectory by some distros are private. Who started this nonsense
is a mystery, but it got cargo-culted around ever since.

configure
libavcodec/libgsmdec.c
libavcodec/libgsmenc.c

index 2f6f6e7fcadee872cb001bc087c37189dc733cd0..45886edbc764eab435ea030d2e61658538f66424 100755 (executable)
--- a/configure
+++ b/configure
@@ -1569,7 +1569,6 @@ HEADERS_LIST="
     direct_h
     dxgidebug_h
     dxva_h
-    gsm_h
     io_h
     mach_mach_time_h
     machine_ioctl_bt848_h
@@ -4756,9 +4755,7 @@ enabled libfaac           && require libfaac "stdint.h faac.h" faacEncGetVersion
 enabled libfdk_aac        && require_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen
 enabled libfontconfig     && require_pkg_config libfontconfig fontconfig "fontconfig/fontconfig.h" FcInit
 enabled libfreetype       && require_pkg_config libfreetype freetype2 "ft2build.h FT_FREETYPE_H" FT_Init_FreeType
-enabled libgsm            && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do
-                                   check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break;
-                               done || die "ERROR: libgsm not found"; }
+enabled libgsm            && require libgsm gsm._h gsm_create -lgsm
 enabled libhdcd           && require_pkg_config libhdcd libhdcd "hdcd/hdcd_simple.h" hdcd_new
 enabled libilbc           && require libilbc ilbc.h WebRtcIlbcfix_InitDecode -lilbc
 enabled libkvazaar        && require_pkg_config libkvazaar "kvazaar >= 0.8.1" kvazaar.h kvz_api_get
index 4c21ff672858e7cfe02dd1ba8f317052a2eccaff..e06fe52762284e9336a84f6a769d06fb0ba09057 100644 (file)
 
 // The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html
 
-#include "config.h"
-#if HAVE_GSM_H
 #include <gsm.h>
-#else
-#include <gsm/gsm.h>
-#endif
 
 #include "libavutil/channel_layout.h"
 #include "libavutil/common.h"
index 8f51321d468e7d3eb90f8f914e0cb0e1b2ff1dd7..4bb4075b2fdc32a5ec291d6f0d14e3d0f13c3101 100644 (file)
 
 // The idiosyncrasies of GSM-in-WAV are explained at http://kbs.cs.tu-berlin.de/~jutta/toast.html
 
-#include "config.h"
-#if HAVE_GSM_H
 #include <gsm.h>
-#else
-#include <gsm/gsm.h>
-#endif
 
 #include "libavutil/common.h"