From: Arun Persaud Date: Wed, 22 Oct 2014 03:37:41 +0000 (-0700) Subject: mac: only use gtk compile flag, if osxapp is enabled X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=59238430e1f2b02188a347078dc28ba71b4b14c1 mac: only use gtk compile flag, if osxapp is enabled --- diff --git a/configure.ac b/configure.ac index 421f39b..c0058e0 100644 --- a/configure.ac +++ b/configure.ac @@ -474,7 +474,10 @@ dnl| add some libs for OS X MACOSX_VERSION=`$SW_VERS -productVersion` AC_MSG_RESULT([$MACOSX_VERSION]) fi - FRONTEND_LIBS="$FRONTEND_LIBS -lgtkmacintegration -headerpad_max_install_names " + FRONTEND_LIBS="$FRONTEND_LIBS -headerpad_max_install_names " + if test x"$enable_OSXAPP" = x"yes" ; then + FRONTEND_LIBS="$FRONTEND_LIBS -lgtkmacintegration" + fi FRONTEND_CFLAGS="$FRONTEND_CFLAGS -I/opt/local/include -L/opt/local/lib" ;; esac