1--- configure.orig	2006-04-21 20:54:22.000000000 -0700
2+++ configure	2006-05-23 15:01:18.000000000 -0700
3@@ -5816,8 +5816,8 @@
4       case $libtoolversion in
5           *1.[45]* | *[2-9].[0-9]*)
6               SH_LIBTOOL='$(LIBTOOL)'
7-              SHLTCFLAGS="-prefer-pic"
8-              LTCFLAGS="-prefer-non-pic -static"
9+              SHLTCFLAGS=""
10+              LTCFLAGS="-mdynamic-no-pic"
11               ;;
12           *)
13               SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
14--- configure.orig	2013-07-15 09:44:10.000000000 -0700
15+++ configure	2014-01-25 00:17:00.000000000 -0800
16@@ -23814,7 +23814,7 @@
17       sharedobjs=yes
18       shared=yes
19       DSO_MODULES="$DSO_MODULES slotmem_shm"
20-      if test "most" = "yes" ; then
21+      if test "$_apmod_required" = "yes" ; then
22         ENABLED_DSO_MODULES="${ENABLED_DSO_MODULES},slotmem_shm"
23       fi
24       ;;
25
26