Mercurial > pidgin
annotate configure.in @ 395:9a436c1d128d
[gaim-migrate @ 405]
whoops
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 12 Jun 2000 13:23:53 +0000 |
parents | 7898e110b298 |
children | 943248245f32 |
rev | line source |
---|---|
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
0 | 2 AC_INIT(src/aim.c) |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
3 AM_CONFIG_HEADER(config.h) |
386 | 4 AM_INIT_AUTOMAKE([gaim], [0.9.20]) |
0 | 5 |
6 dnl Checks for programs. | |
7 AM_PROG_LIBTOOL | |
8 AC_PROG_CC | |
9 AC_PROG_INSTALL | |
10 | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
11 ALL_LINGUAS="de" |
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
12 AM_GNU_GETTEXT |
0 | 13 |
14 AC_CYGWIN | |
15 | |
16 | |
17 dnl Checks for header files. | |
18 AC_HEADER_STDC | |
19 AC_HEADER_SYS_WAIT | |
369
cf895313fc50
[gaim-migrate @ 379]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
352
diff
changeset
|
20 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h) |
212
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
21 AC_CHECK_HEADERS(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not found ***])) |
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
22 |
0 | 23 dnl Checks for typedefs, structures, and compiler characteristics. |
24 AC_C_CONST | |
25 AC_STRUCT_TM | |
26 | |
27 dnl Checks for library functions. | |
28 AC_TYPE_SIGNAL | |
29 AC_FUNC_STRFTIME | |
30 AC_CHECK_FUNCS(socket strdup strstr atexit) | |
31 | |
32 dnl This is a bad, bad hack. I am a bad, bad man. | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
33 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I../" |
0 | 34 |
35 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],enable_debug=yes,) | |
36 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],enable_gnome=yes,) | |
31 | 37 AM_CONDITIONAL(GNOMEAPPLET, test x$enable_gnome = xyes) |
0 | 38 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) |
39 AC_ARG_ENABLE(oscar, [ --enable-oscar Enable Oscar support (experimental)],enable_oscar=yes,) | |
40 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],enable_nas=yes,) | |
174 | 41 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,enable_plugins=yes) |
369
cf895313fc50
[gaim-migrate @ 379]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
352
diff
changeset
|
42 AM_CONDITIONAL(PLUGINS, test x$enable_plugins = xyes) |
0 | 43 |
44 LIBFAIM_DO="" | |
45 | |
46 if test "$enable_debug" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
47 CFLAGS="$CFLAGS -Wall -d -g" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
48 AC_DEFINE(DEBUG) |
0 | 49 fi |
50 | |
51 if test "$enable_oscar" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
52 CFLAGS="$CFLAGS -I../libfaim/faim" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
53 AC_DEFINE(USE_OSCAR) |
352
1c4f8850acbc
[gaim-migrate @ 362]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
54 LDADD="$LDADD -L../libfaim -lfaim -pthread" |
0 | 55 LIBFAIM_DO="libfaim.a" |
56 fi | |
57 | |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
58 AM_PATH_GLIB(1.2.0) |
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
59 AM_PATH_GTK(1.2.0,,,gthread) |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
60 LIBS="$LIBS $GTK_LIBS" |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
61 |
0 | 62 if test "$enable_gnome" = yes ; then |
63 GNOME_INIT(applets) | |
64 GNOME_X_CHECKS | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
65 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
66 AC_DEFINE(USE_APPLET) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
67 LIBS="$LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS" |
0 | 68 fi |
69 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
70 CFLAGS="$CFLAGS $GTK_CFLAGS" |
0 | 71 |
72 if test "$enable_plugins" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
73 AC_DEFINE(GAIM_PLUGINS) |
0 | 74 fi |
75 | |
76 if test "$enable_nas" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
77 AC_DEFINE(NAS_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
78 LIBS="$LIBS -laudio" |
0 | 79 fi |
80 | |
81 if test "$enable_esd" = yes ; then | |
82 AM_PATH_GESD | |
83 if test "$no_esd" != yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
84 CFLAGS="$CFLAGS $ESD_CFLAGS" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
85 AC_DEFINE(ESD_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
86 LDADD="$LDADD $ESD_LIBS" |
0 | 87 fi |
88 fi | |
89 | |
90 if test "$ac_cv_cygwin" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
91 LDADD="$LDADD -static" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
92 CFLAGS="$CFLAGS -Wall -g" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
93 AC_DEFINE(DEBUG) |
0 | 94 fi |
95 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
96 AC_SUBST(CFLAGS) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
97 AC_SUBST(LDADD) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
98 AC_SUBST(LIBS) |
0 | 99 AC_SUBST(LIBFAIM_DO) |
100 | |
101 AC_OUTPUT([Makefile | |
102 src/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
103 intl/Makefile |
0 | 104 sounds/Makefile |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
105 plugins/Makefile |
0 | 106 pixmaps/Makefile |
107 libfaim/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
108 po/Makefile.in |
0 | 109 doc/Makefile |
110 m4/Makefile | |
322
8ed366802f2e
[gaim-migrate @ 332]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
299
diff
changeset
|
111 gaim.spec |
0 | 112 ]) |