-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
74 lines (66 loc) · 1.89 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
AC_PREREQ(2.59)
AC_INIT(alsa-firmware, 1.2.4)
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_CC_FOR_BUILD
AC_PROG_INSTALL
AC_PROG_LN_S
AC_HEADER_STDC
AM_INIT_AUTOMAKE
echo $VERSION > $srcdir/version
AC_ARG_ENABLE(loader,
[ --disable-loader Disable the old ALSA fw loader support],
[loader="$enableval"],[loader=yes])
AC_ARG_ENABLE(hotplug,
[ --disable-hotplug Disable the hotplug fw loader support],
[hotplug="$enableval"],[hotplug=yes])
AC_ARG_ENABLE(buildfw,
[ --enable-buildfw Enable building fw from source files],
[buildfw="$enableval"],[buildfw=no])
AC_PATH_PROGS(AS31, as31)
AS31_FLAGS="-Fhex"
AC_SUBST(AS31_FLAGS)
if test x"${AS31}" = x""; then
buildfw=false
fi
AM_CONDITIONAL(USE_LOADER, test "$loader" = "yes")
AM_CONDITIONAL(USE_HOTPLUG, test "$hotplug" = "yes")
AM_CONDITIONAL(BUILD_FW, test "$buildfw" = "yes")
AC_MSG_CHECKING(firmware installation directory)
# where to put the firmware. If none of these is right, can specify where
# --with-hotplug-dir
if test -d /lib/firmware ; then
detected_fwdir="/lib/firmware"
elif test -d /lib/hotplug/firmware ; then
detected_fwdir="/lib/hotplug/firmware"
elif test -d /usr/lib/hotplug/firmware ; then
detected_fwdir="/usr/lib/hotplug/firmware"
else
detected_fwdir="/lib/firmware"
fi
AC_ARG_WITH(hotplug-dir,
[ --with-hotplug-dir Specify the hotplug firmware directory],
[hotplugfwdir="$withval"],
[hotplugfwdir="$detected_fwdir"])
HOTPLUGFWDIR="$hotplugfwdir"
AC_SUBST(HOTPLUGFWDIR)
AC_MSG_RESULT($HOTPLUGFWDIR)
AC_OUTPUT(Makefile \
hdsploader/Makefile \
mixartloader/Makefile \
usx2yloader/Makefile \
vxloader/Makefile \
pcxhrloader/Makefile \
echoaudio/Makefile \
emu/Makefile \
asihpi/Makefile \
korg1212/Makefile \
maestro3/Makefile \
multisound/Makefile \
sb16/Makefile \
wavefront/Makefile \
ymfpci/Makefile \
aica/Makefile \
ca0132/Makefile \
cs46xx/Makefile \
)