aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBryan Jurish <mukau@users.sourceforge.net>2009-04-19 08:38:03 +0000
committerBryan Jurish <mukau@users.sourceforge.net>2009-04-19 08:38:03 +0000
commit450784cac3b86f3e78d175dff7cb800bcd56899f (patch)
treedb8d3e086ed8d2bdb985b0199dd9122df7f4d8ba /configure
parent6b791a4900e56785dca2ecd6015358c6c67394c5 (diff)
+ updated README.svn
+ added win32 flags to common/m4/ax_pd_external.m4 - updated configure scripts svn path=/trunk/externals/moocow/pdstring/; revision=11058
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index 02c1f63..c4cca30 100755
--- a/configure
+++ b/configure
@@ -3741,6 +3741,26 @@ echo "$as_me: WARNING: Unknown kernel type \"$uname_s\" defaults to \"Linux\"" >
PDEXT=pd_irix5
fi
+ ##-- win32 via minGW/MSYS
+ ## + courtesy of pd-extended build system, SVN externals/Makefile
+ if test "$uname_s" = "MINGW32_NT-5.1";
+ then
+ PDEXT_DFLAGS="\
+ -D'O_NONBLOCK=1' -D'srand48(n)=srand((n))' \
+ -D'drand48()=((double)rand()/RAND_MAX)' -D'bzero(p,n)=memset(p,0,n)' \
+ "
+ PDEXT_LFLAGS="-shared -L'${pddir}/bin' -L'${pddir}/obj'"
+ PDEXT_CFLAGS="-mms-bitfields -DMSW -DNT"
+ LIBS="$LIBS -lpd -lwsock32 -lpthreadGC2 -lkernel32 -luser32 -lgdi32 -lregex"
+ if test "$ENABLE_DEBUG" = "no" -a -z "$UCFLAGS"; then
+ ##-- only set OFLAGS if user CFLAGS are empty
+ PDEXT_OFLAGS="-O2"
+ elif test "$ENABLE_DEBUG" = "yes"; then
+ PDEXT_OFLAGS="-g"
+ fi
+ PDEXT=dll
+ fi
+
##----------- report pd extension
{ echo "$as_me:$LINENO: will use pd extension \".$PDEXT\" for pd externals" >&5
echo "$as_me: will use pd extension \".$PDEXT\" for pd externals" >&6;}