comparison configure.ac @ 4430:801830dec409

[gaim-migrate @ 4705] robot101 gave me a bad patch committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 26 Jan 2003 20:43:25 +0000
parents bf770f11132b
children 58c3c6cfd537
comparison
equal deleted inserted replaced
4429:bf770f11132b 4430:801830dec409
120 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") 120 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
121 AC_SUBST(STATIC_LINK_LIBS) 121 AC_SUBST(STATIC_LINK_LIBS)
122 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }, 122 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto },
123 [Loads static protocol plugin module initialization functions.]) 123 [Loads static protocol plugin module initialization functions.])
124 124
125 AC_ARG_ENABLE(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes) 125 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes)
126 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no)
127 AC_ARG_ENABLE(artsc, [ --disable-artsc Turn off ArtsC (default=auto)],,enable_artsc=yes)
128
126 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) 129 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes)
127 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) 130 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes)
128 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) 131 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes)
129 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) 132 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
130 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) 133 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes)
269 AC_SUBST(GTKSPELL_LIBS) 272 AC_SUBST(GTKSPELL_LIBS)
270 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?]) 273 AC_DEFINE(USE_GTKSPELL,,[do we have gtkspell?])
271 fi 274 fi
272 fi 275 fi
273 276
274 if test "$enable_audio" = yes ; then 277 if test "$enable_nas" = yes ; then
275 AC_CHECK_HEADERS(ao/ao.h, found_ao_lib=true, found_ao_lib=false) 278 AC_DEFINE(NAS_SOUND, 1, [Define if we have NAS sound support.])
276 if test "$found_ao_lib" = "true"; then 279 SOUND_LIBS="-laudio -lXt"
277 AC_CHECK_LIB(ao, ao_initialize, found_ao_lib=true, found_ao_lib=false) 280 fi
278 fi 281 if test "$enable_esd" = yes ; then
279 282 AM_PATH_GESD
280 AC_CHECK_HEADERS(audiofile.h, found_af_lib=true, found_af_lib=false) 283 if test "$no_esd" != yes ; then
281 if test "$found_af_lib" = "true"; then 284 old_CFLAGS="$CFLAGS"
282 AC_CHECK_LIB(audiofile, afOpenFile, found_af_lib=true, found_af_lib=false) 285 CFLAGS="$CFLAGS $ESD_CFLAGS"
283 fi 286 AC_TRY_COMPILE(,[#include <esd.h>],
284 287 [
285 if test "$found_ao_lib" = "true" -a "$found_af_lib" = "true"; then 288 AC_DEFINE(ESD_SOUND, 1, [Define if we have ESD sound support.])
286 SOUND_LIBS="-lao -laudiofile" 289 SOUND_LIBS="$SOUND_LIBS $ESD_LIBS"
287 AC_SUBST(SOUND_LIBS) 290 ],[
288 AC_DEFINE(USE_AO, 1, [Define if we're using libao and libaudiofile for sound playing]) 291 enable_esd=no
289 enable_audio=yes 292 CFLAGS="$old_CFLAGS"
293 ])
290 else 294 else
291 enable_audio=no 295 enable_esd=no
292 fi 296 fi
293 else 297 fi
294 enable_audio=no 298 if test "x$enable_artsc" = "xyes"; then
295 fi 299 AM_PATH_ARTSC
300 if test "x$no_artsc" != "xyes" ; then
301 old_CFLAGS="$CFLAGS"
302 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
303 AC_TRY_COMPILE(,[#include <artsc.h>],
304 [
305 AC_DEFINE(ARTSC_SOUND, 1, [Define if we have artsc sound support.])
306 SOUND_LIBS="$SOUND_LIBS $ARTSC_LIBS"
307 ],[
308 enable_artsc=no
309 CFLAGS="$old_CFLAGS"
310 ])
311 else
312 enable_artsc=no
313 fi
314 fi
315 AC_SUBST(SOUND_LIBS)
296 316
297 if test "$ac_cv_cygwin" = yes ; then 317 if test "$ac_cv_cygwin" = yes ; then
298 LDADD="$LDADD -static" 318 LDADD="$LDADD -static"
299 CFLAGS="$CFLAGS -Wall -g" 319 CFLAGS="$CFLAGS -Wall -g"
300 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 320 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
420 echo 440 echo
421 echo Allow Multiple Connections.... : $enable_multi 441 echo Allow Multiple Connections.... : $enable_multi
422 echo Build Protocol Plugins........ : $enable_prpls 442 echo Build Protocol Plugins........ : $enable_prpls
423 echo Protocols to link statically.. : $STATIC_PRPLS 443 echo Protocols to link statically.. : $STATIC_PRPLS
424 echo 444 echo
425 echo UI Library.................... : GTK 2.x 445 echo UI Library.................... : GTK 2.0
426 echo 446 echo
427 echo Build with Plugin support..... : $enable_plugins 447 echo Build with Plugin support..... : $enable_plugins
428 echo Build with Perl support....... : $enable_perl 448 echo Build with Perl support....... : $enable_perl
429 echo Build with Audio support...... : $enable_audio 449 echo
430 echo Build with GtkSpell support... : $enable_gtkspell 450 echo Build with GtkSpell............: $enable_gtkspell
431 echo 451 echo
432 echo Use XScreenSaver Extension.... : $enable_xss 452 echo Use XScreenSaver Extension.... : $enable_xss
433 echo Use X Session Management...... : $enable_sm 453 echo Use X Session Management...... : $enable_sm
454 echo
455 echo Build with ESD................ : $enable_esd
456 echo Build with NAS................ : $enable_nas
457 echo Build with ArtsC.............. : $enable_artsc
434 echo 458 echo
435 echo Print debugging messages...... : $enable_debug 459 echo Print debugging messages...... : $enable_debug
436 echo 460 echo
437 eval eval echo Gaim will be installed in $bindir. 461 eval eval echo Gaim will be installed in $bindir.
438 if test "x$gaimpath" != "x" ; then 462 if test "x$gaimpath" != "x" ; then