Mercurial > mplayer.hg
changeset 24023:1ac62a61ea56
Move some more compiler flags to configure.
author | diego |
---|---|
date | Thu, 09 Aug 2007 11:35:41 +0000 |
parents | 4d576e0ed40b |
children | 05608cdd13f4 |
files | configure dvdread/Makefile libfaad2/common.h libfaad2/local_changes.diff |
diffstat | 4 files changed, 21 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Aug 09 10:26:00 2007 +0000 +++ b/configure Thu Aug 09 11:35:41 2007 +0000 @@ -7371,6 +7371,11 @@ fi fi +# Make sure config.h gets included. +if test "$_dvdread_internal" = yes || test "$_faad_internal" = yes ; then + CFLAGS="$CFLAGS -DHAVE_CONFIG_H" +fi + CFLAGS="-I. -I.. -I../libavutil $CFLAGS" CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS" @@ -7682,13 +7687,17 @@ /* libdvdcss */ #define HAVE_ERRNO_H 1 + +/* libdvdcss + libdvdread */ #define HAVE_LIMITS_H 1 /* libdvdcss + libfaad2 */ #define HAVE_UNISTD_H 1 +/* libfaad2 + libdvdread */ +#define STDC_HEADERS 1 + /* libfaad2 */ -#define STDC_HEADERS 1 #define HAVE_MEMCPY 1 #define HAVE_STRCHR 1
--- a/dvdread/Makefile Thu Aug 09 10:26:00 2007 +0000 +++ b/dvdread/Makefile Thu Aug 09 11:35:41 2007 +0000 @@ -11,7 +11,7 @@ nav_read.c \ md5.c \ -CFLAGS = -D__USE_UNIX98 -D_GNU_SOURCE -DSTDC_HEADERS -DHAVE_LIMITS_H +CFLAGS = -D__USE_UNIX98 -D_GNU_SOURCE CFLAGS-$(DVDCSS_INTERNAL) += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H
--- a/libfaad2/common.h Thu Aug 09 10:26:00 2007 +0000 +++ b/libfaad2/common.h Thu Aug 09 11:35:41 2007 +0000 @@ -35,13 +35,15 @@ extern "C" { #endif +#ifdef HAVE_CONFIG_H +# include "../config.h" +#endif + /* Allow build on Cygwin*/ #if defined(__CYGWIN__) #define __STRICT_ANSI__ #endif -#include "../config.h" - #define INLINE __inline #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) #define ALIGN __declspec(align(16))
--- a/libfaad2/local_changes.diff Thu Aug 09 10:26:00 2007 +0000 +++ b/libfaad2/local_changes.diff Thu Aug 09 11:35:41 2007 +0000 @@ -33,19 +33,17 @@ **/ #ifndef __COMMON_H__ -@@ -32,10 +35,13 @@ - extern "C" { +@@ -32,8 +35,13 @@ + + #ifdef HAVE_CONFIG_H + # include "../config.h" #endif - --#ifdef HAVE_CONFIG_H --# include "../config.h" ++ +/* Allow build on Cygwin*/ +#if defined(__CYGWIN__) +#define __STRICT_ANSI__ - #endif ++#endif -+#include "../config.h" -+ #define INLINE __inline #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) #define ALIGN __declspec(align(16))