Skip to content

Commit d818e7b

Browse files
author
Mei-Hui Su
committed
add mac specific flag in case mac Clang were used
1 parent 7ef5881 commit d818e7b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ LT_INIT
4848
AC_PROG_INSTALL
4949
AC_PROG_MKDIR_P
5050

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+
5165
dnl CURL (used to download model files)
5266
AC_PATH_PROG(CURL, curl)
5367
if test -z "$CURL" ; then

0 commit comments

Comments
 (0)