There was an error while loading. Please reload this page.
1 parent 7ef5881 commit d818e7bCopy full SHA for d818e7b
1 file changed
configure.ac
@@ -48,6 +48,20 @@ LT_INIT
48
AC_PROG_INSTALL
49
AC_PROG_MKDIR_P
50
51
+dnl Detect Host OS for macOS/Darwin specific CFLAGS
52
+AC_CANONICAL_HOST
53
+case "$host_os" in
54
+ darwin*)
55
+ is_mac=yes
56
+ CFLAGS="$CFLAGS -std=gnu89 -Wno-deprecated-non-prototype -Wno-implicit-function-declaration"
57
+ ;;
58
+ *)
59
+ is_mac=no
60
61
+esac
62
+AM_CONDITIONAL([IS_MAC], [test "x$is_mac" = "xyes"])
63
+
64
65
dnl CURL (used to download model files)
66
AC_PATH_PROG(CURL, curl)
67
if test -z "$CURL" ; then
0 commit comments