1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Chris Lamb <lamby@debian.org>
Subject: Add --with-hostname to configure.ac
Bug-Debian: https://bugs.debian.org/778946
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,10 @@
AC_HELP_STRING([--with-parser-prefix=PFX],
[prefix where the parser is installed]),
[PARSER_PREFIX=$withval])
+AC_ARG_WITH(hostname,
+ AC_HELP_STRING([--with-hostname=HOSTNAME],
+ [use specified hostname]),
+ [HOSTNAME=$withval])
dnl Parse '--enable' command line options
AC_ARG_ENABLE(blas-lapack,
@@ -190,7 +194,9 @@
dnl Get the operating system and machine names
UNAME=`uname`
-HOSTNAME=`hostname`
+if test "x${HOSTNAME}" = "x" ; then
+ HOSTNAME=`hostname`
+fi
dnl Check for default compilers
AC_PROG_CC
|