[FFmpeg-cvslog] r21321 - in trunk: configure libavutil/Makefile

mru subversion
Tue Jan 19 05:40:16 CET 2010


Author: mru
Date: Tue Jan 19 05:40:16 2010
New Revision: 21321

Log:
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.

Modified:
   trunk/configure
   trunk/libavutil/Makefile

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Jan 19 05:40:13 2010	(r21320)
+++ trunk/configure	Tue Jan 19 05:40:16 2010	(r21321)
@@ -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" >> conf
 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
 cp_if_changed $TMPH config.h
 
+cat > $TMPH <<EOF
+/* Generated by ffconf */
+#ifndef AVUTIL_AVCONFIG_H
+#define AVUTIL_AVCONFIG_H
+EOF
+
+print_config AV_HAVE_ $TMPH /dev/null $HAVE_LIST_PUB
+
+echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
+
+cp_if_changed $TMPH libavutil/avconfig.h
+
 # build pkg-config files
 
 pkgconfig_generate(){

Modified: trunk/libavutil/Makefile
==============================================================================
--- trunk/libavutil/Makefile	Tue Jan 19 05:40:13 2010	(r21320)
+++ trunk/libavutil/Makefile	Tue Jan 19 05:40:16 2010	(r21321)
@@ -20,6 +20,8 @@ HEADERS = adler32.h                     
           rational.h                                                    \
           sha1.h                                                        \
 
+BUILT_HEADERS = avconfig.h
+
 OBJS = adler32.o                                                        \
        aes.o                                                            \
        avstring.o                                                       \



More information about the ffmpeg-cvslog mailing list