-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfigure.ac
More file actions
54 lines (46 loc) · 1.65 KB
/
configure.ac
File metadata and controls
54 lines (46 loc) · 1.65 KB
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
AC_INIT([git-sqlite], [alpha], [cannadayr]@gmail.com)
AM_INIT_AUTOMAKE([foreign])
# check for bash
AC_CHECK_PROG(bash,[bash],[bash],[no])
test "$bash" == "no" && AC_MSG_ERROR([Required program 'bash' not found.])
# check for sqlite3
AC_CHECK_PROG(sqlite3,[sqlite3],[sqlite3],[no])
test "$sqlite3" == "no" && AC_MSG_ERROR([Required program 'sqlite3' not found.])
# check for sqldiff
AC_CHECK_PROG(sqldiff,[sqldiff],[sqldiff],[no])
test "$sqldiff" == "no" && AC_MSG_ERROR([Required program 'sqldiff' not found.])
# check for git
AC_CHECK_PROG(git,[git],[git],[no])
test "$git" == "no" && AC_MSG_ERROR([Required program 'git' not found.])
# summary
summary="a diff & merge driver for sqlite"
AC_SUBST([summary])
# uuid_v4
uuidv4=m4_normalize("
lower(hex(randomblob(4)))
|| '-'
|| lower(hex(randomblob(2)))
|| '-4'
|| substr(lower(hex(randomblob(2))),2)
|| '-'
|| substr('89ab',abs(random()) % 4 + 1, 1)
|| substr(lower(hex(randomblob(2))),2)
|| '-'
|| lower(hex(randomblob(6)))
")
AC_SUBST([uuidv4])
# Auto-generated warnings.
# Add '@autogenerated_warnging@' and '@autogenerated_timestamp@' to the
# source scripts.
autogenerated_warning="DO NOT EDIT. This is an auto-generated file."
AC_SUBST([autogenerated_warning])
autogenerated_timestamp="Created on $(date)"
AC_SUBST([autogenerated_timestamp])
# include src files
AC_CONFIG_FILES([Makefile
src/Makefile
src/schema.sql:src/schema.sql.in
src/git-sqlite:src/git-sqlite.in
src/git-sqlite-diff:src/git-sqlite-diff.in
src/git-sqlite-merge:src/git-sqlite-merge.in])
AC_OUTPUT