aboutsummaryrefslogtreecommitdiff
path: root/m4/diff.m4
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-13 21:57:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-23 21:20:44 +0300
commitfc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch)
tree6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /m4/diff.m4
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'm4/diff.m4')
-rw-r--r--m4/diff.m453
1 files changed, 0 insertions, 53 deletions
diff --git a/m4/diff.m4 b/m4/diff.m4
deleted file mode 100644
index 44996fb..0000000
--- a/m4/diff.m4
+++ /dev/null
@@ -1,53 +0,0 @@
-dnl file : m4/diff.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl DIFF_TOOL
-dnl
-AC_DEFUN([DIFF_TOOL], [
-diff_found=no
-
-AC_ARG_VAR([DIFF],[diff command])
-AC_ARG_VAR([DIFFFLAGS],[diff flags])
-
-AC_ARG_WITH(
- [diff],
- [AC_HELP_STRING([--with-diff=PATH],[path to the diff program])],
- [diff_path=${withval}],
- [diff_path=])
-
-AC_MSG_CHECKING([for diff])
-
-if test x"$DIFF" = x; then
- if test x"$diff_path" != x; then
- AS_SET_CATFILE([abs_diff_path], [$ac_pwd], [$diff_path])
- DIFF="$abs_diff_path"
- else
- DIFF=diff
- fi
-fi
-
-cat >conftest.txt
-
-$DIFF conftest.txt conftest.txt 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([$DIFF])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([diff command is not found; consider setting the DIFF variable or using --with-diff=PATH])
-fi
-
-AC_MSG_CHECKING([whether $DIFF accepts -u])
-
-$DIFF -u conftest.txt conftest.txt 2>/dev/null 1>&2
-
-if test x"$?" = x0; then
- AC_MSG_RESULT([yes])
- DIFFFLAGS="$DIFFFLAGS -u"
-else
- AC_MSG_RESULT([no])
-fi
-
-rm -f conftest.txt
-
-])dnl