Skip to content
Snippets Groups Projects
Commit 0357c443 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

configure: fix VLC_COMPILE_BY/VLC_COMPILE_HOST empty by default

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

Fixes #26165
parent 7fd9327d
No related branches found
No related tags found
1 merge request!724configure: fix VLC_COMPILE_BY/VLC_COMPILE_HOST empty by default
Pipeline #145884 passed with stage
in 15 minutes and 14 seconds
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment