Mercurial > pidgin.yaz
comparison plugins/crazychat/configure.ac @ 11218:ed017b9c532d
[gaim-migrate @ 13350]
crazychat commit, first one.
committer: Tailor Script <tailor@pidgin.im>
author | Charlie Stockman <chuckleberry> |
---|---|
date | Tue, 09 Aug 2005 07:10:23 +0000 |
parents | |
children | d424c3bbac8d |
comparison
equal
deleted
inserted
replaced
11217:f854402837ba | 11218:ed017b9c532d |
---|---|
1 # -*- Autoconf -*- | |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.57) | |
5 AC_INIT(src/crazychat.c) | |
6 AM_INIT_AUTOMAKE(CrazyChat, 0.0.1) | |
7 AC_CONFIG_HEADER([config.h]) | |
8 | |
9 # Checks for programs. | |
10 AC_PROG_CXX | |
11 AC_PROG_CC | |
12 AC_PROG_CPP | |
13 AM_PROG_CC_STDC | |
14 AC_HEADER_STDC | |
15 AC_PROG_INSTALL | |
16 AC_DISABLE_STATIC | |
17 AC_PROG_LIBTOOL | |
18 | |
19 # Check for debug | |
20 AC_ARG_ENABLE(debug, | |
21 [AC_HELP_STRING([--enable-debug], [enable debugging])], | |
22 [case "${enableval}" in | |
23 yes) debug=true ;; | |
24 no) debug=false ;; | |
25 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; | |
26 esac | |
27 test -z "${enableval}" || debug=false],[debug=true]) | |
28 AM_CONDITIONAL(ENABLE_DEBUG, test x$debug = xtrue) | |
29 | |
30 # Check for disabling Quicktime | |
31 AC_ARG_ENABLE(qt, | |
32 [AC_HELP_STRING([--disable-qt], [disable Quicktime])], | |
33 [case "${enableval}" in | |
34 yes) qt=true ;; | |
35 no) qt=false ;; | |
36 *) AC_MSG_ERROR(bad value ${enableval} for --disable-qt) ;; | |
37 esac | |
38 test -z "${enableval}" || qt=true],[qt=false]) | |
39 AM_CONDITIONAL(DISABLE_QT, test x$qt = xtrue) | |
40 | |
41 # before gettexting, in case iconv matters | |
42 case "$host_os" in | |
43 darwin*) | |
44 AC_MSG_CHECKING([for fink]) | |
45 if test -d /sw; then | |
46 AC_MSG_RESULT([found, adding /sw to search paths]) | |
47 CFLAGS="$CFLAGS -I/sw/include" | |
48 else | |
49 AC_MSG_RESULT([not found]) | |
50 fi | |
51 ;; | |
52 *) | |
53 ;; | |
54 esac | |
55 | |
56 # Checks for libraries. | |
57 AC_PATH_X | |
58 | |
59 AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([ | |
60 *** GLib 2.0 is required to build CrazyChat; please make sure you have the GLib | |
61 *** development headers installed. The latest version of GLib is | |
62 *** always available at http://www.gtk.org/.])) | |
63 AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([ | |
64 *** GTK+ 2.0 is required to build CrazyChat; please make sure you have the GTK+ | |
65 *** development headers installed. The latest version of GTK+ is | |
66 *** always available at http://www.gtk.org/.])) | |
67 AM_PATH_GTKGLEXT_1_0(1.0.0,,AC_MSG_ERROR([ | |
68 *** gtkglext is required to build CrazyChat; please make sure you have the | |
69 *** gtkglext development headers installed.])) | |
70 | |
71 AC_CHECK_LIB([pthread], [pthread_create]) | |
72 | |
73 # Checks for header files. | |
74 AC_HEADER_STDC | |
75 AC_HEADER_SYS_WAIT | |
76 AC_CHECK_HEADERS([assert.h arpa/inet.h fcntl.h langinfo.h libintl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h]) | |
77 | |
78 # Checks for typedefs, structures, and compiler characteristics. | |
79 AC_C_CONST | |
80 AC_TYPE_SIZE_T | |
81 AC_HEADER_TIME | |
82 AC_STRUCT_TM | |
83 AC_C_VOLATILE | |
84 | |
85 # Checks for library functions. | |
86 AC_CHECK_FUNCS([gettimeofday memset]) | |
87 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , | |
88 [AC_ERROR(inet_aton not found)])]) | |
89 | |
90 # Output to Makefile | |
91 AC_OUTPUT([Makefile | |
92 src/Makefile | |
93 ]) |