Browse code

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

Måns Rullgård authored on 2010/01/19 13:40:16
Showing 2 changed files
... ...
@@ -963,14 +963,18 @@ ARCH_EXT_LIST='
963 963
     vis
964 964
 '
965 965
 
966
+HAVE_LIST_PUB='
967
+    bigendian
968
+'
969
+
966 970
 HAVE_LIST="
967 971
     $ARCH_EXT_LIST
972
+    $HAVE_LIST_PUB
968 973
     $THREADS_LIST
969 974
     alsa_asoundlib_h
970 975
     altivec_h
971 976
     arpa_inet_h
972 977
     attribute_packed
973
-    bigendian
974 978
     bswap
975 979
     closesocket
976 980
     cmov
... ...
@@ -2955,6 +2959,18 @@ echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
2955 2955
 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
2956 2956
 cp_if_changed $TMPH config.h
2957 2957
 
2958
+cat > $TMPH <<EOF
2959
+/* Generated by ffconf */
2960
+#ifndef AVUTIL_AVCONFIG_H
2961
+#define AVUTIL_AVCONFIG_H
2962
+EOF
2963
+
2964
+print_config AV_HAVE_ $TMPH /dev/null $HAVE_LIST_PUB
2965
+
2966
+echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
2967
+
2968
+cp_if_changed $TMPH libavutil/avconfig.h
2969
+
2958 2970
 # build pkg-config files
2959 2971
 
2960 2972
 pkgconfig_generate(){
... ...
@@ -20,6 +20,8 @@ HEADERS = adler32.h                                                     \
20 20
           rational.h                                                    \
21 21
           sha1.h                                                        \
22 22
 
23
+BUILT_HEADERS = avconfig.h
24
+
23 25
 OBJS = adler32.o                                                        \
24 26
        aes.o                                                            \
25 27
        avstring.o                                                       \