root/sweep/trunk/configure.ac

Revision 719, 19.3 kB (checked in by conrad, 2 years ago)

fix OSS configuration (remove ALSA requirement)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl Require minimum autoconf version
4 AC_PREREQ(2.50)
5
6 AC_INIT([sweep],[0.9.3],[sweep-devel@lists.sourceforge.net],
7                 [sweep],[http://www.metadecks.org/software/sweep/])
8
9 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
11
12 AC_ISC_POSIX
13 AC_PROG_CC
14 AM_PROG_CC_STDC
15 AC_HEADER_STDC
16 AM_PROG_LIBTOOL
17 AM_PROG_CC_C_O
18
19 AC_CHECK_PROG(HAVE_GNOME_MOZ_REMOTE, 'gnome-moz-remote', yes, no)
20
21 AC_C_BIGENDIAN
22
23 AC_CHECK_FUNCS(strchr)
24 AC_CHECK_FUNCS(madvise)
25
26 ALL_LINGUAS="cs de el es_ES fr hu it ja pl ru en_AU"
27 AM_GNU_GETTEXT
28
29 dnl Overall configuration success flag
30 sweep_config_ok=yes
31
32 dnl Default audio handling to build in
33 sweep_config_driver=""
34
35 dnl
36 dnl  Configuration option for building of experimental code.
37 dnl
38
39 ac_enable_experimental=no
40 AC_ARG_ENABLE(experimental,
41      [  --enable-experimental   enable building of experimental code ],
42      [ ac_enable_experimental=yes ])
43
44 if test "x${ac_enable_experimental}" = xyes ; then
45     AC_DEFINE([DEVEL_CODE], [], [Whether to build the develpment code.])
46 fi
47
48
49 dnl
50 dnl  Detect pthreads libraries
51 dnl
52
53 PTHREAD_LIBS=error
54 AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread")
55 if test "x$PTHREAD_LIBS" = xerror; then
56         AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads")
57 fi
58 if test "x$PTHREAD_LIBS" = xerror; then
59         AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r")
60 fi
61 if test "x$PTHREAD_LIBS" = xerror; then
62         AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
63 fi
64 AC_SUBST(PTHREAD_LIBS)
65
66
67
68 dnl
69 dnl  Detect Gthread, GLib and GTK+ libraries
70 dnl
71
72 PKG_CHECK_MODULES(GTK, gtk+-2.0 >=  2.10.0, HAVE_GTK="yes", sweep_config_ok="no")
73 AC_SUBST(GTK_CFLAGS)
74 AC_SUBST(GTK_LIBS)
75 if test "x$HAVE_GTK" != xyes ; then
76     AC_CHECK_LIB(gtk-x11-2.0, gtk_init, HAVE_GTK="maybe", sweep_config_ok="no")
77 fi
78
79 PKG_CHECK_MODULES(GLIB, glib-2.0 >=  2.2.0, HAVE_GLIB="yes", sweep_config_ok="no")
80 AC_SUBST(GLIB_CFLAGS)
81 AC_SUBST(GLIB_LIBS)
82 if test "x$HAVE_GLIB" != xyes ; then
83   AC_CHECK_LIB(glib-2.0, g_list_append, HAVE_GLIB="maybe", sweep_config_ok="no")
84 fi
85
86 PKG_CHECK_MODULES(GTHREADS, gthread-2.0 >=  2.2.0, HAVE_GTHREADS="yes", sweep_config_ok="no")
87 AC_SUBST(GTHREADS_CFLAGS)
88 AC_SUBST(GTHREADS_LIBS)
89 if test "x$HAVE_GTHREADS" != xyes ; then
90   AC_CHECK_LIB(gthread-2.0, g_thread_init, HAVE_GTHREADS="maybe", sweep_config_ok="no")
91 fi
92
93 dnl
94 dnl  Detect libsndfile 1.0
95 dnl
96
97 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0,
98                   HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no")
99
100 if test "x$HAVE_LIBSNDFILE1" = xyes ; then
101   AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if we have libsndfile1.])
102   AC_SUBST(SNDFILE_LIBS)
103 else
104   sweep_config_ok="no"
105   AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe")
106 fi
107
108 if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
109   AC_CHECK_HEADERS(sndfile.h, HAVE_LIBSNDFILE1="ouch")
110   if test "x$HAVE_LIBSNDFILE1" = xouch ; then
111     AC_MSG_ERROR([
112 ***
113 *** libsndfile-1.0.0 or greater seems to exist on your system, however
114 *** the pkg-config tool cannot find its build information.
115 ***
116 *** Please set your PKG_CONFIG_PATH environment variable to include the
117 *** directory in which sndfile.pc was installed. For example, sndfile.pc
118 *** is installed in /usr/local/lib/pkgconfig by default; if that is the
119 *** case do:
120 ***
121 ***     export PKG_CONFIG_PATH="\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
122 ***
123 *** then run this ./configure again. If you configured libsndfile with a
124 *** different --prefix option, replace /usr/local above with that prefix.
125 ***
126 ])
127   fi
128 fi
129
130 AC_CHECK_SIZEOF(off_t,1)
131
132
133 dnl
134 dnl Detect Ogg
135 dnl
136
137 HAVE_OGG=no
138 HAVE_VORBIS=no
139 HAVE_SPEEX=no
140
141 ac_enable_oggvorbis=yes
142 AC_ARG_ENABLE(oggvorbis,
143      [  --disable-oggvorbis     disable Ogg Vorbis support],
144      [ ac_enable_oggvorbis=no ], [ ac_enable_oggvorbis=yes ])
145
146 ac_enable_speex=yes
147 AC_ARG_ENABLE(speex,
148      [  --disable-speex         disable Speex support],
149      [ ac_enable_speex=no ], [ ac_enable_speex=yes ])
150
151 dnl Both Vorbis and Speex require Ogg, so check for it first either way
152 if test "x${ac_enable_oggvorbis}" != xno ||
153    test "x${ac_enable_speex}" != xno ; then
154
155   XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no")
156   if test "x$HAVE_OGG" = xno ; then
157     AC_CHECK_LIB(ogg, ogg_stream_init, HAVE_OGG="maybe")
158   fi
159   if test "x$HAVE_OGG" = xmaybe; then
160     AC_CHECK_HEADER([ogg/ogg.h], HAVE_OGG="yes", HAVE_OGG="no")
161   fi
162
163   AC_SUBST(OGG_LIBS)
164 fi
165
166 dnl
167 dnl Detect Vorbis
168 dnl
169 dnl LIBS="$LIBS -lm -logg -lvorbis -lvorbisenc -lvorbisfile"
170
171 if test "x$HAVE_OGG" = xyes && test "x${ac_enable_oggvorbis}" != xno ; then
172
173   XIPH_PATH_VORBIS(HAVE_VORBIS="yes", HAVE_VORBIS="no")
174
175   dnl Fall back to explicit checks if this fails
176   if test "x$HAVE_VORBIS" = xno ; then
177     AC_MSG_RESULT([
178 *** Trying explicit detection of Ogg Vorbis libraries and headers ...])
179     AC_CHECK_LIB(vorbis, vorbis_info_init, HAVE_VORBIS="maybe", ,
180                  [-lm -logg])
181     AC_CHECK_LIB(vorbisenc, vorbis_encode_init, HAVE_VORBISENC="maybe", ,
182                  [-lm -logg -lvorbis])
183     AC_CHECK_LIB(vorbisfile, ov_open, HAVE_VORBISFILE="maybe", ,
184                  [-lm -logg -lvorbis])
185     AC_CHECK_HEADERS([vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisenc.h],
186                      HAVE_VORBIS_HEADERS="yes", HAVE_VORBIS_HEADERS="no")
187
188     if test "x$HAVE_VORBIS" = xmaybe && test "x$HAVE_VORBISENC" = xmaybe &&
189        test "x$HAVE_VORBISFILE" = xmaybe &&
190        test "x$HAVE_VORBIS_HEADERS" = xyes ; then
191
192        VORBIS_LIBS="-lvorbis -lm"
193        VORBISFILE_LIBS="-lvorbisfile"
194        VORBISENC_LIBS="-lvorbisenc"
195        VORBIS_CFLAGS=""
196
197        dnl HAVE_VORBIS="maybe"
198        HAVE_VORBIS="yes"
199     else
200        HAVE_VORBIS="no"
201     fi
202   fi
203
204   AC_SUBST(VORBIS_LIBS)
205   AC_SUBST(VORBISENC_LIBS)
206   AC_SUBST(VORBISFILE_LIBS)
207
208   if test "x$HAVE_VORBIS" = xyes ; then
209     AC_DEFINE([HAVE_OGGVORBIS], [], [Define if we have Ogg Vorbis.])
210
211     dnl Test out ov_read_float
212     AC_MSG_CHECKING([for deprecated ov_read_float() interface])
213
214     ac_save_CFLAGS="$CFLAGS"
215     ac_save_LIBS="$LIBS"
216     CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS"
217     LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS"
218
219     AC_TRY_COMPILE([#include <vorbis/codec.h>
220                     #include <vorbis/vorbisfile.h> ],
221                    [OggVorbis_File * vf; float ** pcm; int b;
222                     ov_read_float (vf, &pcm, &b);],
223                    [ AC_DEFINE([OV_READ_FLOAT_THREE_ARGS], [], [Define if ov_read_float takes 3 arguments.])
224                      AC_MSG_RESULT(yes) ],
225                    [ AC_MSG_RESULT(no) ])
226
227     CFLAGS="$ac_save_CFLAGS"
228     LIBS="$ac_save_LIBS"
229
230   else
231     sweep_config_ok="no"
232   fi
233
234 else
235   HAVE_VORBIS=disabled
236 fi
237
238 dnl
239 dnl Detect speex
240 dnl
241 dnl LIBS="$LIBS -lm -logg -lspeex"
242
243 if test "x$HAVE_OGG" = xyes && test "x${ac_enable_speex}" != xno ; then
244
245   XIPH_PATH_SPEEX(HAVE_SPEEX="yes", HAVE_SPEEX="no")
246
247   dnl Fall back to explicit checks if this fails
248   if test "x$HAVE_SPEEX" = xno ; then
249     AC_CHECK_LIB(speex, speex_encoder_init, HAVE_SPEEX="maybe", , [-lm -logg])
250     if test "x$HAVE_SPEEX" = xmaybe; then
251       AC_CHECK_HEADER(speex.h, HAVE_SPEEX="yes",
252         [AC_CHECK_HEADER([speex/speex.h], HAVE_SPEEX="yes", HAVE_SPEEX="no")]
253       )
254     fi
255   fi
256
257   if test "x$HAVE_SPEEX" = xyes ; then
258     AC_CHECK_HEADER([speex/speex.h],
259                     AC_DEFINE(HAVE_SPEEX_SUBDIR, [1], [Define to 1 if speex headers are eg. <speex/speex.h>])
260     )
261
262     AC_DEFINE([HAVE_SPEEX], [], [Define if we have speex.])
263     SPEEX_LIBS="-lspeex -lm"
264     AC_SUBST(SPEEX_LIBS)
265   fi
266
267 else
268   HAVE_SPEEX=disabled
269 fi
270
271
272 dnl
273 dnl Detect libmad
274 dnl
275
276 HAVE_MAD=no
277
278 ac_enable_mad=yes
279 AC_ARG_ENABLE(mad,
280      [  --disable-mad           disable libmad (MPEG audio loading) support],
281      [ ac_enable_mad=no ], [ ac_enable_mad=yes ])
282
283 if test "x${ac_enable_mad}" != xno ; then
284   AC_CHECK_LIB(mad, mad_decoder_init, HAVE_MAD="maybe")
285
286   if test "x$HAVE_MAD" = xmaybe ; then
287     AC_CHECK_HEADER(mad.h, HAVE_MAD="yes", HAVE_MAD="no")
288   fi
289   if test "x$HAVE_MAD" = xyes ; then
290     AC_DEFINE([HAVE_MAD], [], [Define if we have mad.])
291     MAD_LIBS="-lmad"
292     AC_SUBST(MAD_LIBS)
293   fi
294
295 else
296   HAVE_MAD=disabled
297 fi
298
299 dnl
300 dnl Detect secret rabbit code
301 dnl
302
303 HAVE_LIBSAMPLERATE=no
304
305 ac_enable_src=yes
306 AC_ARG_ENABLE(src,
307      [  --disable-src           enable secret rabbit code (libsamplerate)],
308      [ ac_enable_src=no ], [ ac_enable_src=yes])
309
310 if test "x${ac_enable_src}" != xno ; then
311   PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.9,
312                     HAVE_LIBSAMPLERATE="yes", HAVE_LIBSAMPLERATE="no")
313
314   if test "x$HAVE_LIBSAMPLERATE" = xyes ; then
315     AC_DEFINE([HAVE_LIBSAMPLERATE], [], [Define if we have libsamplerate.])
316     AC_SUBST(SAMPLERATE_LIBS)
317   fi
318 else
319   HAVE_LIBSAMPLERATE=disabled
320 fi
321
322
323 dnl
324 dnl Detect output drivers. Enable as many as possible by default and
325 dnl choose between them at runtime.
326 dnl
327
328 ac_enable_pulseaudio=yes
329 AC_ARG_ENABLE(pulseaudio,
330      AC_HELP_STRING([--disable-pulseaudio],[Disable PulseAudio driver]),
331      [ ac_enable_pulseaudio=no ])
332
333 ac_enable_alsa=yes
334 AC_ARG_ENABLE(alsa,
335      AC_HELP_STRING([--disable-alsa],[Disable ALSA driver]),
336      [ ac_enable_alsa=no ])
337
338 ac_enable_oss=yes
339 AC_ARG_ENABLE(oss,
340      AC_HELP_STRING([--disable-oss],[Disable OSS driver]),
341      [ ac_enable_oss=no ])
342
343 if test "x${ac_enable_pulseaudio}" != xno ; then
344   PKG_CHECK_MODULES(PULSEAUDIO, libpulse-simple >= 0.9.10, HAVE_PULSEAUDIO="yes", sweep_config_ok="no")
345   AC_SUBST(PULSEAUDIO_CFLAGS)
346   AC_SUBST(PULSEAUDIO_LIBS)
347   if test "x$HAVE_PULSEAUDIO" = xyes; then
348     AC_DEFINE([DRIVER_PULSEAUDIO], [], [Define if we have and want pulseaudio.])
349     sweep_config_driver="$sweep_config_driver PulseAudio"
350   fi
351 else
352   HAVE_PULSEAUDIO=disabled
353 fi
354
355 if test "x${ac_enable_alsa}" != xno ; then
356   PKG_CHECK_MODULES(ALSA, alsa >= 1.0.0,
357                     HAVE_ALSA="yes", sweep_config_ok="no")
358   AC_SUBST(ALSA_CFLAGS)
359   AC_SUBST(ALSA_LIBS)
360   AC_DEFINE([DRIVER_ALSA], [], [Define if we have and want alsa.])
361   if test "x$HAVE_ALSA" == xyes ; then
362     AC_CHECK_LIB(asound, snd_seq_open, HAVE_ALSA="maybe", sweep_config_ok="no")
363     sweep_config_driver="$sweep_config_driver ALSA"
364   fi
365 else
366   HAVE_ALSA=disabled
367 fi
368
369 if test "x${ac_enable_oss}" != xno ; then
370   dnl Test for OSS
371   AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
372   if test "x${ac_cv_header_sys_soundcard_h}" = xyes || \
373     test "x${ac_cv_header_machine_soundcard_h}" = xyes; then
374     AC_DEFINE([DRIVER_OSS], [], [Define if we have and want OSS.])
375     dnl Check for NetBSD's OSS compatability layer
376     AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBS="$LIBS -lossaudio")
377     sweep_config_driver="$sweep_config_driver OSS"
378   fi
379 else
380   HAVE_OSS=disabled
381 fi
382
383 dnl Test for Solaris audio
384 case $host in
385   *-*-solaris*)
386   AC_CHECK_HEADERS(sys/audioio.h)
387   if test "x${ac_cv_header_sys_audioio_h}" = xyes; then
388       AC_DEFINE([DRIVER_SOLARIS_AUDIO], [], [Define if we have and want the solaris audio driver.])
389       sweep_config_driver="$sweep_config_driver Solaris"
390   fi
391   ;;
392 esac
393
394 dnl Set PACKAGE_LOCALE_DIR in config.h.
395 if test "x${prefix}" = xNONE; then
396   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${ac_default_prefix}/${DATADIRNAME}/locale", [Define the PACKAGE_LOCALE_DIR.])
397 else
398   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${prefix}/${DATADIRNAME}/locale")
399 fi
400
401 if test "x${datadir}" = 'x${prefix}/share'; then
402   if test "x${prefix}" = xNONE; then
403      PACKAGE_DATA_DIR='"${ac_default_prefix}/share/${PACKAGE}"'
404   else
405      PACKAGE_DATA_DIR='"${prefix}/share/${PACKAGE}"'
406   fi
407 else
408    PACKAGE_DATA_DIR='"${datadir}/${PACKAGE}"'
409 fi
410 AC_SUBST(PACKAGE_DATA_DIR)
411
412 dnl Set PACKAGE_PLUGIN_DIR in Makefiles and config.h.
413 PACKAGE_PLUGIN_DIR=$libdir/sweep
414 AC_SUBST(PACKAGE_PLUGIN_DIR)
415 if test "x${prefix}" = xNONE; then
416   sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}"
417 else
418   sweep_plugin_dir="${prefix}/lib/${PACKAGE}"
419 fi
420 AC_DEFINE_UNQUOTED([PACKAGE_PLUGIN_DIR], "$sweep_plugin_dir", [Define the PACKAGE_PLUGIN_DIR.])
421
422 dnl Set PACKAGE_SOURCE_DIR in config.h.
423 packagesrcdir=`cd $srcdir && pwd`
424 AC_DEFINE_UNQUOTED([PACKAGE_SOURCE_DIR], "${packagesrcdir}", [Define the PACKAGE_SOURCE_DIR.])
425
426
427 AC_ARG_ENABLE(gcc-werror,
428         AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
429
430 dnl Use -Wall if we have gcc.
431 if test "x$ac_cv_prog_gcc" = xyes ; then
432   CFLAGS="$CFLAGS -Wall"
433   if test x$enable_gcc_werror = "xyes" ; then
434     CFLAGS="$CFLAGS -Werror"
435         fi
436 fi
437
438 AC_ARG_ENABLE(gtk-deprecated,
439         AC_HELP_STRING([--disable-gtk-deprecated], [disallow use of deprecated GTK functions]))
440
441 GTK_DISABLE_DEPRECATED=""
442 if test x$enable_gtk_deprecated = "xno" ; then
443   GTK_DISABLE_DEPRECATED="-DGTK_DISABLE_DEPRECATED" # -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED"
444 fi
445
446 AC_SUBST(GTK_DISABLE_DEPRECATED)
447
448
449
450 dnl - Modified from www.nagios.org who modified it from www.erlang.org
451
452 dnl   Check how to export functions from the sweep executable, needed
453 dnl   when dynamically loaded drivers are loaded (so that they can find
454 dnl   sweep functions).
455 dnl   OS'es with ELF executables using the GNU linker (Linux and recent *BSD ,
456 dnl   in rare cases Solaris) typically need '-Wl,-export-dynamic' (i.e. pass
457 dnl   -export-dynamic to the linker - also known as -rdynamic and some other
458 dnl   variants); some sysVr4 system(s) instead need(s) '-Wl,-Bexport'.
459 dnl   AIX 4.x (perhaps only for x>=2) wants -Wl,-bexpall,-brtl and doesn't
460 dnl   reliably return an error for others, thus we separate it out.
461 dnl   Otherwise we assume that if the linker accepts the flag, it is needed.
462      
463        AC_MSG_CHECKING(for extra flags needed to export symbols)
464        case $host_os in
465                aix4*|aix5*)
466                        EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl"
467                ;;
468                bsdi*)
469                        EXPORT_DYNAMIC_FLAGS="-rdynamic"
470                ;;
471                *)
472                        save_ldflags="$LDFLAGS"
473                        LDFLAGS=-Wl,-export-dynamic
474                        AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic"], [
475                                LDFLAGS=-Wl,-Bexport
476                                AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport"],
477                                        AC_MSG_RESULT(none))])
478                        LDFLAGS="$save_ldflags"
479                ;;
480        esac
481        AC_SUBST(EXPORT_DYNAMIC_FLAGS)
482        test "x$EXPORT_DYNAMIC_FLAGS" != x && AC_MSG_RESULT([$EXPORT_DYNAMIC_FLAGS])
483
484
485
486 dnl
487 dnl  Configuration tests complete -- provide summary of results.
488 dnl
489
490 if test $sweep_config_ok = no ; then
491
492 AC_MSG_RESULT([
493 **************************************************************
494
495 *** Sweep $VERSION: Automatic configuration FAILED.
496
497 *** The file config.log has full details.
498
499 *** The following required libraries are missing or
500 *** misconfigured on your system:
501 ])
502
503 if test "x$HAVE_GLIB" != xyes ||  test "x$HAVE_GTHREADS" != xyes; then
504   AC_MSG_RESULT([
505 *** GLib version 2.2.x or greater, available from  http://www.gtk.org/
506 ])
507 fi
508
509 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then
510   AC_MSG_RESULT([
511       Development files missing: The libglib-2.0 binary seems
512       to be installed, but the pkg-config tool cannot find its build
513       information.
514 ])
515 fi
516
517 if test "x$HAVE_GTK" != xyes ; then
518   AC_MSG_RESULT([
519 *** GTK+ version 2.2.x or greater, available from  http://www.gtk.org/
520 ])
521 fi
522 if test "x$HAVE_GTK" = xmaybe ; then
523   AC_MSG_RESULT([
524       Development files missing: The libgtk binary seems
525       to be installed, but the pkg-config tool cannot find its build
526       information..
527 ])
528 fi
529
530 if test "x$HAVE_LIBSNDFILE1" != xyes ; then
531   AC_MSG_RESULT([
532 *** libsndfile version 1.0.0 or greater, available from
533 *** http://www.mega-nerd.com/libsndfile/
534 ])
535 fi
536 if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
537     AC_MSG_RESULT([
538       Development files missing: libsndfile-1.0.0 or greater
539       seems to exist on your system, however the header files
540       are missing and the pkg-config tool cannot find its build
541       information.
542 ])
543 fi
544
545 if test "x${ac_enable_alsa}" != xno ; then
546   if test "x$HAVE_ALSA" != xyes ; then
547     AC_MSG_RESULT([
548 *** alsa-lib version 1.0.0 or greater, available from
549 *** http://alsa-project.org/
550 ])
551   fi
552   if test "x$HAVE_ALSA" = xmaybe ; then
553     AC_MSG_RESULT([
554       Development files missing: alsa-lib 1.0.0 or greater seems to exist
555       on your system, however the pkg-config tool cannot find the
556       build information.
557 ])
558   fi
559 fi
560
561 if test "x${ac_enable_pulseaudio}" != xno ; then
562   if test "x$HAVE_PULSEAUDIO" != xyes ; then
563     AC_MSG_RESULT([
564 *** PulseAudio, available from http://pulseaudio.org/
565 ])
566   fi
567 fi
568
569 if test "x$HAVE_VORBIS" = xmaybe ; then
570     AC_MSG_RESULT([
571       Development files missing: The libogg, libvorbis, libvorbisenc and
572       libvorbisfile library binaries seem to be installed, but building of
573       a test program failed.
574 ])
575 fi
576
577 if test "x$HAVE_VORBIS" != xyes ; then
578     AC_MSG_RESULT([
579 *** Ogg Vorbis libraries, available from  http://www.xiph.org/ogg/vorbis/
580 ])
581 fi
582
583 if test "x$HAVE_VORBIS" != xyes ; then
584     AC_MSG_RESULT([
585 *** Or, to build a version of Sweep without Ogg Vorbis support, do:
586 ***
587 ***         ./configure --disable-oggvorbis
588 ])
589 fi
590
591 if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe ||
592    test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe ||
593    test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe ||
594    test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then
595   AC_MSG_RESULT([
596 *** HOW TO FIX "development files missing": you have probably
597 *** installed the library package from your distribution. You
598 *** must also install the library's "development" package.
599 ])
600 fi
601
602 AC_MSG_RESULT([
603 *** If you install the required libraries from source, you
604 *** need to inform the dynamic linker of their location. If
605 *** you install them in a system-wide directory such as
606 *** /usr/local (the default), you must ensure that
607 *** /usr/local/lib is listed in /etc/ld.so.conf, then run
608 *** ldconfig to update the dynamic linking system.
609 *** Alternatively, you can set your LD_LIBRARY_PATH environment
610 *** variable to include the library installation directory.
611 ])
612
613
614 AC_MSG_RESULT([
615 **************************************************************
616 ])
617
618 AC_MSG_ERROR([
619 ***
620 *** After fixing the above problems, you must run ./configure again.
621 ***
622 ])
623
624 else
625
626 # Shave make automake/libtool output much less verbose and much more
627 # readable. See : git://git.lespiau.name/shave
628 SHAVE_INIT([],[enable])
629
630 AC_OUTPUT([
631 shave
632 shave-libtool
633 Makefile
634 sweep.spec
635 m4/Makefile
636 include/Makefile
637 include/sweep/Makefile
638 src/Makefile
639 src/tdb/Makefile
640 plugins/Makefile
641 plugins/echo/Makefile
642 plugins/normalise/Makefile
643 plugins/fade/Makefile
644 plugins/reverse/Makefile
645 plugins/ladspa/Makefile
646 plugins/byenergy/Makefile
647 plugins/example/Makefile
648 doc/Makefile
649 intl/Makefile
650 po/Makefile.in
651 doc/sweep.1
652 ])
653
654 AC_MSG_RESULT([
655   ************************************************************
656  * Sweep $VERSION:  Automatic configuration OK.
657 **
658 **  Configuration summary:
659 **
660 **     Experimental code: ....... ${ac_enable_experimental}
661 **     Audio devices: ...........$sweep_config_driver
662 **     PCM: libsndfile .......... $HAVE_LIBSNDFILE1
663 **     Ogg Vorbis support: ...... $HAVE_VORBIS
664 **     MPEG (MP3) loading: ...... $HAVE_MAD
665 **     Speex support: ........... $HAVE_SPEEX
666 **     Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE
667 **     Translations: ............ $ALL_LINGUAS
668 **
669 **  Installation directories:
670 **
671 **     Program: ................. ${prefix}/bin
672 **     Plugins: ................. $sweep_plugin_dir
673 **
674 **************************************************************
675 **
676 **  Type 'make' to compile Sweep.
677 **
678 **  Type 'make install' to install Sweep. Plugins will not be
679 **  accessible until you have done this.
680 ** 
681 **  Have fun with Scrubby!
682  *
683   ************************************************************
684 ])
685
686 fi
Note: See TracBrowser for help on using the browser.