Adrian Bunk wrote on Sun, Mar 05, 2017 at 23:52:15 +0200:
> On Sun, Jul 17, 2016 at 03:56:24PM +0200, Chris Lamb wrote:
> >...
> > +--- tcpreen-1.4.4.orig/m4/hostname.m4
> > ++++ tcpreen-1.4.4/m4/hostname.m4
> > +@@ -5,7 +5,7 @@ dnl From Remi Denis-Courmont
> > + AC_DEFUN([RDC_BUILD_HOSTNAME],
> > + [AC_CACHE_CHECK([for build hostname],
> > + rdc_cv_build_hostname,
> > +-[rdc_cv_build_hostname=`hostname -f 2>/dev/null || uname -n 2>/dev/null 
> > || hostname 2>/dev/null || echo "unknown"`

Tangentially, the original line seems unportable: on Solaris, 'hostname
-f' sets the hostname to "-f" and succeeds (without trying the three
other alternatives).

Cheers,

Daniel

Reply via email to