Mercurial > vim
comparison src/auto/configure @ 5240:da95a7f1d5a8 v7.4a.045
updated for version 7.4a.045
Problem: Configure does not always find the right library for Lua. Missing
support for LuaJit.
Solution: Improve the configure detection of Lua. (Hiroshi Shirosaki)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 28 Jul 2013 13:32:15 +0200 |
parents | 2b58913e19a5 |
children | ba37e955913e |
comparison
equal
deleted
inserted
replaced
5239:11cd8d58372e | 5240:da95a7f1d5a8 |
---|---|
672 LUA_CFLAGS | 672 LUA_CFLAGS |
673 LUA_LIBS | 673 LUA_LIBS |
674 LUA_PRO | 674 LUA_PRO |
675 LUA_OBJ | 675 LUA_OBJ |
676 LUA_SRC | 676 LUA_SRC |
677 vi_cv_path_plain_lua | |
678 vi_cv_path_luajit | |
677 vi_cv_path_lua | 679 vi_cv_path_lua |
678 compiledby | 680 compiledby |
679 dogvimdiff | 681 dogvimdiff |
680 dovimdiff | 682 dovimdiff |
681 QUOTESED | 683 QUOTESED |
756 with_compiledby | 758 with_compiledby |
757 enable_xsmp | 759 enable_xsmp |
758 enable_xsmp_interact | 760 enable_xsmp_interact |
759 enable_luainterp | 761 enable_luainterp |
760 with_lua_prefix | 762 with_lua_prefix |
763 with_luajit | |
761 enable_mzschemeinterp | 764 enable_mzschemeinterp |
762 with_plthome | 765 with_plthome |
763 enable_perlinterp | 766 enable_perlinterp |
764 enable_pythoninterp | 767 enable_pythoninterp |
765 with_python_config_dir | 768 with_python_config_dir |
1467 --with-global-runtime=DIR global runtime directory in 'runtimepath' | 1470 --with-global-runtime=DIR global runtime directory in 'runtimepath' |
1468 --with-modified-by=NAME name of who modified a release version | 1471 --with-modified-by=NAME name of who modified a release version |
1469 --with-features=TYPE tiny, small, normal, big or huge (default: normal) | 1472 --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
1470 --with-compiledby=NAME name to show in :version message | 1473 --with-compiledby=NAME name to show in :version message |
1471 --with-lua-prefix=PFX Prefix where Lua is installed. | 1474 --with-lua-prefix=PFX Prefix where Lua is installed. |
1475 --with-luajit Link with LuaJIT instead of Lua. | |
1472 --with-plthome=PLTHOME Use PLTHOME. | 1476 --with-plthome=PLTHOME Use PLTHOME. |
1473 --with-python-config-dir=PATH Python's config directory | 1477 --with-python-config-dir=PATH Python's config directory |
1474 --with-python3-config-dir=PATH Python's config directory | 1478 --with-python3-config-dir=PATH Python's config directory |
1475 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) | 1479 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
1476 --with-ruby-command=RUBY name of the Ruby command (default: ruby) | 1480 --with-ruby-command=RUBY name of the Ruby command (default: ruby) |
4644 $as_echo "not set, default to /usr" >&6; } | 4648 $as_echo "not set, default to /usr" >&6; } |
4645 vi_cv_path_lua_pfx="/usr" | 4649 vi_cv_path_lua_pfx="/usr" |
4646 fi | 4650 fi |
4647 fi | 4651 fi |
4648 | 4652 |
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 | |
4654 $as_echo_n "checking --with-luajit... " >&6; } | |
4655 | |
4656 # Check whether --with-luajit was given. | |
4657 if test "${with_luajit+set}" = set; then : | |
4658 withval=$with_luajit; vi_cv_with_luajit="$withval" | |
4659 else | |
4660 vi_cv_with_luajit="no" | |
4661 fi | |
4662 | |
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 | |
4664 $as_echo "$vi_cv_with_luajit" >&6; } | |
4665 | |
4649 LUA_INC= | 4666 LUA_INC= |
4650 if test "X$vi_cv_path_lua_pfx" != "X"; then | 4667 if test "X$vi_cv_path_lua_pfx" != "X"; then |
4651 # Extract the first word of "lua", so it can be a program name with args. | 4668 if test "x$vi_cv_with_luajit" != "xno"; then |
4652 set dummy lua; ac_word=$2 | 4669 # Extract the first word of "luajit", so it can be a program name with args. |
4670 set dummy luajit; ac_word=$2 | |
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4654 $as_echo_n "checking for $ac_word... " >&6; } | 4672 $as_echo_n "checking for $ac_word... " >&6; } |
4655 if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then : | 4673 if test "${ac_cv_path_vi_cv_path_luajit+set}" = set; then : |
4656 $as_echo_n "(cached) " >&6 | 4674 $as_echo_n "(cached) " >&6 |
4657 else | 4675 else |
4658 case $vi_cv_path_lua in | 4676 case $vi_cv_path_luajit in |
4659 [\\/]* | ?:[\\/]*) | 4677 [\\/]* | ?:[\\/]*) |
4660 ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path. | 4678 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. |
4661 ;; | 4679 ;; |
4662 *) | 4680 *) |
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4664 for as_dir in $PATH | 4682 for as_dir in $PATH |
4665 do | 4683 do |
4666 IFS=$as_save_IFS | 4684 IFS=$as_save_IFS |
4667 test -z "$as_dir" && as_dir=. | 4685 test -z "$as_dir" && as_dir=. |
4668 for ac_exec_ext in '' $ac_executable_extensions; do | 4686 for ac_exec_ext in '' $ac_executable_extensions; do |
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4670 ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext" | 4688 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" |
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4672 break 2 | 4690 break 2 |
4673 fi | 4691 fi |
4674 done | 4692 done |
4675 done | 4693 done |
4676 IFS=$as_save_IFS | 4694 IFS=$as_save_IFS |
4677 | 4695 |
4678 ;; | 4696 ;; |
4679 esac | 4697 esac |
4680 fi | 4698 fi |
4681 vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua | 4699 vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit |
4682 if test -n "$vi_cv_path_lua"; then | 4700 if test -n "$vi_cv_path_luajit"; then |
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_lua" >&5 | 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 |
4684 $as_echo "$vi_cv_path_lua" >&6; } | 4702 $as_echo "$vi_cv_path_luajit" >&6; } |
4685 else | 4703 else |
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4687 $as_echo "no" >&6; } | 4705 $as_echo "no" >&6; } |
4688 fi | 4706 fi |
4689 | 4707 |
4690 | 4708 |
4691 if test "X$vi_cv_path_lua" != "X"; then | 4709 if test "X$vi_cv_path_luajit" != "X"; then |
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 | 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 |
4711 $as_echo_n "checking LuaJIT version... " >&6; } | |
4712 if test "${vi_cv_version_luajit+set}" = set; then : | |
4713 $as_echo_n "(cached) " >&6 | |
4714 else | |
4715 vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT \([0-9.]*\)\.[0-9] .*/\1/'` | |
4716 fi | |
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 | |
4718 $as_echo "$vi_cv_version_luajit" >&6; } | |
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 | |
4720 $as_echo_n "checking Lua version of LuaJIT... " >&6; } | |
4721 if test "${vi_cv_version_lua_luajit+set}" = set; then : | |
4722 $as_echo_n "(cached) " >&6 | |
4723 else | |
4724 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` | |
4725 fi | |
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 | |
4727 $as_echo "$vi_cv_version_lua_luajit" >&6; } | |
4728 vi_cv_path_lua="$vi_cv_path_luajit" | |
4729 vi_cv_version_lua="$vi_cv_version_lua_luajit" | |
4730 fi | |
4731 else | |
4732 # Extract the first word of "lua", so it can be a program name with args. | |
4733 set dummy lua; ac_word=$2 | |
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4735 $as_echo_n "checking for $ac_word... " >&6; } | |
4736 if test "${ac_cv_path_vi_cv_path_plain_lua+set}" = set; then : | |
4737 $as_echo_n "(cached) " >&6 | |
4738 else | |
4739 case $vi_cv_path_plain_lua in | |
4740 [\\/]* | ?:[\\/]*) | |
4741 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. | |
4742 ;; | |
4743 *) | |
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4745 for as_dir in $PATH | |
4746 do | |
4747 IFS=$as_save_IFS | |
4748 test -z "$as_dir" && as_dir=. | |
4749 for ac_exec_ext in '' $ac_executable_extensions; do | |
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4751 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" | |
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4753 break 2 | |
4754 fi | |
4755 done | |
4756 done | |
4757 IFS=$as_save_IFS | |
4758 | |
4759 ;; | |
4760 esac | |
4761 fi | |
4762 vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua | |
4763 if test -n "$vi_cv_path_plain_lua"; then | |
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 | |
4765 $as_echo "$vi_cv_path_plain_lua" >&6; } | |
4766 else | |
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4768 $as_echo "no" >&6; } | |
4769 fi | |
4770 | |
4771 | |
4772 if test "X$vi_cv_path_plain_lua" != "X"; then | |
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 | |
4693 $as_echo_n "checking Lua version... " >&6; } | 4774 $as_echo_n "checking Lua version... " >&6; } |
4694 if test "${vi_cv_version_lua+set}" = set; then : | 4775 if test "${vi_cv_version_plain_lua+set}" = set; then : |
4695 $as_echo_n "(cached) " >&6 | 4776 $as_echo_n "(cached) " >&6 |
4696 else | 4777 else |
4697 vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION)" | sed 's/.* //'` | 4778 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` |
4698 fi | 4779 fi |
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua" >&5 | 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 |
4700 $as_echo "$vi_cv_version_lua" >&6; } | 4781 $as_echo "$vi_cv_version_plain_lua" >&6; } |
4782 fi | |
4783 vi_cv_path_lua="$vi_cv_path_plain_lua" | |
4784 vi_cv_version_lua="$vi_cv_version_plain_lua" | |
4701 fi | 4785 fi |
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 | 4786 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then |
4703 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } | 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5 |
4704 if test -f $vi_cv_path_lua_pfx/include/lua.h; then | 4788 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } |
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 4789 if test -f $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h; then |
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4706 $as_echo "yes" >&6; } | 4791 $as_echo "yes" >&6; } |
4707 else | 4792 LUA_INC=/luajit-$vi_cv_version_luajit |
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4709 $as_echo "no" >&6; } | |
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 | |
4711 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } | |
4712 if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then | |
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4714 $as_echo "yes" >&6; } | |
4715 LUA_INC=/lua$vi_cv_version_lua | |
4716 else | |
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4718 $as_echo "no" >&6; } | |
4719 vi_cv_path_lua_pfx= | |
4720 fi | 4793 fi |
4721 fi | 4794 fi |
4795 if test "X$LUA_INC" = "X"; then | |
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 | |
4797 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } | |
4798 if test -f $vi_cv_path_lua_pfx/include/lua.h; then | |
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4800 $as_echo "yes" >&6; } | |
4801 else | |
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4803 $as_echo "no" >&6; } | |
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5 | |
4805 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } | |
4806 if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then | |
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4808 $as_echo "yes" >&6; } | |
4809 LUA_INC=/lua$vi_cv_version_lua | |
4810 else | |
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4812 $as_echo "no" >&6; } | |
4813 vi_cv_path_lua_pfx= | |
4814 fi | |
4815 fi | |
4816 fi | |
4722 fi | 4817 fi |
4723 | 4818 |
4724 if test "X$vi_cv_path_lua_pfx" != "X"; then | 4819 if test "X$vi_cv_path_lua_pfx" != "X"; then |
4725 if test "X$LUA_INC" != "X"; then | 4820 if test "x$vi_cv_with_luajit" != "xno"; then |
4726 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" | 4821 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` |
4822 if test "X$multiarch" != "X"; then | |
4823 lib_multiarch="lib/${multiarch}" | |
4824 else | |
4825 lib_multiarch="lib" | |
4826 fi | |
4827 if test "X$vi_cv_version_lua" = "X"; then | |
4828 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" | |
4829 else | |
4830 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" | |
4831 fi | |
4727 else | 4832 else |
4728 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" | 4833 if test "X$LUA_INC" != "X"; then |
4834 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" | |
4835 else | |
4836 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" | |
4837 fi | |
4729 fi | 4838 fi |
4730 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" | |
4731 LUA_SRC="if_lua.c" | |
4732 LUA_OBJ="objects/if_lua.o" | |
4733 LUA_PRO="if_lua.pro" | |
4734 $as_echo "#define FEAT_LUA 1" >>confdefs.h | |
4735 | |
4736 if test "$enable_luainterp" = "dynamic"; then | 4839 if test "$enable_luainterp" = "dynamic"; then |
4840 lua_ok="yes" | |
4841 else | |
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 | |
4843 $as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } | |
4844 libs_save=$LIBS | |
4845 LIBS="$LIBS $LUA_LIBS" | |
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4847 /* end confdefs.h. */ | |
4848 | |
4849 int | |
4850 main () | |
4851 { | |
4852 | |
4853 ; | |
4854 return 0; | |
4855 } | |
4856 _ACEOF | |
4857 if ac_fn_c_try_link "$LINENO"; then : | |
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4859 $as_echo "yes" >&6; }; lua_ok="yes" | |
4860 else | |
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4862 $as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" | |
4863 fi | |
4864 rm -f core conftest.err conftest.$ac_objext \ | |
4865 conftest$ac_exeext conftest.$ac_ext | |
4866 LIBS=$libs_save | |
4867 fi | |
4868 if test "x$lua_ok" = "xyes"; then | |
4869 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" | |
4870 LUA_SRC="if_lua.c" | |
4871 LUA_OBJ="objects/if_lua.o" | |
4872 LUA_PRO="if_lua.pro" | |
4873 $as_echo "#define FEAT_LUA 1" >>confdefs.h | |
4874 | |
4875 fi | |
4876 if test "$enable_luainterp" = "dynamic"; then | |
4877 if test "x$vi_cv_with_luajit" != "xno"; then | |
4878 luajit="jit" | |
4879 fi | |
4737 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then | 4880 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then |
4738 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" | 4881 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" |
4739 else | 4882 else |
4740 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` | 4883 if test "x$MACOSX" = "xyes"; then |
4741 if test "X$multiarch" != "X"; then | 4884 ext="dylib" |
4742 lib_multiarch="lib/${multiarch}" | 4885 indexes="" |
4886 else | |
4887 ext="so" | |
4888 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" | |
4889 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` | |
4890 if test "X$multiarch" != "X"; then | |
4891 lib_multiarch="lib/${multiarch}" | |
4892 fi | |
4743 fi | 4893 fi |
4744 for subdir in "${lib_multiarch}" lib64 lib; do | 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 |
4895 $as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } | |
4896 for subdir in "${lib_multiarch}" lib64 lib; do | |
4745 if test -z "$subdir"; then | 4897 if test -z "$subdir"; then |
4746 continue | 4898 continue |
4747 fi | 4899 fi |
4748 for sover in "${vi_cv_version_lua}.so" "-${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do | 4900 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ |
4749 for i in .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 ""; do | 4901 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do |
4750 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${sover}$i"; then | 4902 for i in $indexes ""; do |
4903 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then | |
4751 sover2="$i" | 4904 sover2="$i" |
4752 break 3 | 4905 break 3 |
4753 fi | 4906 fi |
4754 done | 4907 done |
4755 done | 4908 done |
4909 sover="" | |
4756 done | 4910 done |
4757 vi_cv_dll_name_lua="liblua${sover}$sover2" | 4911 if test "X$sover" = "X"; then |
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4913 $as_echo "no" >&6; } | |
4914 lua_ok="no" | |
4915 vi_cv_dll_name_lua="liblua${luajit}.${ext}" | |
4916 else | |
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4918 $as_echo "yes" >&6; } | |
4919 lua_ok="yes" | |
4920 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" | |
4921 fi | |
4758 fi | 4922 fi |
4759 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h | 4923 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h |
4760 | 4924 |
4761 LUA_LIBS="" | 4925 LUA_LIBS="" |
4762 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" | 4926 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" |
4763 fi | 4927 fi |
4764 fi | 4928 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ |
4765 if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then | 4929 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ |
4930 test "`(uname -m) 2>/dev/null`" = "x86_64"; then | |
4931 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" | |
4932 fi | |
4933 fi | |
4934 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then | |
4766 as_fn_error "could not configure lua" "$LINENO" 5 | 4935 as_fn_error "could not configure lua" "$LINENO" 5 |
4767 fi | 4936 fi |
4768 | 4937 |
4769 | 4938 |
4770 | 4939 |