< prev index next >

make/autoconf/basics.m4

Print this page




1117     AC_MSG_RESULT([no])
1118   else
1119     AC_MSG_RESULT([yes])
1120   fi
1121   $RMDIR $DELETEDIR
1122   AC_SUBST(FIND_DELETE)
1123 ])
1124 
1125 ###############################################################################
1126 AC_DEFUN([BASIC_CHECK_TAR],
1127 [
1128   # Test which kind of tar was found
1129   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
1130     TAR_TYPE="gnu"
1131   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
1132     TAR_TYPE="bsd"
1133   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
1134     TAR_TYPE="bsd"
1135   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
1136     TAR_TYPE="solaris"
1137   elif test "x$OPENJDK_BUILD_OS" = "xaix"; then
1138     TAR_TYPE="aix"
1139   fi
1140   AC_MSG_CHECKING([what type of tar was found])
1141   AC_MSG_RESULT([$TAR_TYPE])
1142 
1143   TAR_CREATE_FILE_PARAM=""
1144 
1145   if test "x$TAR_TYPE" = "xgnu"; then
1146     TAR_INCLUDE_PARAM="T"
1147     TAR_SUPPORTS_TRANSFORM="true"
1148     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
1149       # When using gnu tar for Solaris targets, need to use compatibility mode
1150       TAR_CREATE_EXTRA_PARAM="--format=ustar"
1151     fi
1152   elif test "x$TAR_TYPE" = "aix"; then
1153     # -L InputList of aix tar: name of file listing the files and directories
1154     # that need to be   archived or extracted
1155     TAR_INCLUDE_PARAM="L"
1156     TAR_SUPPORTS_TRANSFORM="false"
1157   else
1158     TAR_INCLUDE_PARAM="I"
1159     TAR_SUPPORTS_TRANSFORM="false"
1160   fi
1161   AC_SUBST(TAR_TYPE)
1162   AC_SUBST(TAR_CREATE_EXTRA_PARAM)
1163   AC_SUBST(TAR_INCLUDE_PARAM)
1164   AC_SUBST(TAR_SUPPORTS_TRANSFORM)
1165 ])
1166 
1167 ###############################################################################
1168 AC_DEFUN([BASIC_CHECK_GREP],
1169 [
1170   # Test that grep supports -Fx with a list of pattern which includes null pattern.
1171   # This is a problem for the grep resident on AIX.
1172   AC_MSG_CHECKING([that grep ($GREP) -Fx handles empty lines in the pattern list correctly])
1173   # Multiple subsequent spaces..
1174   STACK_SPACES='aaa   bbb   ccc'
1175   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
1176   # patterns in it.




1117     AC_MSG_RESULT([no])
1118   else
1119     AC_MSG_RESULT([yes])
1120   fi
1121   $RMDIR $DELETEDIR
1122   AC_SUBST(FIND_DELETE)
1123 ])
1124 
1125 ###############################################################################
1126 AC_DEFUN([BASIC_CHECK_TAR],
1127 [
1128   # Test which kind of tar was found
1129   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
1130     TAR_TYPE="gnu"
1131   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
1132     TAR_TYPE="bsd"
1133   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
1134     TAR_TYPE="bsd"
1135   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
1136     TAR_TYPE="solaris"


1137   fi
1138   AC_MSG_CHECKING([what type of tar was found])
1139   AC_MSG_RESULT([$TAR_TYPE])
1140 
1141   TAR_CREATE_FILE_PARAM=""
1142 
1143   if test "x$TAR_TYPE" = "xgnu"; then
1144     TAR_INCLUDE_PARAM="T"
1145     TAR_SUPPORTS_TRANSFORM="true"
1146     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
1147       # When using gnu tar for Solaris targets, need to use compatibility mode
1148       TAR_CREATE_EXTRA_PARAM="--format=ustar"
1149     fi





1150   else
1151     TAR_INCLUDE_PARAM="I"
1152     TAR_SUPPORTS_TRANSFORM="false"
1153   fi
1154   AC_SUBST(TAR_TYPE)
1155   AC_SUBST(TAR_CREATE_EXTRA_PARAM)
1156   AC_SUBST(TAR_INCLUDE_PARAM)
1157   AC_SUBST(TAR_SUPPORTS_TRANSFORM)
1158 ])
1159 
1160 ###############################################################################
1161 AC_DEFUN([BASIC_CHECK_GREP],
1162 [
1163   # Test that grep supports -Fx with a list of pattern which includes null pattern.
1164   # This is a problem for the grep resident on AIX.
1165   AC_MSG_CHECKING([that grep ($GREP) -Fx handles empty lines in the pattern list correctly])
1166   # Multiple subsequent spaces..
1167   STACK_SPACES='aaa   bbb   ccc'
1168   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
1169   # patterns in it.


< prev index next >