On Wed, 6 May 2015, Luca Barbato wrote:

Useful to have `make config` work with custom pkgconf path.
---
configure | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/configure b/configure
index f3e5154..3f2dad1 100755
--- a/configure
+++ b/configure
@@ -261,6 +261,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
@@ -1657,6 +1658,7 @@ CMDLINE_SET="
    cpu
    cross_prefix
    dep_cc
+    env
    extra_version
    host_cc
    host_cflags
@@ -2511,6 +2513,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
--
1.9.0

Looks nice to me (and is very useful to me, thanks!), although I'd wait a little to see if Diego has something to add about it.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to