From d633ee0455abe0134e6fee5c03850b74f06f2eea Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Thu, 7 Mar 2013 19:50:24 +0100
Subject: [PATCH v3 10/13] build: Do not expand libdir variable
Status: obsolete

Expanding the value when setting it causes uninitialized values to
trickle into generated files like neard.pc, which ends up with stuff
like libdir=NONE/lib.
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0011c79..a8028d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,8 +8,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AM_MAINTAINER_MODE
 
+# Do not expand the default variables so that they can be changed at build
+# time, in the make command-line.
 if (test "${libdir}" = '${exec_prefix}/lib'); then
-	libdir="${prefix}/lib"
+	libdir='${prefix}/lib'
 fi
 
 PKG_PROG_PKG_CONFIG
-- 
1.9.0.rc3.244.g3497008

