OSDN Git Service

fate: get samples location from env var if not explicitly set
authorMans Rullgard <mans@mansr.com>
Sat, 26 Feb 2011 11:51:18 +0000 (11:51 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Feb 2011 23:34:38 +0000 (00:34 +0100)
Use the FATE_SAMPLES environment variable if samples location
is not set with the --samples configure option or on the make
command line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit aa3805a486831d9c9e40cc9e897c048d60b51c1a)

configure

index c3c2027..b9252fa 100755 (executable)
--- a/configure
+++ b/configure
@@ -3258,7 +3258,7 @@ SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}
 SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}
 SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}
 SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}
-SAMPLES=$samples
+SAMPLES=${samples:-\$(FATE_SAMPLES)}
 EOF
 
 get_version(){