aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-01 20:26:19 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-01 20:26:19 +0100
commitb66d269b94016d43b3d256ab01c123ba2937c917 (patch)
tree202a74db3405a262c95aeba89f71b738cc1d37aa /configure.ac
parent9dd2447d42fd6c822139f3cd1fd2cd284346e5e8 (diff)
downloadsciteco-b66d269b94016d43b3d256ab01c123ba2937c917.tar.gz
perform additional expansions on explicitly-specified Scintilla paths
a common ./configure parameter would be --with-scintilla=~/scintilla. however the calling shell will not expand tilde and the invoked shell will not automatically fully expand variables.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b7fab50..4a9d500 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,7 +80,9 @@ AC_ARG_WITH(scintilla,
AS_HELP_STRING([--with-scintilla=PATH],
[Specify Scintilla's path [default=..]]),
[SCINTILLA_PATH=$withval], [SCINTILLA_PATH=..])
-SCINTILLA_PATH=`$READLINK -e $SCINTILLA_PATH`
+# eval necessary to perform necessary expansions that may not
+# have been done by the calling shell
+SCINTILLA_PATH=`eval $READLINK -e $SCINTILLA_PATH`
AC_SUBST(SCINTILLA_PATH)
CPPFLAGS="$CPPFLAGS -I$SCINTILLA_PATH/include -DSCI_LEXER"