forked from jperkin/irssi-icb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
50 lines (39 loc) · 1.15 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
AC_INIT([irssi-icb], [0.16-dev], [[email protected]])
AC_PREREQ([2.61])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc silent-rules])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LIBTOOL
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_DISABLE_STATIC
AC_ARG_WITH([irssi],
[AS_HELP_STRING([--with-irssi], [path to irssi directory])],
[],
[with_irssi=no])
AS_IF([test "x$with_irssi" = "xno"], [
AS_IF([test -f ../irssi-config],
[with_irssi=".."],
AS_IF([test -f ../irssi/irssi-config],
[with_irssi="../.."],
AS_IF([test -f ../../irssi/irssi-config],
[with_irssi="../../irssi"],
AS_ERROR([Could not determine irssi directory])))) ])
# fix relative paths
IRSSI_INCLUDE=`cd $with_irssi; pwd`
AC_SUBST(IRSSI_INCLUDE)
AS_IF([test ! -f "$IRSSI_INCLUDE/irssi-config"],
[AC_ERROR(Not irssi directory: $IRSSI_INCLUDE)]
)
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_CONFIG_FILES([
Makefile
src/Makefile
src/core/Makefile
src/fe-common/Makefile
])
AC_OUTPUT