This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac.in
69 lines (53 loc) · 2.23 KB
/
configure.ac.in
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(pidgin-master-password, @@VERSION@@)
AM_INIT_AUTOMAKE([1.9 foreign tar-pax])
AC_CONFIG_SRCDIR([src/plugin.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Note: AC_DEFINE_UNQUOTED() needs to be in a single line in order to not
# break scripts/gen-mingw-config_h.sh on Windows.
AC_DEFINE_UNQUOTED(PLUGIN_VERSION, ["@@VERSION@@"], [Version])
AC_DEFINE_UNQUOTED(PLUGIN_WEBSITE, ["https://github.com/kgraefe/pidgin-master-password"], [Website])
AC_DEFINE_UNQUOTED(PLUGIN_ID, ["pidgin-kgraefe-master-password"], [Pidgin internal plugin ID])
AC_DEFINE_UNQUOTED(PLUGIN_STATIC_NAME, ["master-password"], [Static name for debug output])
AC_DEFINE_UNQUOTED(PLUGIN_AUTHOR, ["Konrad Gräfe <kgraefe@paktolos.net>"], [Author])
AC_DEFINE_UNQUOTED(PLUGIN_PREFS_PREFIX, ["/plugins/master-password"], [Preference path])
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INTLTOOL
GETTEXT_PACKAGE=pidgin-master-password
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Gettext package])
ALL_LINGUAS="@@LANGUAGES@@"
AM_GLIB_GNU_GETTEXT
# Compiler flags
CFLAGS="$CFLAGS -Wall -Werror-implicit-function-declaration"
# Checks for libraries.
PKG_CHECK_MODULES(pidgin, [pidgin >= 2.10.0], , [AC_MSG_ERROR([
You must have the development headers of pidgin 2.10.0 or newer installed to
build.
If you have these installed already you may need to install pkg-config or set
the environment variables pidgin_LIBS and pidgin_CFLAGS so I can find them.
])])
LIBS="$LIBS $pidgin_LIBS"
CFLAGS="$CFLAGS $pidgin_CFLAGS"
PKG_CHECK_MODULES(libsodium, [libsodium >= 1.0.0], , [AC_MSG_ERROR([
You must have the development headers of libsodium installed to build.
If you have these installed already you may need to install pkg-config or set
the environment variables libsodium_LIBS and libsodium_CFLAGS so I can find
them.
])])
LIBS="$LIBS $libsodium_LIBS"
CFLAGS="$CFLAGS $libsodium_CFLAGS"
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT