OSDN Git Service

configure: define CONFIG_THIS_YEAR at the configure level
authorStefano Sabatini <stefasab@gmail.com>
Mon, 25 Nov 2013 22:28:11 +0000 (23:28 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 26 Nov 2013 08:54:40 +0000 (09:54 +0100)
The macro value can be shared between configure script and cmdutils.c.

cmdutils.c
configure

index c7e8acf..ebb747a 100644 (file)
@@ -69,7 +69,7 @@ struct SwsContext *sws_opts;
 AVDictionary *swr_opts;
 AVDictionary *format_opts, *codec_opts, *resample_opts;
 
-const int this_year = 2013;
+const int this_year = CONFIG_THIS_YEAR;
 
 static FILE *report_file;
 
index 4aeeb80..aaf5c8f 100755 (executable)
--- a/configure
+++ b/configure
@@ -4919,6 +4919,7 @@ cat > $TMPH <<EOF
 #define FFMPEG_CONFIG_H
 #define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
 #define FFMPEG_LICENSE "$(c_escape $license)"
+#define CONFIG_THIS_YEAR 2013
 #define FFMPEG_DATADIR "$(eval c_escape $datadir)"
 #define AVCONV_DATADIR "$(eval c_escape $datadir)"
 #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})"