Skip to content

Commit

Permalink
M1 Macでビルドだけ通るようにする(但し動かない)
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailJP committed Aug 3, 2022
1 parent 1e98957 commit 8f16c8f
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@ AC_CHECK_HEADER([windows.h], [using_winapi=yes], [using_winapi=no])
AM_CONDITIONAL(WITH_WINAPI, test x$using_winapi != xno)

# Check for OSX
AC_MSG_CHECKING([for OSX])
AS_IF([test "x$host_vendor" = xapple], [
AC_MSG_CHECKING([for Mac])
AS_IF([test "x$build_vendor" = xapple], [
AC_MSG_RESULT([yes])
AC_MSG_NOTICE([It seems we are using Mac OS X.])
AC_MSG_NOTICE([Please make sure openal-soft is installed with Homebrew.])
AC_MSG_NOTICE([The framework shipped with Macintosh will not be used.])
CPPFLAGS="$CPPFLAGS -I/usr/local/opt/openal-soft/include"
LDFLAGS="$LDFLAGS -L/usr/local/opt/openal-soft/lib"
AS_IF([test "x$build_cpu" = xaarch64], [
AC_MSG_NOTICE([It seems we are using Apple silicon Mac.])
AC_MSG_NOTICE([Please make sure openal-soft and mesa are installed with Homebrew.])
AC_MSG_NOTICE([The framework shipped with Mac will not be used.])
CPPFLAGS="$CPPFLAGS -I/opt/homebrew/include -I/opt/homebrew/opt/openal-soft/include"
LDFLAGS="$LDFLAGS -L/opt/homebrew/lib -L/opt/homebrew/opt/openal-soft/lib"
], [
AC_MSG_NOTICE([It seems we are using Intel Mac.])
AC_MSG_NOTICE([Please make sure openal-soft and mesa are installed with Homebrew.])
AC_MSG_NOTICE([The framework shipped with Mac will not be used.])
CPPFLAGS="$CPPFLAGS -I/usr/local/opt/openal-soft/include"
LDFLAGS="$LDFLAGS -L/usr/local/opt/openal-soft/lib"
])
], [AC_MSG_RESULT([no])])

# Resource editor
Expand Down

0 comments on commit 8f16c8f

Please sign in to comment.