Make sure that srcdir has a full pathname so source indexing works.

This commit is contained in:
Sam Lantinga 2013-07-08 09:21:54 -07:00
parent 435103b3d9
commit c6348f33e7
2 changed files with 5 additions and 0 deletions

2
configure vendored
View file

@ -15791,6 +15791,8 @@ else
fi
srcdir=`cd $srcdir && pwd`
INCLUDE="-I$srcdir/include"
if test x$srcdir != x.; then
INCLUDE="-Iinclude $INCLUDE"

View file

@ -57,6 +57,9 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_CHECK_TOOL(WINDRES, [windres], [:])
dnl Make sure that srcdir is a full pathname
srcdir=`cd $srcdir && pwd`
dnl Set up the compiler and linker flags
INCLUDE="-I$srcdir/include"
if test x$srcdir != x.; then