* configure.ac: Fix hostname reporting on Cygwin (since -s doesn't exist) in referenc...
authorDennis van Amerongen <trax@videolan.org>
Sun, 27 Jan 2008 23:41:54 +0000 (23:41 +0000)
committerDennis van Amerongen <trax@videolan.org>
Sun, 27 Jan 2008 23:41:54 +0000 (23:41 +0000)
configure.ac

index fca164e..b671462 100644 (file)
@@ -6043,7 +6043,12 @@ AC_SUBST(VERSION_MAJOR)
 AC_SUBST(VERSION_MINOR)
 AC_SUBST(VERSION_REVISION)
 AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure]) 
-AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s`", [host which ran configure]) 
+if test "${SYS}" = "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_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])