diff --git a/maven-hawtjni-plugin/src/main/resources/project-template/configure.ac b/maven-hawtjni-plugin/src/main/resources/project-template/configure.ac
index cd48add..ebf6f15 100644
--- a/maven-hawtjni-plugin/src/main/resources/project-template/configure.ac
+++ b/maven-hawtjni-plugin/src/main/resources/project-template/configure.ac
@@ -43,9 +43,9 @@ CUSTOM_M4_SETUP
 
 WITH_OSX_UNIVERSAL
 
-CFLAGS="$CFLAGS $JNI_EXTRA_CFLAGS"
+CFLAGS="$CFLAGS -L/usr/local/lib/harbour -I/usr/local/include/harbour $JNI_EXTRA_CFLAGS"
 AC_SUBST(CFLAGS)
-LDFLAGS="$LDFLAGS $JNI_EXTRA_LDFLAGS -release @VERSION@"
+LDFLAGS="$LDFLAGS -L/usr/local/lib/harbour -lharbour -$JNI_EXTRA_LDFLAGS -release @VERSION@"
 AC_SUBST(LDFLAGS)
 
 ## -----------------------------------------------------
@@ -60,4 +60,4 @@ echo "
   Prefix.........: $prefix
   C Compiler.....: $CC $CFLAGS
   Linker.........: $LD $LDFLAGS $LIBS
-"
\ No newline at end of file
+"
