Line 0
Link Here
|
|
|
1 |
--- configure.ac.orig 2019-04-17 19:37:48 UTC |
2 |
+++ configure.ac |
3 |
@@ -64,6 +64,10 @@ case "${host_cpu}" in |
4 |
CPU=x86_64 |
5 |
AC_MSG_RESULT(${host_cpu}) |
6 |
;; |
7 |
+ amd64) |
8 |
+ CPU=x86_64 |
9 |
+ AC_MSG_RESULT(${host_cpu}) |
10 |
+ ;; |
11 |
*) |
12 |
AC_MSG_ERROR([Unsupported CPU.]) |
13 |
;; |
14 |
@@ -149,6 +153,18 @@ case "$host" in |
15 |
[echo "You need to install the OpenAL library." |
16 |
exit -1]) |
17 |
build_linux="yes" |
18 |
+ ;; |
19 |
+ *-*-freebsd*) |
20 |
+ CFLAGS="$CFLAGS -I/usr/local/include" |
21 |
+ CXXFLAGS="$CXXFLAGS -I/usr/local/include" |
22 |
+ LDFLAGS="$LDFLAGS -L/usr/local/lib" |
23 |
+ AC_CHECK_LIB([GL], [glGetError], [], \ |
24 |
+ [echo "You need to install the OpenGL library." |
25 |
+ exit -1]) |
26 |
+ AC_CHECK_LIB([openal], [alGetError], [], \ |
27 |
+ [echo "You need to install the OpenAL library." |
28 |
+ exit -1]) |
29 |
+ build_other="yes" |
30 |
;; |
31 |
*) |
32 |
AC_CHECK_LIB([GL], [glGetError], [], \ |