Skip to content

Instantly share code, notes, and snippets.

@mathk
Created March 1, 2011 09:59
Show Gist options
  • Save mathk/848921 to your computer and use it in GitHub Desktop.
Save mathk/848921 to your computer and use it in GitHub Desktop.
AC_SUBST(OBJC, [$CC])
AC_SUBST(OBJCFLAGS, [$CFLAGS])
AC_SUBST(GNUSTEP_CFLAGS)
AC_SUBST(OBJCLIBS)
_AM_DEPENDENCIES(OBJC)
AC_CANONICAL_HOST
LDFLAGS=-module
case $host in
*-*-darwin*) OBJCLIBS='-framework Cocoa' ;;
*) AC_CHECK_TOOL(GNUSTEP_CONFIG, [gnustep-config],
[AC_MSG_ERROR([gnustep is missing perhaps you need to souce $GNUSTEP_INSTALL_DIR/System/Library/Makefiles/GNUstep.sh])])
OBJCLIBS=`$GNUSTEP_CONFIG --base-libs`
GNUSTEP_CFLAGS=`$GNUSTEP_CONFIG --objc-flags` ;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment