From 21a5cd6d814a913df4cd17b12a7feb5397d65179 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 4 Dec 2016 19:25:17 +0100 Subject: Cocoa for the masses. --- configure.ac | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ce2a46f..730b2f2 100644 --- a/configure.ac +++ b/configure.ac @@ -140,7 +140,7 @@ AS_IF([test "x$enable_gui" = "xyes"], [enable_gui="auto"]) AS_IF([test "x$enable_gui" = "xauto"], [AC_MSG_RESULT([Auto setting gui based on host: $host_os]) AS_CASE([$host_os], - [darwin*], [enable_gui="carbon"], + [darwin*], [enable_gui="cocoa"], [linux*|*bsd*], [enable_gui="x11"], [mingw*|windows*|winnt|cygwin], [enable_gui="win32"], @@ -169,10 +169,10 @@ AS_IF( GUI_CPPFLAGS="-DPUGL -I../../pugl" GUI_LIBS="-lGLU -lGL -lglut"], - [test "x$enable_gui" = "xcarbon"], - [AC_MSG_RESULT([Setting gui backend to Carbon]) - GUI_CPPFLAGS="" - GUI_LIBS=""], + [test "x$enable_gui" = "xcocoa"], + [AC_MSG_RESULT([Setting gui backend to Cocoa]) + GUI_CPPFLAGS="-framework Cocoa" + GUI_LIBS="-framework Cocoa"], AC_MSG_ERROR([*** No GUI backend has been selected ***]) ) @@ -183,6 +183,7 @@ AC_SUBST(GUI_LIBS) AM_CONDITIONAL([ENABLE_PUGL], [test "x$enable_gui" = "xpugl"]) AM_CONDITIONAL([ENABLE_WIN32], [test "x$enable_gui" = "xwin32"]) AM_CONDITIONAL([ENABLE_X11], [test "x$enable_gui" = "xx11"]) +AM_CONDITIONAL([ENABLE_COCOA], [test "x$enable_gui" = "xcocoa"]) dnl ====================== dnl Compile unit tests -- cgit v1.2.3