File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 11# # Process this file with automake to generate a Makefile.in
22
3- ACLOCAL_AMFLAGS = -I m4 --install
3+ ACLOCAL_AMFLAGS = -I m4
44
55SUBDIRS = plugins po
66
Original file line number Diff line number Diff line change 44
55set -e -u
66
7+ mkdir -p m4/
8+
79if [[ " $( uname -s) " == Darwin ]]; then
8- # This provides a dummy substitute to alsa.m4 on macOS
9- echo ' AC_DEFUN([AM_PATH_ALSA], [HAVE_ALSA=no])' > acinclude.m4
10+ # This provides a dummy substitute to alsa.m4 on macOS.. and is a reason
11+ # why "make dist" should be run on Linux rather than on macOS.
12+ echo ' AC_DEFUN([AM_PATH_ALSA], [HAVE_ALSA=no])' > m4/alsa.m4
13+ else
14+ # This will make aclocal add line "m4_include([m4/alsa.m4])"
15+ # to file acinclude.m4 rather than inlining that file's content.
16+ # As a result, packagers are able to run ./autogen.sh (or autoreconf)
17+ # with no ALSA development files installed.
18+ alsa_m4=" $( aclocal --print-ac-dir) " /alsa.m4
19+ if [[ -f " ${alsa_m4} " ]]; then
20+ cp -v " ${alsa_m4} " m4/alsa.m4
21+ else
22+ rm -f -v m4/alsa.m4
23+ fi
1024fi
1125
1226autoreconf --install --verbose --force || \
You can’t perform that action at this time.
0 commit comments