summaryrefslogtreecommitdiff
path: root/gphoto-m4/gp-progs.m4
blob: 2a0df6f3a15301dea07c83506b3adaefd0a144d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
dnl ####################################################################
dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([GP_PROG_CMP])dnl
AC_DEFUN_ONCE([GP_PROG_CMP],[dnl
AC_ARG_VAR([CMP], [cmp file comparison command])dnl
AC_PATH_PROG([CMP], [cmp])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([GP_PROG_COMM])dnl
AC_DEFUN_ONCE([GP_PROG_COMM],[dnl
AC_ARG_VAR([COMM], [comm line by line comparison command])dnl
AC_PATH_PROG([COMM], [comm])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([GP_PROG_DIFF])dnl
AC_DEFUN_ONCE([GP_PROG_DIFF],[dnl
AC_ARG_VAR([DIFF], [diff file comparison command])dnl
AC_PATH_PROG([DIFF], [diff])dnl
dnl
dnl DIFF_MAYBE_U only contains -u for readability, so if diff does not
dnl support -u, we can still just run DIFF without -u.
AC_MSG_CHECKING([whether DIFF supports -u])
:>gp-empty-file-a
:>gp-empty-file-b
AS_IF([diff -u gp-empty-file-a gp-empty-file-b], [dnl
       AC_MSG_RESULT([yes])
       DIFF_MAYBE_U="${DIFF} -u"
], [dnl
       AC_MSG_RESULT([no])
       DIFF_MAYBE_U="${DIFF}"
])
rm -f gp-empty-file-a gp-empty-file-b
AC_SUBST([DIFF_MAYBE_U])
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([GP_PROG_EXPR])dnl
AC_DEFUN_ONCE([GP_PROG_EXPR],[dnl
AC_ARG_VAR([EXPR], [expr expression evaluation command])dnl
AC_PATH_PROG([EXPR], [expr])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([GP_PROG_SORT])dnl
AC_DEFUN_ONCE([GP_PROG_SORT],[dnl
AC_ARG_VAR([SORT], [sort text file line sorting command])dnl
AC_PATH_PROG([SORT], [sort])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([^GP_PROG_TR\(])dnl
m4_pattern_forbid([^GP_PROG_TR$])dnl
AC_DEFUN_ONCE([GP_PROG_TR],[dnl
AC_ARG_VAR([TR], [tr string character translation command])dnl
AC_PATH_PROG([TR], [tr])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl ####################################################################
m4_pattern_forbid([^GP_PROG_UNIQ\(])dnl
m4_pattern_forbid([^GP_PROG_UNIQ$])dnl
AC_DEFUN_ONCE([GP_PROG_UNIQ],[dnl
AC_ARG_VAR([UNIQ], [uniq sorted file uniquification command])dnl
AC_PATH_PROG([UNIQ], [uniq])dnl
])dnl
dnl
dnl
dnl ####################################################################
dnl
dnl Local Variables:
dnl mode: autoconf
dnl End: