title: Build Vim with lua on Debian 7.8
body: <p>I'm trying to build it myself since the version in debian apt-get is too old for a plugin I need, and this plugin needs lua.</p>
  
  <p>I did <code>apt-get install libtolua-dev</code></p>
  
  <p>And am runnning the command </p>
  
  <pre><code>./configure --with-features=huge \
          --enable-rubyinterp \
          --enable-pythoninterp \
          --with-python-config-dir=/usr/lib/python2.7/config \
          --enable-perlinterp \
          --enable-gui=gtk2 --enable-cscope --prefix=/usr \
          --enable-luainterp \
  </code></pre>
  
  <p>When I run this command, at some point the program will say <code>checking Lua version... (cached) 5.0.3</code> when I actually have version 5.2 installed. When I run the configure I get:</p>
  
  <pre><code>checking for lua... (cached) /usr/bin/lua
  checking if lua.h can be found in /usr/include... no
  checking if lua.h can be found in /usr/include/lua5.0.3... no
  </code></pre>
  
  <p>So I tried to copy all the files from /usr/include/lua5.2 to a new directory /usr/include/lua5.0.3
  Then I'll get</p>
  
  <pre><code>checking if lua.h can be found in /usr/include... no
  checking if lua.h can be found in /usr/include/lua5.0.3... yes
  checking if link with -L/usr/lib -llua5.0.3 is sane... no
  </code></pre>
  
  <p>I don't understand how to make it use lua 5.2.</p>