-
Notifications
You must be signed in to change notification settings - Fork 22
/
configure.ac
49 lines (37 loc) · 1.04 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
AC_PREREQ([2.69])
m4_define([imaptest_VERSION],
m4_esyscmd_s([build-aux/git-version-gen]))
AC_INIT([dovecot-imaptest], [m4_defn([imaptest_VERSION])], [[email protected]])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([imaptest-config.h])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CPP
LT_INIT
DC_DOVECOT
AS_IF([test "$DOVECOT_INSTALLED" = 'no'], [
LIBDOVECOT=$abs_dovecotdir/src/lib-dovecot/libdovecot.la
LIBDOVECOT_SSL=$abs_dovecotdir/src/lib-ssl-iostream/libssl_iostream_openssl.la
], [
LIBDOVECOT=$dovecot_pkglibdir/libdovecot.la
LIBDOVECOT_SSL=$dovecot_pkglibdir/libssl_iostream_openssl.la
])
AC_SUBST([LIBDOVECOT_SSL])
CFLAGS="$CFLAGS $EXTRA_CFLAGS"
LIBS="$DOVECOT_LIBS"
BINARY_CFLAGS="$PIE_CFLAGS"
BINARY_LDFLAGS="$PIE_LDFLAGS $RELRO_LDFLAGS"
AC_SUBST(BINARY_CFLAGS)
AC_SUBST(BINARY_LDFLAGS)
AS_IF([test "$AR_FLAGS" = "cru"], [AR_FLAGS="cr"], [])
AC_SUBST([AR_FLAGS])
AC_CONFIG_FILES([
Makefile
src/Makefile
build-aux/run-test.sh
stamp.h])
AC_OUTPUT