]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.555 v7.3.555
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Jun 2012 17:19:41 +0000 (19:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Jun 2012 17:19:41 +0000 (19:19 +0200)
Problem:    Building on IBM z/OS fails.
Solution:   Adjust configure. Use the QUOTESED value from config.mk instead of
            the hard coded one in Makefile. (Stephen Bovy)

src/Makefile
src/auto/configure
src/configure.in
src/version.c

index 8197b120d220732d19229d29d83e4bd42302de74..5a4ca885b166a7a56406287577263c875e97d8b2 100644 (file)
@@ -875,6 +875,10 @@ LINT_OPTIONS = -beprxzF
 #CFLAGS = -O -Qtarget=m88110compat
 #EXTRA_LIBS = -lgen
 
+# The value of QUOTESED comes from auto/config.mk.
+# Uncomment the next line to use the default value.
+# QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
+
 ##################### end of system specific lines ################### }}}
 
 ### Names of the programs and targets  {{{1
@@ -2411,7 +2415,6 @@ auto/if_perl.c: if_perl.xs
 auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
        CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
 
-QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
 auto/pathdef.c: Makefile auto/config.mk
        -@echo creating $@
        -@echo '/* pathdef.c */' > $@
index 3321f49134792bca807408b9f26ed51f10a16e71..ae0d12157a794c5ac33b579d978970b28203f148 100755 (executable)
@@ -4426,15 +4426,18 @@ case `uname` in
                  echo ""
                  echo "------------------------------------------"
                  echo " On z/OS Unix, the environment variable"
-                 echo " __CC_${ccn}MODE must be set to \"1\"!"
+                 echo " _CC_${ccn}MODE must be set to \"1\"!"
                  echo " Do:"
                  echo "    export _CC_${ccn}MODE=1"
                  echo " and then call configure again."
                  echo "------------------------------------------"
                  exit 1
                fi
-               CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
-                LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
+               # Set CFLAGS for configure process.
+               # This will be reset later for config.mk.
+               # Use haltonmsg to force error for missing H files.
+               CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
+               LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
                ;;
@@ -8697,8 +8700,13 @@ fi
 if test -z "$SKIP_MOTIF"; then
   cppflags_save=$CPPFLAGS
   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
-  for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
-                  Xm/UnhighlightT.h Xm/Notebook.h
+  if test "$zOSUnix" = "yes"; then
+       xmheader="Xm/Xm.h"
+  else
+       xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
+          Xm/UnhighlightT.h Xm/Notebook.h"
+  fi
+  for ac_header in $xmheader
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -8713,7 +8721,7 @@ fi
 done
 
 
-  if test $ac_cv_header_Xm_XpmP_h = yes; then
+  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12590,6 +12598,11 @@ $as_echo "no" >&6; }
 fi
 
 
+# IBM z/OS reset CFLAGS for config.mk
+if test "$zOSUnix" = "yes"; then
+       CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
+fi
+
 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
 
 cat >confcache <<\_ACEOF
index 2ede332adaea36d57e389766dd208cfde76abed9..743990437b6a43eef7390f7fc8a2db740b8a95af 100644 (file)
@@ -329,15 +329,18 @@ case `uname` in
                  echo ""
                  echo "------------------------------------------"
                  echo " On z/OS Unix, the environment variable"
-                 echo " __CC_${ccn}MODE must be set to \"1\"!"
+                 echo " _CC_${ccn}MODE must be set to \"1\"!"
                  echo " Do:"
                  echo "    export _CC_${ccn}MODE=1"
                  echo " and then call configure again."
                  echo "------------------------------------------"
                  exit 1
                fi
-               CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
-                LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
+               # Set CFLAGS for configure process.
+               # This will be reset later for config.mk.
+               # Use haltonmsg to force error for missing H files.
+               CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
+               LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
                AC_MSG_RESULT(yes)
                ;;
     *)         zOSUnix="no";
@@ -2378,10 +2381,15 @@ dnl Only use the Xm directory when compiling Motif, don't use it for Athena
 if test -z "$SKIP_MOTIF"; then
   cppflags_save=$CPPFLAGS
   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
-  AC_CHECK_HEADERS(Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
-                  Xm/UnhighlightT.h Xm/Notebook.h)
+  if test "$zOSUnix" = "yes"; then
+       xmheader="Xm/Xm.h"
+  else
+       xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
+          Xm/UnhighlightT.h Xm/Notebook.h"  
+  fi    
+  AC_CHECK_HEADERS($xmheader)
 
-  if test $ac_cv_header_Xm_XpmP_h = yes; then
+  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
     dnl Solaris uses XpmAttributes_21, very annoying.
     AC_MSG_CHECKING([for XpmAttributes_21 in Xm/XpmP.h])
     AC_TRY_COMPILE([#include <Xm/XpmP.h>], [XpmAttributes_21 attr;],
@@ -3642,6 +3650,11 @@ else
 fi
 AC_SUBST(LINK_AS_NEEDED)
 
+# IBM z/OS reset CFLAGS for config.mk
+if test "$zOSUnix" = "yes"; then
+       CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
+fi
+
 dnl write output files
 AC_OUTPUT(auto/config.mk:config.mk.in)
 
index 9ef28d475c7a4a15dca78fedd9bf9d3d8e2b4141..d3bb184ffdc2c69abf079f47eb01c42b8045b74d 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    555,
 /**/
     554,
 /**/