Browse code

Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"

This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.

Michael Niedermayer authored on 2011/03/18 01:01:10
Showing 10 changed files
... ...
@@ -177,7 +177,7 @@ distclean::
177 177
 	$(RM) version.h config.* libavutil/avconfig.h
178 178
 
179 179
 config:
180
-	$(SRC_PATH)/configure $(value LIBAV_CONFIGURATION)
180
+	$(SRC_PATH)/configure $(value FFMPEG_CONFIGURATION)
181 181
 
182 182
 # regression tests
183 183
 
... ...
@@ -399,7 +399,7 @@ static int warned_cfg = 0;
399 399
         }                                                               \
400 400
         if (flags & SHOW_CONFIG) {                                      \
401 401
             const char *cfg = libname##_configuration();                \
402
-            if (strcmp(LIBAV_CONFIGURATION, cfg)) {                     \
402
+            if (strcmp(FFMPEG_CONFIGURATION, cfg)) {                    \
403 403
                 if (!warned_cfg) {                                      \
404 404
                     fprintf(outstream,                                  \
405 405
                             "%sWARNING: library configuration mismatch\n", \
... ...
@@ -429,7 +429,7 @@ void show_banner(void)
429 429
             program_name, program_birth_year, this_year);
430 430
     fprintf(stderr, "  built on %s %s with %s %s\n",
431 431
             __DATE__, __TIME__, CC_TYPE, CC_VERSION);
432
-    fprintf(stderr, "  configuration: " LIBAV_CONFIGURATION "\n");
432
+    fprintf(stderr, "  configuration: " FFMPEG_CONFIGURATION "\n");
433 433
     print_all_libs_info(stderr, INDENT|SHOW_CONFIG);
434 434
     print_all_libs_info(stderr, INDENT|SHOW_VERSION);
435 435
 }
... ...
@@ -1672,7 +1672,7 @@ for v in "$@"; do
1672 1672
     r=${v#*=}
1673 1673
     l=${v%"$r"}
1674 1674
     r=$(sh_quote "$r")
1675
-    LIBAV_CONFIGURATION="${LIBAV_CONFIGURATION# } ${l}${r}"
1675
+    FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
1676 1676
 done
1677 1677
 
1678 1678
 find_things(){
... ...
@@ -1784,7 +1784,7 @@ done
1784 1784
 
1785 1785
 disabled logging && logfile=/dev/null
1786 1786
 
1787
-echo "# $0 $LIBAV_CONFIGURATION" > $logfile
1787
+echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
1788 1788
 set >> $logfile
1789 1789
 
1790 1790
 test -n "$cross_prefix" && enable cross_compile
... ...
@@ -2479,7 +2479,7 @@ case $target_os in
2479 2479
         ;;
2480 2480
 esac
2481 2481
 
2482
-echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate
2482
+echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$FFMPEG_CONFIGURATION" >config.fate
2483 2483
 
2484 2484
 check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
2485 2485
 
... ...
@@ -3202,9 +3202,9 @@ config_files="$TMPH config.mak"
3202 3202
 
3203 3203
 cat > config.mak <<EOF
3204 3204
 # Automatically generated by configure - do not modify!
3205
-ifndef LIBAV_CONFIG_MAK
3206
-LIBAV_CONFIG_MAK=1
3207
-LIBAV_CONFIGURATION=$LIBAV_CONFIGURATION
3205
+ifndef FFMPEG_CONFIG_MAK
3206
+FFMPEG_CONFIG_MAK=1
3207
+FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION
3208 3208
 prefix=$prefix
3209 3209
 LIBDIR=\$(DESTDIR)$libdir
3210 3210
 SHLIBDIR=\$(DESTDIR)$shlibdir
... ...
@@ -3293,9 +3293,9 @@ get_version LIBAVFILTER libavfilter/avfilter.h
3293 3293
 
3294 3294
 cat > $TMPH <<EOF
3295 3295
 /* Automatically generated by configure - do not modify! */
3296
-#ifndef LIBAV_CONFIG_H
3297
-#define LIBAV_CONFIG_H
3298
-#define LIBAV_CONFIGURATION "$(c_escape $LIBAV_CONFIGURATION)"
3296
+#ifndef FFMPEG_CONFIG_H
3297
+#define FFMPEG_CONFIG_H
3298
+#define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
3299 3299
 #define FFMPEG_LICENSE "$(c_escape $license)"
3300 3300
 #define FFMPEG_DATADIR "$(eval c_escape $datadir)"
3301 3301
 #define CC_TYPE "$cc_type"
... ...
@@ -3347,8 +3347,8 @@ LAVFI_TESTS=$(print_enabled  -n _test $LAVFI_TESTS)
3347 3347
 SEEK_TESTS=$(print_enabled   -n _test $SEEK_TESTS)
3348 3348
 EOF
3349 3349
 
3350
-echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
3351
-echo "endif # LIBAV_CONFIG_MAK" >> config.mak
3350
+echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
3351
+echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
3352 3352
 
3353 3353
 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
3354 3354
 cp_if_changed $TMPH config.h
... ...
@@ -1078,7 +1078,7 @@ unsigned avcodec_version( void )
1078 1078
 
1079 1079
 const char *avcodec_configuration(void)
1080 1080
 {
1081
-    return LIBAV_CONFIGURATION;
1081
+    return FFMPEG_CONFIGURATION;
1082 1082
 }
1083 1083
 
1084 1084
 const char *avcodec_license(void)
... ...
@@ -25,7 +25,7 @@ unsigned avdevice_version(void)
25 25
 
26 26
 const char * avdevice_configuration(void)
27 27
 {
28
-    return LIBAV_CONFIGURATION;
28
+    return FFMPEG_CONFIGURATION;
29 29
 }
30 30
 
31 31
 const char * avdevice_license(void)
... ...
@@ -34,7 +34,7 @@ unsigned avfilter_version(void) {
34 34
 
35 35
 const char *avfilter_configuration(void)
36 36
 {
37
-    return LIBAV_CONFIGURATION;
37
+    return FFMPEG_CONFIGURATION;
38 38
 }
39 39
 
40 40
 const char *avfilter_license(void)
... ...
@@ -54,7 +54,7 @@ unsigned avformat_version(void)
54 54
 
55 55
 const char *avformat_configuration(void)
56 56
 {
57
-    return LIBAV_CONFIGURATION;
57
+    return FFMPEG_CONFIGURATION;
58 58
 }
59 59
 
60 60
 const char *avformat_license(void)
... ...
@@ -31,7 +31,7 @@ unsigned avutil_version(void)
31 31
 
32 32
 const char *avutil_configuration(void)
33 33
 {
34
-    return LIBAV_CONFIGURATION;
34
+    return FFMPEG_CONFIGURATION;
35 35
 }
36 36
 
37 37
 const char *avutil_license(void)
... ...
@@ -94,7 +94,7 @@ unsigned postproc_version(void)
94 94
 
95 95
 const char *postproc_configuration(void)
96 96
 {
97
-    return LIBAV_CONFIGURATION;
97
+    return FFMPEG_CONFIGURATION;
98 98
 }
99 99
 
100 100
 const char *postproc_license(void)
... ...
@@ -53,7 +53,7 @@ unsigned swscale_version(void)
53 53
 
54 54
 const char *swscale_configuration(void)
55 55
 {
56
-    return LIBAV_CONFIGURATION;
56
+    return FFMPEG_CONFIGURATION;
57 57
 }
58 58
 
59 59
 const char *swscale_license(void)