diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-23 18:09:48 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-06-23 18:09:48 +0000 |
commit | 303f8c98ee28150285d69bd213970144fe224da3 (patch) | |
tree | 3cdbf0cc482229b65481fe30049c92fa3c2f1faa /configure.ac | |
parent | bee57c535c29a01cadfaa660d8c0182288960c33 (diff) | |
download | sg3_utils-303f8c98ee28150285d69bd213970144fe224da3.tar.gz |
Haiku OS support, add pt function list in sg_pt_dummy.c; add slices to sg_mrq_dd
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@905 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bb1e1477..b00d167f 100644 --- a/configure.ac +++ b/configure.ac @@ -106,11 +106,18 @@ case "${host}" in AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe]) check_for_getrandom CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";; - *-*-linux-gnu* | *-*-linux* | *) + *-*-linux-gnu* | *-*-linux*) AC_DEFINE_UNQUOTED(SG_LIB_LINUX, 1, [sg3_utils on linux]) check_for_linux_sg_v4_hdr check_for_getrandom check_for_linux_nvme_headers;; + *-*-haiku*) + AC_DEFINE_UNQUOTED(SG_LIB_HAIKU, 1, [sg3_utils on Haiku]) + AC_SUBST([os_cflags], ['']) + AC_SUBST([os_libs], ['']) ;; + *) + AC_DEFINE_UNQUOTED(SG_LIB_OTHER, 1, [sg3_utils on other]) + isother=yes;; esac # Define platform-specific symbol. @@ -123,6 +130,8 @@ AM_CONDITIONAL(OS_WIN32_CYGWIN, [echo $host_os | grep '^cygwin' > /dev/null]) AM_CONDITIONAL(OS_ANDROID, [echo $host_os | grep 'android' > /dev/null]) AM_CONDITIONAL(OS_NETBSD, [echo $host_os | grep 'netbsd' > /dev/null]) AM_CONDITIONAL(OS_OPENBSD, [echo $host_os | grep 'openbsd' > /dev/null]) +AM_CONDITIONAL(OS_HAIKU, [echo $host_os | grep '^haiku' > /dev/null]) +AM_CONDITIONAL(OS_OTHER, [test "x$isother" = "xyes"]) AC_ARG_ENABLE([debug], [ --enable-debug Turn on debugging], |