Mercurial > pidgin
annotate configure.in @ 121:3571b593f423
[gaim-migrate @ 131]
If buddy signs off, then signs on again before they get erased, it wouldn't
alert properly. Now it does.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 15 Apr 2000 23:52:33 +0000 |
parents | 9f6ce50ffb78 |
children | e67c56a07f52 |
rev | line source |
---|---|
0 | 1 dn3l Process this file with autoconf to produce a configure script. |
2 AC_INIT(src/aim.c) | |
3 | |
76 | 4 AM_INIT_AUTOMAKE([gaim], [0.9.14]) |
0 | 5 |
6 dnl Checks for programs. | |
7 AM_PROG_LIBTOOL | |
8 AC_PROG_CC | |
9 AC_PROG_INSTALL | |
10 | |
11 | |
12 AC_CYGWIN | |
13 | |
14 | |
15 dnl Checks for header files. | |
16 AC_HEADER_STDC | |
17 AC_HEADER_SYS_WAIT | |
18 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) | |
19 | |
20 dnl Checks for typedefs, structures, and compiler characteristics. | |
21 AC_C_CONST | |
22 AC_STRUCT_TM | |
23 | |
24 dnl Checks for library functions. | |
25 AC_TYPE_SIGNAL | |
26 AC_FUNC_STRFTIME | |
27 AC_CHECK_FUNCS(socket strdup strstr atexit) | |
28 | |
29 dnl This is a bad, bad hack. I am a bad, bad man. | |
30 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include" | |
31 | |
32 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],enable_debug=yes,) | |
33 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],enable_gnome=yes,) | |
31 | 34 AM_CONDITIONAL(GNOMEAPPLET, test x$enable_gnome = xyes) |
0 | 35 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) |
36 AC_ARG_ENABLE(oscar, [ --enable-oscar Enable Oscar support (experimental)],enable_oscar=yes,) | |
37 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],enable_nas=yes,) | |
94
9f6ce50ffb78
[gaim-migrate @ 104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
76
diff
changeset
|
38 AC_ARG_ENABLE(plugins, [ --enable-plugins compile with plugin support],enable_plugins=yes,) |
0 | 39 |
40 GAIM_CFLAGS="$CFLAGS -I../" | |
41 GAIM_LIBS="$LIBS" | |
42 GAIM_LDADD="$LDADD" | |
43 LIBFAIM_DO="" | |
44 | |
45 if test "$enable_debug" = yes ; then | |
46 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -d -g -DDEBUG" | |
47 fi | |
48 | |
49 if test "$enable_oscar" = yes ; then | |
50 GAIM_CFLAGS="$GAIM_CFLAGS -DUSE_OSCAR -I../libfaim" | |
51 GAIM_LDADD="$GAIM_LDADD -L../libfaim -lfaim" | |
52 LIBFAIM_DO="libfaim.a" | |
53 fi | |
54 | |
55 if test "$enable_gnome" = yes ; then | |
56 GNOME_INIT(applets) | |
57 GNOME_X_CHECKS | |
58 GAIM_CFLAGS="$GNOME_INCLUDEDIR $GAIM_CFLAGS -DUSE_APPLET" | |
59 GAIM_LIBS="$GAIM_LIBS $GNOME_LIBDIR $GTK_LIBS $GNOME_APPLETS_LIBS" | |
60 else | |
61 AM_PATH_GLIB(1.2.0) | |
62 AM_PATH_GTK(1.2.0) | |
63 GAIM_LIBS="$GAIM_LIBS $GTK_LIBS" | |
64 | |
65 fi | |
66 | |
67 GAIM_CFLAGS="$GAIM_CFLAGS $GTK_CFLAGS" | |
68 | |
69 if test "$enable_plugins" = yes ; then | |
70 GAIM_CFLAGS="$GAIM_CFLAGS -DGAIM_PLUGINS" | |
71 fi | |
72 | |
73 if test "$enable_nas" = yes ; then | |
74 GAIM_CFLAGS="$GAIM_CFLAGS -DNAS_SOUND" | |
75 GAIM_LIBS="$GAIM_LIBS -laudio" | |
76 fi | |
77 | |
78 if test "$enable_esd" = yes ; then | |
79 AM_PATH_GESD | |
80 if test "$no_esd" != yes ; then | |
81 GAIM_CFLAGS="$GAIM_CFLAGS $ESD_CFLAGS -DESD_SOUND" | |
82 GAIM_LIBS="$GAIM_LIBS $ESD_LIBS" | |
83 fi | |
84 fi | |
85 | |
86 if test "$ac_cv_cygwin" = yes ; then | |
87 GAIM_LDADD="$GAIM_LDADD -static" | |
88 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -g -DDEBUG" | |
89 fi | |
90 | |
91 AC_SUBST(GAIM_CFLAGS) | |
92 AC_SUBST(GAIM_LIBS) | |
93 AC_SUBST(GAIM_LDADD) | |
94 AC_SUBST(LIBFAIM_DO) | |
95 | |
96 AC_OUTPUT([Makefile | |
97 src/Makefile | |
98 sounds/Makefile | |
99 pixmaps/Makefile | |
100 libfaim/Makefile | |
101 doc/Makefile | |
102 m4/Makefile | |
103 ]) |