fi
#
-# set configure options
+# set configure options; include the appropriate user/group as discerned by common.sh and set pcre to dynamic (libpcre) or static (bundled)
#
-OPTS=${OPTS}
if [ "$2" == "-pcre" ]; then
CFLAGS="${CFLAGS} -I/usr/local/include/"
LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+ OPTS=${OPTS}
+else
+ OPTS="${OPTS} --disable-dynamic-pcre"
fi
#
cd ../${SOURCE_DIR}
/usr/bin/autoheader
/usr/bin/autoconf
+
/usr/bin/env CFLAGS="${CFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS}
#