[vlc-commits] [Git][videolan/vlc][master] configure: fix VLC_COMPILE_BY/VLC_COMPILE_HOST empty by default

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 8 08:34:52 UTC 2021



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0357c443 by Steve Lhomme at 2021-10-08T08:19:10+00:00
configure: fix VLC_COMPILE_BY/VLC_COMPILE_HOST empty by default

After 9e7ed0247dd298fe8597431ae0738882e734011b the test for the environment
variable wasn't done properly. Resulting in empty variables (and error messages
during configure).

Fixes #26165

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -4501,13 +4501,13 @@ AC_SUBST([VERSION_MINOR])
 AC_SUBST([VERSION_REVISION])
 AC_SUBST([VERSION_EXTRA])
 AC_SUBST([COPYRIGHT_YEARS])
-if [ -z "$VLC_COMPILE_BY" ]; then
+AS_IF([test -z "$VLC_COMPILE_BY"],[
    VLC_COMPILE_BY=`whoami|sed -e 's/\\\/\\\\\\\/g'`
-fi
+])
 AC_DEFINE_UNQUOTED([VLC_COMPILE_BY], "$VLC_COMPILE_BY", [user who ran configure])
-if [ -z "$VLC_COMPILE_HOST" ]; then
+AS_IF([test -z "$VLC_COMPILE_HOST"],[
    VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname`
-fi
+])
 AC_DEFINE_UNQUOTED([VLC_COMPILE_HOST], "$VLC_COMPILE_HOST", [host which ran configure])
 AC_DEFINE_UNQUOTED([VLC_COMPILER], "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ *$//'`", [compiler])
 dnl



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0357c443e2f9e26f70bccc1cca9f8d376ffe9c1c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0357c443e2f9e26f70bccc1cca9f8d376ffe9c1c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list