File: configure.ac.patch

package info (click to toggle)
madlib 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,196 kB
  • sloc: cpp: 39,851; sh: 10,041; makefile: 473
file content (28 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
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