]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - m4/os.m4
Mac OS X support.
[thirdparty/lldpd.git] / m4 / os.m4
index 1732dccf5c1efa1b5faccd691e7136f9dad4a6a1..7947dc918cf3af1d09dc538885ad420e8a3e8624 100644 (file)
--- a/m4/os.m4
+++ b/m4/os.m4
@@ -10,7 +10,7 @@ AC_DEFUN([lldp_DEFINE_OS], [dnl
       AC_DEFINE_UNQUOTED(HOST_OS_$3, 1, [Host operating system is $2])
       ;;
   esac
-  AM_CONDITIONAL(HOST_OS_$3, test x$os = x$2)dnl
+  AM_CONDITIONAL(HOST_OS_$3, test x"$os" = x"$2")dnl
 ])
 
 AC_DEFUN([lldp_CHECK_OS], [
@@ -21,8 +21,9 @@ AC_DEFUN([lldp_CHECK_OS], [
   lldp_DEFINE_OS(freebsd*|kfreebsd*, FreeBSD, FREEBSD)
   lldp_DEFINE_OS(openbsd*, OpenBSD, OPENBSD)
   lldp_DEFINE_OS(netbsd*, NetBSD, NETBSD)
+  lldp_DEFINE_OS(darwin*, [Mac OS X], OSX)
 
-  if test x$os = x; then
+  if test x"$os" = x; then
      AC_MSG_RESULT(no)
      AC_MSG_ERROR([*** unsupported OS $host_os])
   fi