CVS patchset: 1868
CVS date: 1997/10/22 00:20:06
/* Define as 1 if you have <sys/sysconfig.h> (only aix?) */
#define HAVE_SYS_SYSTEMCFG_H 0
+/* Define if the patch call you'll be using is 2.1 or older */
+#define CONFIG_OLDPATCH_21 0
+
#endif
else
AC_MSG_RESULT(yes)
fi
+
+ AC_MSG_CHECKING(old version of patch)
+ PATCHVERSION=`patch --version 2>&1 | awk '{print $3}'`
+ PATCHMAJOR=`echo $PATCHVERSION | cut -d. -f1`
+ PATCHMINOR=`echo $PATCHVERSION | cut -d. -f2`
+
+ if test $PATCHMAJOR -le 2 -a $PATCHMINOR -le 1; then
+ AC_DEFINE(CONFIG_OLDPATCH_21)
+ AC_MSG_RESULT(patch older then 2.2 found)
+ else
+ AC_MSG_RESULT(patch later then 2.2 found)
+ fi
fi
topdir=`pwd`