Fix a bug in the configure script causing the default modules directory to be

set to a wrong value. Incorrect use of the AC_DEFINE_DIR macro (in
configure.ac) results in a value like "23722{exec_prefix}/lib/mcabber".

Help and OK naddy@
This commit is contained in:
tim 2016-03-18 23:57:57 +00:00
parent 99e296222a
commit e8c13c0b07
2 changed files with 18 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.25 2016/03/18 21:38:25 naddy Exp $
# $OpenBSD: Makefile,v 1.26 2016/03/18 23:57:57 tim Exp $
COMMENT= console jabber client
DISTNAME= mcabber-1.0.2
REVISION= 0
CATEGORIES= net
HOMEPAGE= http://mcabber.com/

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-configure,v 1.3 2016/03/18 23:57:57 tim Exp $
Fix a bug causing the default modules directory to be set incorrectly.
--- configure.orig Sat Feb 27 13:41:16 2016
+++ configure Fri Mar 18 20:36:09 2016
@@ -16500,7 +16500,8 @@ fi
exec_prefix_NONE=
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
- ac_define_dir=`eval echo $"${libdir}/${PACKAGE}"`
+ pkglibdir=${libdir}/${PACKAGE}
+ ac_define_dir=`eval echo $pkglibdir`
ac_define_dir=`eval echo $ac_define_dir`
PKGLIB_DIR="$ac_define_dir"