-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
67 lines (53 loc) · 2.1 KB
/
configure.ac
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
AC_PREREQ([2.69])
AC_INIT([passgen], [1.0.0], [[email protected]], [passgen_v1.0.0], [https://github.com/yarkovaleksei/passgen])
CURDATE=$(date "+%d %b %Y")
PACKAGE_AUTHOR="Yarkov Aleksey"
PACKAGE_DESCRIPTION="Console password generator"
PACKAGE_LICENSE="MIT"
PACKAGE_EMAIL="[email protected]"
DEFS=" -DHAVE_CONFIG_H"
DEFAULT_PASSWORD_LENGTH=25
MAX_PASSWORD_LENGTH=4096
MAX_PASSWORD_COUNT=1000000
MAX_PATTERN_LENGTH=200
ERROR_MSG_BUFFER_LENGTH=300
AC_SUBST(CURDATE)
AC_SUBST(PACKAGE_AUTHOR)
AC_SUBST(PACKAGE_DESCRIPTION)
AC_SUBST(PACKAGE_LICENSE)
AC_SUBST(PACKAGE_EMAIL)
AC_SUBST(DEFS)
AC_SUBST(DEFAULT_PASSWORD_LENGTH)
AC_SUBST(MAX_PASSWORD_LENGTH)
AC_SUBST(MAX_PASSWORD_COUNT)
AC_SUBST(MAX_PATTERN_LENGTH)
AC_SUBST(ERROR_MSG_BUFFER_LENGTH)
AC_DEFINE(DEFAULT_PASSWORD_LENGTH, 25, [Define to the DEFAULT_PASSWORD_LENGTH])
AC_DEFINE(MAX_PASSWORD_LENGTH, 4096, [Define to the MAX_PASSWORD_LENGTH])
AC_DEFINE(MAX_PASSWORD_COUNT, 1000000, [Define to the MAX_PASSWORD_COUNT])
AC_DEFINE(MAX_PATTERN_LENGTH, 200, [Define to the MAX_PATTERN_LENGTH])
AC_DEFINE(ERROR_MSG_BUFFER_LENGTH, 300, [Define to the ERROR_MSG_BUFFER_LENGTH])
AC_DEFINE(PACKAGE_AUTHOR, "Yarkov Aleksey", [Define to the package author name])
AC_DEFINE(PACKAGE_DESCRIPTION, "Console password generator", [Define to the package description])
AC_DEFINE(PACKAGE_LICENSE, "MIT", [Define to the package license])
AC_CONFIG_SRCDIR([source/main.c])
AC_CONFIG_HEADER([source/h/config.h:resource/config.h.in])
AC_PROG_CC
# Checks for programs.
#AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Checks for libraries.
#AC_CHECK_LIB([crypt])
AC_CHECK_HEADERS([stdlib.h],
[locale.h],
[stdarg.h],
[unistd.h],
[stdio.h],
[string.h],
[time.h],
[libintl.h],
[ctype.h],
[errno.h],
[getopt.h])
AC_CONFIG_FILES([Makefile:resource/make/Makefile.in man/en_US/passgen.1:resource/man/en_US/passgen.1.in man/ru_RU/passgen.1:resource/man/ru_RU/passgen.1.in translate.sh:resource/translate.sh.in])
AC_OUTPUT