summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-03-06 00:28:00 (GMT)
committer Jaromil <jaromil@dyne.org>2013-03-06 00:28:00 (GMT)
commit586c73c07ffbf3d55808c81c92ad9e2e6d270072 (patch)
tree452bbbd68e6bbd591c04decfd19c31ca8a3f5fab
parentd25f7b5d3fe67570c9cb062cff6646407f17a561 (diff)
fixes to compilation on osx
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0ea8769..b7cdcdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,16 @@ dnl ==============================================================
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AC_MSG_CHECKING([On which platform we are compiling])
+case "$host_os" in
+ *darwin*)
+ AC_MSG_RESULT([APPLE/OSX])
+ AC_DEFINE(HAVE_DARWIN,1,[define if compiling for Apple Darwin OSX])
+ GLOBAL_CFLAGS+=" -DMACOSX -D_DARWIN_C_SOURCE -DPOLLRDHUP=0x2000"
+ have_darwin=yes ;;
+ *) ;;
+esac
+
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([config.h])
@@ -75,7 +85,6 @@ fi
AC_SUBST(UPNP_LIBS)
AC_SUBST(UPNP_CPPFLAGS)
-
dnl ==============================================================
dnl compile with full warnings and debugging symbols
dnl ==============================================================