Mercurial > pidgin-audacious
comparison configure.in @ 22:fbad40babe88
build system update:
- ported Makefile.in from pidgin-twitter.
- ported autogen.sh from pidgin-twitter.
- moved some declarations and definitions to pidgin-audacious.h
- updated configure.in to go along with new Makefile.
- removed aclocal.m4 from version control.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 06 Oct 2008 18:18:06 +0900 |
parents | 8d4d17a528ef |
children |
comparison
equal
deleted
inserted
replaced
21:83002f858ee9 | 22:fbad40babe88 |
---|---|
1 # -*- Autoconf -*- | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | 2 # Process this file with autoconf to produce a configure script. |
3 | 3 |
4 AC_PREREQ(2.59) | 4 AC_PREREQ(2.59) |
5 AC_INIT(pidgin-audacioius, 2.0.0, yaz@honeyplanet.jp) | 5 AC_INIT(pidgin-audacioius, 3.0.0, yaz@honeyplanet.jp) |
6 AC_CONFIG_SRCDIR([pidgin-audacious.c]) | 6 AC_CONFIG_SRCDIR([pidgin-audacious.c]) |
7 | 7 |
8 # Checks for programs. | 8 # Checks for programs. |
9 AC_PROG_CC | 9 AC_PROG_CC |
10 AC_PROG_INSTALL | 10 AC_PROG_INSTALL |
11 | 11 |
12 # Checks for libraries. | 12 # Checks for libraries. |
13 PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.4.0], , [ | 13 PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.5.0], , [ |
14 AC_MSG_RESULT(no) | 14 AC_MSG_RESULT(no) |
15 AC_MSG_ERROR([ | 15 AC_MSG_ERROR([ |
16 | 16 |
17 You must have audacious >= 1.4.0 development headers installed to build. | 17 You must have audacious >= 1.5.0 development headers installed to build. |
18 ])]) | 18 ])]) |
19 AUD_CFLAGS=`pkg-config --cflags audacious 2> /dev/null` | 19 AUD_CFLAGS=`pkg-config --cflags audacious 2> /dev/null` |
20 AUD_LIBS=`pkg-config --libs audacious 2> /dev/null` | 20 AUD_LIBS=`pkg-config --libs audacious 2> /dev/null` |
21 AUD_LIB_DIR=`pkg-config --variable=lib_dir audacious 2> /dev/null` | 21 AUD_LIB_DIR=`pkg-config --variable=lib_dir audacious 2> /dev/null` |
22 AC_SUBST(AUD_CFLAGS) | 22 AC_SUBST(AUD_CFLAGS) |
23 AC_SUBST(AUD_LIBS) | 23 AC_SUBST(AUD_LIBS) |
24 AC_SUBST(AUD_LIB_DIR) | 24 AC_SUBST(AUD_LIB_DIR) |
25 | 25 |
26 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [ | 26 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [ |
27 AC_MSG_RESULT(no) | 27 AC_MSG_RESULT(no) |
28 AC_MSG_ERROR([ | 28 AC_MSG_ERROR([ |
29 | 29 |
30 You must have pidgin >= 2.0.0 development headers installed to build. | 30 You must have glib >= 2.14.0 development headers installed to build. |
31 ])]) | |
32 | |
33 GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null` | |
34 GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null` | |
35 GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null` | |
36 AC_SUBST(GLIB_CFLAGS) | |
37 AC_SUBST(GLIB_LIBS) | |
38 AC_SUBST(GLIB_LIB_DIR) | |
39 | |
40 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.5.0], , [ | |
41 AC_MSG_RESULT(no) | |
42 AC_MSG_ERROR([ | |
43 | |
44 You must have pidgin >= 2.5.0 development headers installed to build. | |
31 ])]) | 45 ])]) |
32 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null` | 46 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null` |
33 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null` | 47 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null` |
34 PIDGIN_LIB_DIR=`pkg-config --variable=libdir pidgin 2> /dev/null` | 48 if test x"$prefix" = x"NONE" ; then |
49 PIDGIN_PREFIX=`pkg-config --variable=prefix pidgin 2> /dev/null` | |
50 else | |
51 PIDGIN_PREFIX=$prefix | |
52 fi | |
35 AC_SUBST(PIDGIN_CFLAGS) | 53 AC_SUBST(PIDGIN_CFLAGS) |
36 AC_SUBST(PIDGIN_LIBS) | 54 AC_SUBST(PIDGIN_LIBS) |
37 AC_SUBST(PIDGIN_LIB_DIR) | 55 AC_SUBST(PIDGIN_PREFIX) |
38 | 56 |
39 PKG_CHECK_MODULES(DBUSGLIB, [dbus-glib-1 >= 0.72], , [ | 57 PKG_CHECK_MODULES(DBUSGLIB, [dbus-glib-1 >= 0.72], , [ |
40 AC_MSG_RESULT(no) | 58 AC_MSG_RESULT(no) |
41 AC_MSG_ERROR([ | 59 AC_MSG_ERROR([ |
42 | 60 |