This is a fix for Issue5809: you shouldn't specify both --enable-framework and
--enable-shared
diff --git a/configure.in b/configure.in
index 58b0190..e9b28bc 100644
--- a/configure.in
+++ b/configure.in
@@ -1592,6 +1592,10 @@
          [Define if you want to produce an OpenStep/Rhapsody framework
          (shared library plus accessory files).])
 	AC_MSG_RESULT(yes)
+	if test $enable_shared = "yes"
+	then
+		AC_MSG_ERROR([Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead])
+	fi
 else
 	AC_MSG_RESULT(no)
 fi