1 |
schoenebeck |
2 |
AC_INIT(configure.in) |
2 |
capela |
168 |
AM_CONFIG_HEADER(config.h) |
3 |
|
|
|
4 |
schoenebeck |
315 |
AM_INIT_AUTOMAKE(libgig, 1.0.0, cuse@users.sourceforge.net) |
5 |
schoenebeck |
186 |
AC_PROG_LIBTOOL |
6 |
capela |
168 |
|
7 |
schoenebeck |
186 |
|
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 |
schoenebeck |
518 |
LIBGIG_CURRENT=1 |
25 |
|
|
LIBGIG_REVISION=0 |
26 |
|
|
LIBGIG_AGE=0 |
27 |
|
|
SHARED_VERSION_INFO="$LIBGIG_CURRENT:$LIBGIG_REVISION:$LIBGIG_AGE" |
28 |
schoenebeck |
186 |
|
29 |
|
|
|
30 |
schoenebeck |
11 |
AC_C_BIGENDIAN |
31 |
schoenebeck |
2 |
|
32 |
|
|
AC_LANG_CPLUSPLUS |
33 |
|
|
AC_PROG_CXX |
34 |
|
|
AM_PROG_LIBTOOL |
35 |
|
|
|
36 |
schoenebeck |
186 |
AC_SUBST(SHLIB_VERSION_ARG) |
37 |
|
|
AC_SUBST(SHARED_VERSION_INFO) |
38 |
|
|
|
39 |
schoenebeck |
383 |
have_audio_file_lib="false" |
40 |
|
|
|
41 |
persson |
496 |
# check for presence of libsndfile |
42 |
schoenebeck |
220 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, ac_cv_sndfile=1, ac_cv_sndfile=0) |
43 |
schoenebeck |
383 |
AM_CONDITIONAL(HAVE_SNDFILE, test $ac_cv_sndfile = "1") |
44 |
schoenebeck |
220 |
AC_DEFINE_UNQUOTED([HAVE_SNDFILE],${ac_cv_sndfile}, [Set to 1 if you have libsndfile.]) |
45 |
|
|
AC_SUBST(SNDFILE_CFLAGS) |
46 |
|
|
AC_SUBST(SNDFILE_LIBS) |
47 |
schoenebeck |
383 |
if test "$ac_cv_sndfile" = "1"; then |
48 |
|
|
have_audio_file_lib="true"; |
49 |
|
|
fi |
50 |
schoenebeck |
220 |
|
51 |
persson |
496 |
# check for presence of libaudiofile |
52 |
schoenebeck |
383 |
PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.3, ac_cv_audiofile=1, ac_cv_audiofile=0) |
53 |
|
|
AC_DEFINE_UNQUOTED([HAVE_AUDIOFILE],${ac_cv_audiofile}, [Set to 1 if you have libaudiofile.]) |
54 |
|
|
AC_SUBST(AUDIOFILE_CFLAGS) |
55 |
|
|
AC_SUBST(AUDIOFILE_LIBS) |
56 |
|
|
if test "$ac_cv_audiofile" = "1"; then |
57 |
|
|
have_audio_file_lib="true"; |
58 |
|
|
fi |
59 |
|
|
|
60 |
|
|
if test "$have_audio_file_lib" = "false"; then |
61 |
|
|
echo "No audio file library found!" |
62 |
|
|
echo "Sorry, you need either libsndfile or libaudiofile to compile libgig." |
63 |
|
|
echo "This is needed for the gigextract utility to write audio files." |
64 |
|
|
exit -1; |
65 |
|
|
fi |
66 |
|
|
|
67 |
schoenebeck |
518 |
AM_INIT_AUTOMAKE(libgig, "$LIBGIG_CURRENT.$LIBGIG_REVISION.$LIBGIG_AGE") |
68 |
|
|
|
69 |
|
|
AC_OUTPUT(Makefile doc/Makefile man/Makefile src/Makefile libgig.spec gig.pc Doxyfile man/dlsdump.1 man/gigdump.1 man/gigextract.1 man/rifftree.1) |