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
|
|
11 # Checks for libraries.
|
1
|
12 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [
|
0
|
13 AC_MSG_RESULT(no)
|
|
14 AC_MSG_ERROR([
|
|
15
|
1
|
16 You must have glib >= 2.14.0 development headers installed to build.
|
0
|
17 ])])
|
1
|
18
|
|
19 GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null`
|
|
20 GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null`
|
|
21 GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null`
|
|
22 AC_SUBST(GLIB_CFLAGS)
|
|
23 AC_SUBST(GLIB_LIBS)
|
|
24 AC_SUBST(GLIB_LIB_DIR)
|
0
|
25
|
|
26 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [
|
|
27 AC_MSG_RESULT(no)
|
|
28 AC_MSG_ERROR([
|
|
29
|
|
30 You must have pidgin >= 2.0.0 development headers installed to build.
|
|
31 ])])
|
|
32 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null`
|
|
33 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null`
|
|
34 PIDGIN_LIB_DIR=`pkg-config --variable=libdir pidgin 2> /dev/null`
|
|
35 AC_SUBST(PIDGIN_CFLAGS)
|
|
36 AC_SUBST(PIDGIN_LIBS)
|
|
37 AC_SUBST(PIDGIN_LIB_DIR)
|
|
38
|
|
39 # Checks for header files.
|
|
40 AC_HEADER_STDC
|
|
41 AC_CHECK_HEADERS([stdlib.h string.h])
|
|
42
|
|
43 # Checks for typedefs, structures, and compiler characteristics.
|
|
44 AC_C_CONST
|
|
45
|
|
46 # Checks for library functions.
|
|
47 AC_CHECK_FUNCS([strstr])
|
|
48
|
|
49 #AC_CONFIG_FILES([Makefile])
|
|
50 AC_OUTPUT(Makefile)
|