[FFmpeg-cvslog] configure: Provide an option to override the environment

Luca Barbato git at videolan.org
Tue Jun 2 19:11:19 CEST 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed May  6 13:37:31 2015 +0200| [604abd025dac4cc73a2f6b0c000c3695c16fb000] | committer: Luca Barbato

configure: Provide an option to override the environment

Useful to have `make config` work with custom pkgconf path.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=604abd025dac4cc73a2f6b0c000c3695c16fb000
---

 configure |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure b/configure
index f077eb4..e1d9895 100755
--- a/configure
+++ b/configure
@@ -263,6 +263,7 @@ Toolchain options:
   --enable-pic             build position-independent code
   --enable-thumb           compile for Thumb instruction set
   --enable-lto             use link-time optimization
+  --env="ENV=override"     override the environment variables
 
 Advanced options (experts only):
   --malloc-prefix=PREFIX   prefix malloc and related names with PREFIX
@@ -1668,6 +1669,7 @@ CMDLINE_SET="
     cpu
     cross_prefix
     dep_cc
+    env
     extra_version
     host_cc
     host_cflags
@@ -2540,6 +2542,10 @@ for opt do
     esac
 done
 
+for e in "$env"; do
+    eval "export $e"
+done
+
 disabled logging && logfile=/dev/null
 
 echo "# $0 $LIBAV_CONFIGURATION" > $logfile



More information about the ffmpeg-cvslog mailing list