0
|
1 # -*- Autoconf -*-
|
|
2 # Process this file with autoconf to produce a configure script.
|
|
3
|
|
4 AC_PREREQ(2.59)
|
|
5 AC_INIT(pidgin-twitter, 0.1.0, yaz@honeyplanet.jp)
|
|
6 AC_CONFIG_SRCDIR([pidgin-twitter.c])
|
|
7
|
|
8 # Checks for programs.
|
|
9 AC_PROG_CC
|
|
10 AC_PROG_INSTALL
|
|
11
|
|
12 # Checks for libraries.
|
1
|
13 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [
|
0
|
14 AC_MSG_RESULT(no)
|
|
15 AC_MSG_ERROR([
|
|
16
|
1
|
17 You must have glib >= 2.14.0 development headers installed to build.
|
0
|
18 ])])
|
1
|
19
|
|
20 GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null`
|
|
21 GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null`
|
|
22 GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null`
|
|
23 AC_SUBST(GLIB_CFLAGS)
|
|
24 AC_SUBST(GLIB_LIBS)
|
|
25 AC_SUBST(GLIB_LIB_DIR)
|
0
|
26
|
|
27 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [
|
|
28 AC_MSG_RESULT(no)
|
|
29 AC_MSG_ERROR([
|
|
30
|
|
31 You must have pidgin >= 2.0.0 development headers installed to build.
|
|
32 ])])
|
|
33 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null`
|
|
34 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null`
|
|
35 PIDGIN_LIB_DIR=`pkg-config --variable=libdir pidgin 2> /dev/null`
|
|
36 AC_SUBST(PIDGIN_CFLAGS)
|
|
37 AC_SUBST(PIDGIN_LIBS)
|
|
38 AC_SUBST(PIDGIN_LIB_DIR)
|
|
39
|
|
40 # Checks for header files.
|
|
41 AC_HEADER_STDC
|
|
42 AC_CHECK_HEADERS([stdlib.h string.h])
|
|
43
|
|
44 # Checks for typedefs, structures, and compiler characteristics.
|
|
45 AC_C_CONST
|
|
46
|
|
47 # Checks for library functions.
|
|
48 AC_CHECK_FUNCS([strstr])
|
|
49
|
|
50 #AC_CONFIG_FILES([Makefile])
|
|
51 AC_OUTPUT(Makefile)
|