summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--examples/Makefile.am6
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index afac118..b34506d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,6 +90,10 @@ AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove m
# Check if /dev/vcsa1 exists, if so, define LINUX
AM_CONDITIONAL(LINUX, test -c /dev/vcsa1)
+# Check for OS X specific header
+AC_CHECK_HEADER(ApplicationServices/ApplicationServices.h, HAVE_OSX="true")
+AM_CONDITIONAL(OSX, test "$HAVE_OSX" = "true")
+
# Check for rpm SOURCES path
echo -n "checking for rpm sources path... "
RPMSOURCEDIR="NOT-FOUND"
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 4dc1498..5a76ecf 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -2,10 +2,14 @@ if HAVE_LIBPTHREAD
BACKGROUND_TEST=blooptest
endif
+if OSX
+MAC=mac
+endif
+
noinst_HEADERS=radon.h
noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
- vncev storepasswd $(BACKGROUND_TEST)
+ vncev storepasswd $(BACKGROUND_TEST) $(MAC)
LDADD = -L.. -lvncserver