home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.381 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  7.8 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.381
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.381
  11. Problem:    Configure silently skips interfaces that won't work.
  12. Solution:   Add the --enable-fail_if_missing argument. (Shlomi Fish)
  13. Files:        src/Makefile, src/configure.in, src/auto/configure
  14.  
  15.  
  16. *** ../vim-7.3.380/src/Makefile    2011-12-08 15:17:28.000000000 +0100
  17. --- src/Makefile    2011-12-14 20:49:26.000000000 +0100
  18. ***************
  19. *** 389,394 ****
  20. --- 389,399 ----
  21.   #CONF_OPT_PLTHOME  = --with-plthome=/usr/local/drscheme
  22.   #CONF_OPT_PLTHOME  = --with-plthome=/home/me/mz
  23.   
  24. + # Uncomment the next line to fail if one of the requested language interfaces
  25. + # cannot be configured.  Without this Vim will be build anyway, without
  26. + # the failing interfaces.
  27. + #CONF_OPT_FAIL = --enable-fail-if-missing
  28.   # PERL
  29.   # Uncomment one of these when you want to include the Perl interface.
  30.   # First one is for static linking, second one for dynamic loading.
  31. ***************
  32. *** 1648,1654 ****
  33.           CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
  34.           LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
  35.           ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
  36. !         $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
  37.           $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
  38.           $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
  39.           $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
  40. --- 1653,1660 ----
  41.           CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
  42.           LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
  43.           ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
  44. !         $(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \
  45. !         $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
  46.           $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
  47.           $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
  48.           $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
  49. *** ../vim-7.3.380/src/configure.in    2011-12-14 19:22:29.000000000 +0100
  50. --- src/configure.in    2011-12-14 20:46:36.000000000 +0100
  51. ***************
  52. *** 28,33 ****
  53. --- 28,43 ----
  54.   AC_HEADER_STDC
  55.   AC_HEADER_SYS_WAIT
  56.   
  57. + dnl Check for the flag that fails if stuff are missing.
  58. + AC_MSG_CHECKING(--enable-fail-if-missing argument)
  59. + AC_ARG_ENABLE(fail_if_missing,
  60. +     [  --enable-fail-if-missing    Fail if dependencies on additional features
  61. +      specified on the command line are missing.], 
  62. +     [fail_if_missing="yes"],
  63. +     [fail_if_missing="no"])
  64. + AC_MSG_RESULT($fail_if_missing)
  65.   dnl Set default value for CFLAGS if none is defined or it's empty
  66.   if test -z "$CFLAGS"; then
  67.     CFLAGS="-O"
  68. ***************
  69. *** 491,496 ****
  70. --- 501,509 ----
  71.         LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
  72.       fi
  73.     fi
  74. +   if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
  75. +     AC_MSG_ERROR([could not configure lua])
  76. +   fi
  77.     AC_SUBST(LUA_SRC)
  78.     AC_SUBST(LUA_OBJ)
  79.     AC_SUBST(LUA_PRO)
  80. ***************
  81. *** 781,786 ****
  82. --- 794,803 ----
  83.         PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
  84.       fi
  85.     fi
  86. +   if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
  87. +     AC_MSG_ERROR([could not configure perl])
  88. +   fi
  89.   fi
  90.   AC_SUBST(shrpenv)
  91.   AC_SUBST(PERL_SRC)
  92. ***************
  93. *** 966,971 ****
  94. --- 983,992 ----
  95.         AC_MSG_RESULT(too old)
  96.       fi
  97.     fi
  98. +   if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
  99. +     AC_MSG_ERROR([could not configure python])
  100. +   fi
  101.   fi
  102.   
  103.   AC_SUBST(PYTHON_CONFDIR)
  104. ***************
  105. *** 1389,1394 ****
  106. --- 1410,1418 ----
  107.         AC_MSG_RESULT(too old; need Tcl version 8.0 or later)
  108.       fi
  109.     fi
  110. +   if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
  111. +     AC_MSG_ERROR([could not configure Tcl])
  112. +   fi
  113.   fi
  114.   AC_SUBST(TCL_SRC)
  115.   AC_SUBST(TCL_OBJ)
  116. ***************
  117. *** 1469,1474 ****
  118. --- 1493,1502 ----
  119.         AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
  120.       fi
  121.     fi
  122. +   if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
  123. +     AC_MSG_ERROR([could not configure Ruby])
  124. +   fi
  125.   fi
  126.   AC_SUBST(RUBY_SRC)
  127.   AC_SUBST(RUBY_OBJ)
  128. *** ../vim-7.3.380/src/auto/configure    2011-12-14 19:22:29.000000000 +0100
  129. --- src/auto/configure    2011-12-14 20:49:51.000000000 +0100
  130. ***************
  131. *** 741,746 ****
  132. --- 741,747 ----
  133.   ac_subst_files=''
  134.   ac_user_opts='
  135.   enable_option_checking
  136. + enable_fail_if_missing
  137.   enable_darwin
  138.   with_mac_arch
  139.   with_developer_dir
  140. ***************
  141. *** 1418,1423 ****
  142. --- 1419,1426 ----
  143.     --disable-option-checking  ignore unrecognized --enable/--with options
  144.     --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  145.     --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  146. +   --enable-fail-if-missing    Fail if dependencies on additional features
  147. +      specified on the command line are missing.
  148.     --disable-darwin        Disable Darwin (Mac OS X) support.
  149.     --disable-selinux      Don't check for SELinux support.
  150.     --disable-xsmp          Disable XSMP session management
  151. ***************
  152. *** 3949,3954 ****
  153. --- 3952,3970 ----
  154.   fi
  155.   
  156.   
  157. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
  158. + $as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
  159. + # Check whether --enable-fail_if_missing was given.
  160. + if test "${enable_fail_if_missing+set}" = set; then :
  161. +   enableval=$enable_fail_if_missing; fail_if_missing="yes"
  162. + else
  163. +   fail_if_missing="no"
  164. + fi
  165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
  166. + $as_echo "$fail_if_missing" >&6; }
  167.   if test -z "$CFLAGS"; then
  168.     CFLAGS="-O"
  169.     test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  170. ***************
  171. *** 4727,4732 ****
  172. --- 4743,4751 ----
  173.         LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua${vi_cv_version_lua}.so$LUA_SONAME\\\" $LUA_CFLAGS"
  174.       fi
  175.     fi
  176. +   if test "$fail_if_missing" = "yes" -a -z "$LUA_SRC"; then
  177. +     as_fn_error "could not configure lua" "$LINENO" 5
  178. +   fi
  179.   
  180.   
  181.   
  182. ***************
  183. *** 5140,5145 ****
  184. --- 5159,5168 ----
  185.         PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
  186.       fi
  187.     fi
  188. +   if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
  189. +     as_fn_error "could not configure perl" "$LINENO" 5
  190. +   fi
  191.   fi
  192.   
  193.   
  194. ***************
  195. *** 5429,5434 ****
  196. --- 5452,5461 ----
  197.   $as_echo "too old" >&6; }
  198.       fi
  199.     fi
  200. +   if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
  201. +     as_fn_error "could not configure python" "$LINENO" 5
  202. +   fi
  203.   fi
  204.   
  205.   
  206. ***************
  207. *** 6216,6221 ****
  208. --- 6243,6251 ----
  209.   $as_echo "too old; need Tcl version 8.0 or later" >&6; }
  210.       fi
  211.     fi
  212. +   if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
  213. +     as_fn_error "could not configure Tcl" "$LINENO" 5
  214. +   fi
  215.   fi
  216.   
  217.   
  218. ***************
  219. *** 6353,6358 ****
  220. --- 6383,6392 ----
  221.   $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
  222.       fi
  223.     fi
  224. +   if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
  225. +     as_fn_error "could not configure Ruby" "$LINENO" 5
  226. +   fi
  227.   fi
  228.   
  229.   
  230. *** ../vim-7.3.380/src/version.c    2011-12-14 20:21:29.000000000 +0100
  231. --- src/version.c    2011-12-14 20:50:42.000000000 +0100
  232. ***************
  233. *** 716,717 ****
  234. --- 716,719 ----
  235.   {   /* Add new patch number below this line */
  236. + /**/
  237. +     381,
  238.   /**/
  239.  
  240. -- 
  241. The psychic said, "God bless you."  I said, "I didn't sneeze."  She
  242. looked deep into my eyes and said, "You will, eventually."  And, damn
  243. if she wasn't right.  Two days later, I sneezed.  --Ellen Degeneres
  244.  
  245.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  246. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  247. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  248.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  249.