making static build the default.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85228
13f79535-47bb-0310-9956-
ffa450edef68
os/$(OS_DIR)/libos.la \
ap/libap.la \
lib/apr/$(LIBPRE)apr.a \
- lib/pcre/libpcreposix.la \
- lib/pcre/libpcre.la
+ lib/pcre/libpcreposix.a \
+ lib/pcre/libpcre.a
PROGRAMS = $(PROGRAM_NAME)
targets = $(PROGRAMS)
# The pcretest program, as it is a test program, does not get installed
# anywhere.
+SHELL=@SHELL@
prefix = @prefix@
exec_prefix = @exec_prefix@
# chartables.c shouldn't change, and if people have edited the tables by hand,
# you don't want to throw them away.
-clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pgrep testtry
+clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pgrep testtry *.exe
# But "make distclean" should get back to a virgin distribution
dnl Handle --enable-shared-libraries
-LIBTOOL=libtool
-LIBSUFFIX=la
+LIBTOOL=
+LIBSUFFIX=a
AC_ARG_ENABLE(shared,
-[ --disable-shared build PCRE as a static library],
-if test "$enableval" = "no"; then
- LIBTOOL=
- LIBSUFFIX=a
+[ --enable-shared build PCRE as a shared library],
+if test "$enableval" = "yes"; then
+ LIBTOOL=libtool
+ LIBSUFFIX=la
fi
)
+PLATFORM=`uname -s`
+
+case "$PLATFORM" in
+*OS/2*)
+ CFLAGS="$CFLAGS -Zexe"
+ ;;
+esac
+
dnl "Export" these variables
AC_SUBST(HAVE_MEMMOVE)