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 1
/
configure.ac.in
47 lines (39 loc) · 1.64 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(pidgin-znc-helper, @@VERSION@@, kgraefe@paktolos.net)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/znchelper.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@@"], [Define the plugin version])
AC_DEFINE_UNQUOTED(PLUGIN_WEBSITE, ["https://github.com/kgraefe/pidgin-znc-helper"], [Define the plugin website])
AC_DEFINE_UNQUOTED(PLUGIN_ID, ["gtk-freakazoid-znchelper"], [Define the plugin ID])
AC_DEFINE_UNQUOTED(PLUGIN_STATIC_NAME, ["znc-helper"], [Define the plugin name])
AC_DEFINE_UNQUOTED(PLUGIN_AUTHOR, ["Konrad Gräfe <kgraefe@paktolos.net>"], [Define the plugin author])
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INTLTOOL
GETTEXT_PACKAGE=pidgin-znchelper
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package])
ALL_LINGUAS="@@LANGUAGES@@"
AM_GLIB_GNU_GETTEXT
# Checks for libraries.
PKG_CHECK_MODULES(purple, [purple >= 2.6.0], , [AC_MSG_ERROR(libpurple >= 2.6.0 required!)])
LIBS="$LIBS $purple_LIBS"
CFLAGS="$CFLAGS $purple_CFLAGS -Wall -Werror-implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS"
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
share/Makefile
share/appdata/Makefile
])
AC_OUTPUT