From 72be9e73ae76769d1fa6b11f8086d5ad429ae2ed Mon Sep 17 00:00:00 2001 From: Dave Yeo Date: Tue, 1 Jan 2008 22:54:35 +0000 Subject: [PATCH] Add portable way to check for the existence of definitions and apply it to socklen_t. patch by Dave Yeo, daveryeo telus net Originally committed as revision 11366 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 21 +++++++++++++++++++++ libavformat/os_support.h | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c95d900553..0cc53f893a 100755 --- a/configure +++ b/configure @@ -551,6 +551,23 @@ int main(void){ EOF } +check_type(){ + log check_type "$@" + headers=$1 + type=$2 + shift 2 + disable $type + incs="" + for hdr in $headers; do + incs="$incs +#include <$hdr>" + done + check_cc "$@" <