Mercurial > pidgin.yaz
annotate configure.in @ 574:0aca48e1baa7
[gaim-migrate @ 584]
smileys wrap more properly now
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 01 Aug 2000 23:50:32 +0000 |
parents | 7209b474bdc3 |
children | c763eeec336f |
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) |
510 | 4 AM_INIT_AUTOMAKE([gaim], [0.10.0]) |
0 | 5 |
6 dnl Checks for programs. | |
7 AM_PROG_LIBTOOL | |
8 AC_PROG_CC | |
9 AC_PROG_INSTALL | |
10 | |
419 | 11 ALL_LINGUAS="de fr es zh_CN ko" |
347
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 |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
35 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
36 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
37 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
38 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],,enable_gnome=$enable_distrib) |
529
e6ba7ab7c349
[gaim-migrate @ 539]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
510
diff
changeset
|
39 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_gnome" = "xyes") |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
40 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
41 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
174 | 42 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,enable_plugins=yes) |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
43 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],enable_perl=no,enable_perl=yes) |
369
cf895313fc50
[gaim-migrate @ 379]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
352
diff
changeset
|
44 AM_CONDITIONAL(PLUGINS, test x$enable_plugins = xyes) |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
45 AC_ARG_ENABLE(,,,) |
0 | 46 |
47 if test "$enable_debug" = yes ; then | |
402
943248245f32
[gaim-migrate @ 412]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
386
diff
changeset
|
48 dnl someone please tell me what -d does |
943248245f32
[gaim-migrate @ 412]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
386
diff
changeset
|
49 dnl CFLAGS="$CFLAGS -Wall -d -g" |
943248245f32
[gaim-migrate @ 412]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
386
diff
changeset
|
50 CFLAGS="$CFLAGS -Wall -g" |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
51 AC_DEFINE(DEBUG) |
0 | 52 fi |
53 | |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
54 AM_PATH_GLIB(1.2.0) |
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
55 AM_PATH_GTK(1.2.0,,,gthread) |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
56 LIBS="$LIBS $GTK_LIBS" |
450
e1c09b8c8bb1
[gaim-migrate @ 460]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
423
diff
changeset
|
57 CFLAGS="$CFLAGS -I../libfaim -I../libfaim/faim" |
423
0d4e80bdb96b
[gaim-migrate @ 433]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
419
diff
changeset
|
58 LDADD="$LDADD -L../libfaim -lfaim -pthread" |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
59 |
529
e6ba7ab7c349
[gaim-migrate @ 539]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
510
diff
changeset
|
60 if test "x$enable_gnome" = "xyes" ; then |
0 | 61 GNOME_INIT(applets) |
62 GNOME_X_CHECKS | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
63 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
64 AC_DEFINE(USE_APPLET) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
65 LIBS="$LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS" |
0 | 66 fi |
67 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
68 CFLAGS="$CFLAGS $GTK_CFLAGS" |
0 | 69 |
70 if test "$enable_plugins" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
71 AC_DEFINE(GAIM_PLUGINS) |
0 | 72 fi |
73 | |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
74 dnl This was taken straight from X-Chat. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
75 dnl X-Chat is the greatest application ever, not only |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
76 dnl because it's a rocking IRC client but also because |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
77 dnl it's very easy to learn from. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
78 if test "$enable_perl" = yes ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
79 AC_PATH_PROG(sedpath, sed) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
80 AC_PATH_PROG(perlpath, perl) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
81 AC_MSG_CHECKING(for Perl compile flags) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
82 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
83 if test "_$PERL_CFLAGS" = _ ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
84 AC_MSG_RESULT([not found, building without perl.]) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
85 enable_perl = no |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
86 else |
565
7209b474bdc3
[gaim-migrate @ 575]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
553
diff
changeset
|
87 PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
88 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-ldb //'` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
89 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lndbm //'` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
90 if test "$system" = "Linux"; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
91 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lnsl //'` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
92 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lposix //'` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
93 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
94 PERL_LDFLAGS=`echo $PERL_LDFLAGS |$sedpath 's/-lc //'` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
95 AC_MSG_RESULT(ok) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
96 CFLAGS="$CFLAGS $PERL_CFLAGS" |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
97 LIBS="$LIBS $PERL_LDFLAGS" |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
98 AC_DEFINE(USE_PERL) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
99 AC_CHECK_FUNCS(Perl_eval_pv) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
100 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
101 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
102 |
0 | 103 if test "$enable_nas" = yes ; then |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
104 AC_DEFINE(NAS_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
105 LIBS="$LIBS -laudio" |
0 | 106 fi |
107 | |
108 if test "$enable_esd" = yes ; then | |
109 AM_PATH_GESD | |
110 if test "$no_esd" != yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
111 CFLAGS="$CFLAGS $ESD_CFLAGS" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
112 AC_DEFINE(ESD_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
113 LDADD="$LDADD $ESD_LIBS" |
0 | 114 fi |
115 fi | |
116 | |
117 if test "$ac_cv_cygwin" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
118 LDADD="$LDADD -static" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
119 CFLAGS="$CFLAGS -Wall -g" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
120 AC_DEFINE(DEBUG) |
0 | 121 fi |
122 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
123 AC_SUBST(CFLAGS) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
124 AC_SUBST(LDADD) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
125 AC_SUBST(LIBS) |
0 | 126 AC_SUBST(LIBFAIM_DO) |
127 | |
128 AC_OUTPUT([Makefile | |
129 src/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
130 intl/Makefile |
0 | 131 sounds/Makefile |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
132 plugins/Makefile |
0 | 133 pixmaps/Makefile |
134 libfaim/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
135 po/Makefile.in |
0 | 136 doc/Makefile |
137 m4/Makefile | |
322
8ed366802f2e
[gaim-migrate @ 332]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
299
diff
changeset
|
138 gaim.spec |
0 | 139 ]) |