/[svn]/linuxsampler/trunk/configure.ac
ViewVC logotype

Annotation of /linuxsampler/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 204 - (hide annotations) (download)
Tue Jul 13 22:54:25 2004 UTC (15 years, 4 months ago) by schoenebeck
Original Path: linuxsampler/trunk/configure.in
File size: 2901 byte(s)
forgot to change some things which was mandatory due to the recent
directory movements ('/src/audiodriver' -> '/src/drivers/audio',
'/src/mididriver' -> '/src/drivers/midi')

1 schoenebeck 9 AC_INIT(configure.in)
2 schoenebeck 12 AC_C_BIGENDIAN
3 schoenebeck 9 AC_CANONICAL_SYSTEM
4    
5 schoenebeck 80 AC_SUBST(target)
6     AC_SUBST(target_alias)
7     AC_SUBST(target_cpu)
8     AC_SUBST(target_os)
9     AC_SUBST(target_vendor)
10 schoenebeck 18
11     echo -n "checking whether x86 architecture... "
12 schoenebeck 9 def_arch_x86=0
13     case $target_cpu in
14     "i386" | "i486" | "i586" | "i686" | "i786")
15     echo "yes"
16     def_arch_x86=1;;
17     *)
18     echo "no";;
19     esac
20     AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])
21    
22 schoenebeck 18
23     AC_CHECK_HEADER(alsa/asoundlib.h,
24     AC_CHECK_LIB(asound, main,
25     have_alsa="true"
26     ,
27     have_alsa="false"
28     )
29     ,
30     have_alsa="false"
31     )
32     if test "$have_alsa" = "false"; then
33     echo "Alsa not installed!"
34     echo "Sorry, LinuxSampler only supports Alsa sound drivers at the moment!"
35     exit -1;
36     fi
37    
38    
39     echo -n "checking Alsa version... "
40     AC_LANG_SAVE
41     AC_LANG_C
42     AC_TRY_RUN([
43     #include <alsa/asoundlib.h>
44     void main(void) {
45     /* ensure backward compatibility */
46     #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
47     #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
48     #endif
49     exit(SND_LIB_MAJOR);
50     }
51     ],
52     alsa_major=0,
53     alsa_major=$?,
54     alsa_major=0
55     )
56     AC_TRY_RUN([
57     #include <alsa/asoundlib.h>
58     void main(void) {
59     /* ensure backward compatibility */
60     #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
61     #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
62     #endif
63     exit(SND_LIB_MINOR);
64     }
65     ],
66     alsa_minor=0,
67     alsa_minor=$?,
68     alsa_minor=0
69     )
70     AC_TRY_RUN([
71     #include <alsa/asoundlib.h>
72     void main(void) {
73     /* ensure backward compatibility */
74     #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
75     #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
76     #endif
77     exit(SND_LIB_SUBMINOR);
78     }
79     ],
80     alsa_subminor=0,
81     alsa_subminor=$?,
82     alsa_subminor=0
83     )
84     AC_LANG_RESTORE
85     echo "$alsa_major.$alsa_minor.$alsa_subminor";
86     AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
87     AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
88     AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
89    
90    
91 schoenebeck 31 # JACK
92     PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)
93     AC_SUBST(JACK_LIBS)
94     AC_SUBST(JACK_CFLAGS)
95 schoenebeck 33 if test $HAVE_JACK = false; then
96     HAVE_JACK=0;
97     else
98     HAVE_JACK=1;
99     fi
100 schoenebeck 31 AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])
101    
102    
103 schoenebeck 9 AM_CONFIG_HEADER(config.h)
104 capela 133 AM_INIT_AUTOMAKE(linuxsampler, 0.2)
105 schoenebeck 9
106     AC_LANG_CPLUSPLUS
107     AC_PROG_CXX
108     AM_PROG_LIBTOOL
109    
110 schoenebeck 204 AC_OUTPUT(Makefile src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile)

  ViewVC Help
Powered by ViewVC