Mercurial > pidgin
comparison configure.in @ 598:c763eeec336f
[gaim-migrate @ 608]
more rips from X-Chat. lots of cool stuff. --enable-panel instead of
--enable-gnome. --disable-gnome if you don't want gnome bits. and
messages after ./configure to say what's going on.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 03 Aug 2000 22:50:13 +0000 |
parents | 7209b474bdc3 |
children | eaab8abda2c0 |
comparison
equal
deleted
inserted
replaced
597:3a24fd19ff5f | 598:c763eeec336f |
---|---|
32 dnl This is a bad, bad hack. I am a bad, bad man. | 32 dnl This is a bad, bad hack. I am a bad, bad man. |
33 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I../" | 33 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I../" |
34 | 34 |
35 AC_ARG_ENABLE(distrib,,,enable_distrib=no) | 35 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
36 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | 36 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") |
37 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) | 37 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],enable_gnome=no,enable_gnome=yes) |
38 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],,enable_gnome=$enable_distrib) | 38 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) |
39 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_gnome" = "xyes") | 39 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") |
40 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) | 40 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) |
41 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) | 41 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
42 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,enable_plugins=yes) | 42 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,enable_plugins=yes) |
43 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],enable_perl=no,enable_perl=yes) | 43 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],enable_perl=no,enable_perl=yes) |
44 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) | |
44 AM_CONDITIONAL(PLUGINS, test x$enable_plugins = xyes) | 45 AM_CONDITIONAL(PLUGINS, test x$enable_plugins = xyes) |
45 AC_ARG_ENABLE(,,,) | 46 AC_ARG_ENABLE(,,,) |
46 | 47 |
47 if test "$enable_debug" = yes ; then | 48 if test "$enable_debug" = yes ; then |
48 dnl someone please tell me what -d does | |
49 dnl CFLAGS="$CFLAGS -Wall -d -g" | |
50 CFLAGS="$CFLAGS -Wall -g" | 49 CFLAGS="$CFLAGS -Wall -g" |
51 AC_DEFINE(DEBUG) | 50 AC_DEFINE(DEBUG) |
52 fi | 51 fi |
53 | 52 |
54 AM_PATH_GLIB(1.2.0) | |
55 AM_PATH_GTK(1.2.0,,,gthread) | |
56 LIBS="$LIBS $GTK_LIBS" | |
57 CFLAGS="$CFLAGS -I../libfaim -I../libfaim/faim" | 53 CFLAGS="$CFLAGS -I../libfaim -I../libfaim/faim" |
58 LDADD="$LDADD -L../libfaim -lfaim -pthread" | 54 LDADD="$LDADD -L../libfaim -lfaim -pthread" |
59 | 55 |
60 if test "x$enable_gnome" = "xyes" ; then | 56 if test "x$enable_gnome" = "xyes" ; then |
61 GNOME_INIT(applets) | 57 if test "x$enable_panel" = "xyes" ; then |
62 GNOME_X_CHECKS | 58 GNOME_INIT(gnomeui applets) |
63 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" | 59 GNOME_X_CHECKS |
64 AC_DEFINE(USE_APPLET) | 60 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
65 LIBS="$LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS" | 61 AC_DEFINE(USE_APPLET) |
62 AC_DEFINE(USE_GNOME) | |
63 LIBS="$LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" | |
64 AC_PATH_PROG(gaimpath, gaim_applet) | |
65 else | |
66 AC_PATH_PROG(gnomepath, gnome-config) | |
67 AC_MSG_CHECKING(for Gnome compile flags) | |
68 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` | |
69 if test "x$GNOME_CFLAGS" = "x" ; then | |
70 enable_gnome=no | |
71 AC_MSG_RESULT([Gnome not found, building without it.]) | |
72 else | |
73 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` | |
74 GNOME_MAJOR=`echo $GNOME_VER |$sedpath 's/\([[0-9]*]*\).\([[0-9]*]*\).\([[0-9]*]*\)/\1/' 2>/dev/null` | |
75 if test "x$GNOME_MAJOR" = "x0" ; then | |
76 enable_gnome = no | |
77 AC_MSG_RESULT([old Gnome found, building without it.]) | |
78 else | |
79 AC_MSG_RESULT(ok) | |
80 CFLAGS="$CFLAGS $GNOME_CFLAGS" | |
81 LIBS="$LIBS `$gnomepath gnomeui --libs 2>/dev/null`" | |
82 AC_DEFINE(USE_GNOME) | |
83 AC_PATH_PROG(gaimpath, gaim) | |
84 fi | |
85 fi | |
86 fi | |
87 fi | |
88 | |
89 if test "x$enable_gnome" != "xyes" ; then | |
90 AM_PATH_GLIB(1.2.0) | |
91 AM_PATH_GTK(1.2.0,,,gthread) | |
92 LIBS="$LIBS $GTK_LIBS" | |
93 AC_PATH_PROG(gaimpath, gaim) | |
66 fi | 94 fi |
67 | 95 |
68 CFLAGS="$CFLAGS $GTK_CFLAGS" | 96 CFLAGS="$CFLAGS $GTK_CFLAGS" |
69 | 97 |
70 if test "$enable_plugins" = yes ; then | 98 if test "$enable_plugins" = yes ; then |
109 AM_PATH_GESD | 137 AM_PATH_GESD |
110 if test "$no_esd" != yes ; then | 138 if test "$no_esd" != yes ; then |
111 CFLAGS="$CFLAGS $ESD_CFLAGS" | 139 CFLAGS="$CFLAGS $ESD_CFLAGS" |
112 AC_DEFINE(ESD_SOUND) | 140 AC_DEFINE(ESD_SOUND) |
113 LDADD="$LDADD $ESD_LIBS" | 141 LDADD="$LDADD $ESD_LIBS" |
142 else | |
143 enable_esd = no | |
114 fi | 144 fi |
115 fi | 145 fi |
116 | 146 |
117 if test "$ac_cv_cygwin" = yes ; then | 147 if test "$ac_cv_cygwin" = yes ; then |
118 LDADD="$LDADD -static" | 148 LDADD="$LDADD -static" |
135 po/Makefile.in | 165 po/Makefile.in |
136 doc/Makefile | 166 doc/Makefile |
137 m4/Makefile | 167 m4/Makefile |
138 gaim.spec | 168 gaim.spec |
139 ]) | 169 ]) |
170 | |
171 echo | |
172 echo $PACKAGE $VERSION | |
173 | |
174 echo | |
175 echo Build with GNOME bits...... : $enable_gnome | |
176 echo Build as GNOME applet...... : $enable_panel | |
177 echo | |
178 echo Build with Plugin support.. : $enable_plugins | |
179 echo Build with Perl support.... : $enable_perl | |
180 echo | |
181 echo Build with ESD............. : $enable_esd | |
182 echo Build with NAS............. : $enable_nas | |
183 echo | |
184 echo Print debugging messages... : $enable_debug | |
185 echo | |
186 echo Gaim will be installed in $prefix/bin. | |
187 if test "x$gaimpath" != "x" ; then | |
188 echo Warning: You have an old copy of gaim at $gaimpath. | |
189 fi | |
190 echo | |
191 echo configure complete, now type \'make\' | |
192 echo |