Skip to content

Commit

Permalink
avoid OS=DARWINdigists
Browse files Browse the repository at this point in the history
  • Loading branch information
barak committed Dec 28, 2016
1 parent af51bd4 commit 8e58aeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ AS_CASE([${host_os}],
[mingw32], [OS=WINDOWS32],
[macos], [OS=DARWIN],
[linux-android], [OS=ANDROID],
[OS="$(echo ${host_os}|tr "a-z" "A-Z_")"])
[OS="$(echo ${host_os}|tr "a-z" "A-Z")"])

uname_os="$(uname | tr "a-z" "A-Z")"

# Avoid, e.g., OS=DARWIN15.6.0
AS_CASE([${uname_os}],
[DARWIN], [OS=DARWIN])

AC_MSG_NOTICE([host_os: ${host_os}])
AC_MSG_NOTICE([uname_os: ${uname_os}])
AC_MSG_NOTICE([adjusted OS: ${OS}])
Expand Down

0 comments on commit 8e58aeb

Please sign in to comment.