Mercurial > pidgin
annotate configure.in @ 203:4fa63e83406b
[gaim-migrate @ 213]
Still not working, but I'm closer, I think.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 30 Apr 2000 23:04:42 +0000 |
parents | a09fabd11900 |
children | 89c9334d3484 |
rev | line source |
---|---|
0 | 1 dn3l Process this file with autoconf to produce a configure script. |
2 AC_INIT(src/aim.c) | |
3 | |
170 | 4 AM_INIT_AUTOMAKE([gaim], [0.9.15]) |
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,) | |
174 | 38 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,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 | |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
99 plugins/Makefile |
0 | 100 pixmaps/Makefile |
101 libfaim/Makefile | |
102 doc/Makefile | |
103 m4/Makefile | |
104 ]) |