Ticket #1769: 0001-configure-output-build-config-and-license-to-libavut.patch

File 0001-configure-output-build-config-and-license-to-libavut.patch, 1.2 KB (added by Timothy Gu, 13 years ago)

First version of patch

  • configure

    From deb17dfd4ba89fdee718ef129f769a9320889660 Mon Sep 17 00:00:00 2001
    From: Timothy Gu <timothygu99@gmail.com>
    Date: Thu, 28 Nov 2013 15:16:54 -0800
    Subject: [PATCH] configure: output build config and license to
     libavutil/avconfig.h
    
    Fixes #1769.
    
    Signed-off-by: Timothy Gu <timothygu99@gmail.com>
    ---
     configure | 5 +++--
     1 file changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/configure b/configure
    index 1b8c852..f901b56 100755
    a b cat > $TMPH <<EOF  
    49334933/* Automatically generated by configure - do not modify! */
    49344934#ifndef FFMPEG_CONFIG_H
    49354935#define FFMPEG_CONFIG_H
    4936 #define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
    4937 #define FFMPEG_LICENSE "$(c_escape $license)"
     4936#include "libavutil/avconfig.h"
    49384937#define CONFIG_THIS_YEAR 2013
    49394938#define FFMPEG_DATADIR "$(eval c_escape $datadir)"
    49404939#define AVCONV_DATADIR "$(eval c_escape $datadir)"
    cat > $TMPH <<EOF  
    49824981/* Generated by ffconf */
    49834982#ifndef AVUTIL_AVCONFIG_H
    49844983#define AVUTIL_AVCONFIG_H
     4984#define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
     4985#define FFMPEG_LICENSE "$(c_escape $license)"
    49854986EOF
    49864987
    49874988print_config AV_HAVE_ $TMPH $HAVE_LIST_PUB