[vlc-devel] [PATCH] Fix non posix test construction in configure.

Alexis Ballier aballier at gentoo.org
Tue Feb 3 21:10:04 CET 2009


POSIX does not document the == construction for test; Even if GNU test and bash builtin allow it, configure is run by sh and FreeBSD test does not allow it so that this test is always false there.
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 26bc6fd..b33b2ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1572,7 +1572,7 @@ dnl Allow runing as root (usefull for people runing on embedded platforms)
 dnl
 AC_ARG_ENABLE(run-as-root,
 [  --enable-run-as-root    allow runing VLC as root (default disabled)])
-AS_IF([test "${enable_run_as_root}" == "yes"],[
+AS_IF([test "${enable_run_as_root}" = "yes"],[
     AC_DEFINE(ALLOW_RUN_AS_ROOT, 1,
               [Define to 1 to allow runing VLC as root (uid 0).])
 ])
-- 
1.6.1.2




More information about the vlc-devel mailing list