Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje


Modified Files:
        configure.in 


Log Message:
Add configure option to manually specify vim directory

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/configure.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- configure.in        6 Mar 2004 15:17:35 -0000       1.7
+++ configure.in        6 Mar 2004 17:20:04 -0000       1.8
@@ -215,17 +215,32 @@
 AC_SUBST(ecore_cflags)
 AC_SUBST(ecore_libs)
 
+AC_MSG_CHECKING([for location of Vim data files])
 install_vim="yes";
-if test -d "${prefix}/share/vim"; then
-   vimdir="${prefix}/share/vim"
-elif test -d "/usr/share/vim"; then
-   vimdir="/usr/share/vim"
-elif test -d "/usr/local/share/vim"; then
-   vimdir="/usr/local/share/vim"
-elif test -d "/opt/share/vim"; then
-   vimdir="/opt/share/vim"
+AC_ARG_WITH(vim,
+    [  --with-vim=DIR          Location of Vim data files (PREFIX/share/vim)],
+    [if test -d "${withval}"; then
+       vimdir="${withval}"
+    fi])
+
+if test "x${vimdir}" = "x" ; then
+   if test -d "${prefix}/share/vim"; then
+      vimdir="${prefix}/share/vim"
+   elif test -d "/usr/share/vim"; then
+      vimdir="/usr/share/vim"
+   elif test -d "/usr/local/share/vim"; then
+      vimdir="/usr/local/share/vim"
+   elif test -d "/opt/share/vim"; then
+      vimdir="/opt/share/vim"
+   else
+      install_vim="no"
+   fi
+fi
+
+if test "${install_vim}" = "yes"; then
+   AC_MSG_RESULT([$vimdir])
 else
-   install_vim="no"
+   AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
 fi
 
 AC_SUBST(vimdir)




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to