From a3e02a8cadcbd1a67fc5783bb92739c9e28006a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Tue, 19 Jan 2010 04:40:16 +0000 Subject: [PATCH] Create and install libavutil/avconfig.h This file contains a safe subset of the config.h settings. Only bigendian is included for now, more can be added as need arises. Originally committed as revision 21321 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 18 +++++++++++++++++- libavutil/Makefile | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/configure b/configure index fb78be48c5..495e5b00b4 100755 --- a/configure +++ b/configure @@ -963,14 +963,18 @@ ARCH_EXT_LIST=' vis ' +HAVE_LIST_PUB=' + bigendian +' + HAVE_LIST=" $ARCH_EXT_LIST + $HAVE_LIST_PUB $THREADS_LIST alsa_asoundlib_h altivec_h arpa_inet_h attribute_packed - bigendian bswap closesocket cmov @@ -2955,6 +2959,18 @@ echo "endif # FFMPEG_CONFIG_MAK" >> config.mak # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. cp_if_changed $TMPH config.h +cat > $TMPH <> $TMPH + +cp_if_changed $TMPH libavutil/avconfig.h + # build pkg-config files pkgconfig_generate(){ diff --git a/libavutil/Makefile b/libavutil/Makefile index 34898e2089..790c66ef97 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -20,6 +20,8 @@ HEADERS = adler32.h \ rational.h \ sha1.h \ +BUILT_HEADERS = avconfig.h + OBJS = adler32.o \ aes.o \ avstring.o \