/[svn]/libgig/trunk/configure.in
ViewVC logotype

Contents of /libgig/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 496 - (show annotations) (download)
Sun Apr 10 11:54:58 2005 UTC (16 years, 7 months ago) by persson
File size: 2264 byte(s)
* removed build warnings

1 AC_INIT(configure.in)
2 AM_CONFIG_HEADER(config.h)
3
4 AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net)
5 AC_PROG_LIBTOOL
6
7
8 #------------------------------------------------------------------------------------
9 # Rules for library version information:
10 #
11 # 1. Start with version information of `0:0:0' for each libtool library.
12 # 2. Update the version information only immediately before a public release of
13 # your software. More frequent updates are unnecessary, and only guarantee
14 # that the current interface number gets larger faster.
15 # 3. If the library source code has changed at all since the last update, then
16 # increment revision (`c:r:a' becomes `c:r+1:a').
17 # 4. If any interfaces have been added, removed, or changed since the last update,
18 # increment current, and set revision to 0.
19 # 5. If any interfaces have been added since the last public release, then increment
20 # age.
21 # 6. If any interfaces have been removed since the last public release, then set age
22 # to 0.
23
24 SHARED_VERSION_INFO="1:0:0"
25
26
27 AC_C_BIGENDIAN
28
29 AC_LANG_CPLUSPLUS
30 AC_PROG_CXX
31 AM_PROG_LIBTOOL
32
33 AC_SUBST(SHLIB_VERSION_ARG)
34 AC_SUBST(SHARED_VERSION_INFO)
35
36 have_audio_file_lib="false"
37
38 # check for presence of libsndfile
39 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0)
40 AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1")
41 AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.])
42 AC_SUBST(SNDFILE_CFLAGS)
43 AC_SUBST(SNDFILE_LIBS)
44 if test "$ac_cv_sndfile" = "1"; then
45 have_audio_file_lib="true";
46 fi
47
48 # check for presence of libaudiofile
49 PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0)
50 AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.])
51 AC_SUBST(AUDIOFILE_CFLAGS)
52 AC_SUBST(AUDIOFILE_LIBS)
53 if test "$ac_cv_audiofile" = "1"; then
54 have_audio_file_lib="true";
55 fi
56
57 if test "$have_audio_file_lib" = "false"; then
58 echo "No audio file library found!"
59 echo "Sorry, you need either libsndfile or libaudiofile to compile libgig."
60 echo "This is needed for the gigextract utility to write audio files."
61 exit -1;
62 fi
63
64 AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile)

  ViewVC Help
Powered by ViewVC