[vlc-devel] commit: Not only Cygwin lacks the --short switch to hostname ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jan 14 21:53:17 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 14 22:52:35 2010 +0200| [59f49f9cce13e7561f1c6448803e388062105f83] | committer: Rémi Denis-Courmont 

Not only Cygwin lacks the --short switch to hostname

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59f49f9cce13e7561f1c6448803e388062105f83
---

 configure.ac |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index c04857c..b73734f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5032,12 +5032,7 @@ AC_SUBST(VERSION_REVISION)
 AC_SUBST(VERSION_EXTRA)
 AC_SUBST(COPYRIGHT_YEARS)
 AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure])
-if test "${build_os}" = "cygwin"
-then
-    AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])
-else
-    AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s`", [host which ran configure])
-fi
+AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s 2>/dev/null || hostname`", [host which ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILE_DOMAIN, "`dnsdomainname 2>/dev/null || domainname 2>/dev/null || echo unknown`", [domain of the host which ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILER, "`$CC -v 2>&1 | tail -n 1`", [compiler])
 dnl Win32 need s a numerical version_extra.




More information about the vlc-devel mailing list