[Box Backup-commit] COMMIT r1013 - in box/chris/merge/infrastructure: . mingw

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Oct 13 23:57:55 BST 2006


Author: chris
Date: 2006-10-13 23:57:55 +0100 (Fri, 13 Oct 2006)
New Revision: 1013

Added:
   box/chris/merge/infrastructure/mingw/
   box/chris/merge/infrastructure/mingw/configure.sh
Log:
(refs #3)
 
 * Created directory for mingw compile utilities, added configure script


Copied: box/chris/merge/infrastructure/mingw/configure.sh (from rev 1012, box/chris/general/infrastructure/mingw/configure.sh)
===================================================================
--- box/chris/merge/infrastructure/mingw/configure.sh	                        (rev 0)
+++ box/chris/merge/infrastructure/mingw/configure.sh	2006-10-13 22:57:55 UTC (rev 1013)
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+if [ ! -r "/usr/i686-pc-mingw32/lib/libssl.a" ]; then
+	echo "Error: install OpenSSL as instructed by" \
+		"docs/backup/mingw_build.txt" >&2
+	exit 2
+fi
+
+if [ ! -r "/usr/i686-pc-mingw32/lib/libpcreposix.a" \
+	-o ! -r "/usr/i686-pc-mingw32/lib/libpcre.a" \
+	-o ! -r "/usr/i686-pc-mingw32/include/regex.h" ]; then
+	echo "Error: install PCRE as instructed by" \
+		"docs/backup/mingw_build.txt" >&2
+	exit 2
+fi
+
+export CXX="g++ -mno-cygwin"
+export LD="g++ -mno-cygwin"
+export CFLAGS="-mno-cygwin -mthreads"
+export CXXFLAGS="-mno-cygwin -mthreads"
+export LDFLAGS="-mno-cygwin -mthreads"
+export LIBS="-lcrypto -lws2_32 -lgdi32"
+
+if [ ! -x "configure" ]; then
+	if ! ./bootstrap; then
+		echo "Error: bootstrap failed, aborting." >&2
+		exit 1
+	fi
+fi
+
+if ! ./configure --target=i686-pc-mingw32; then
+	echo "Error: configure failed, aborting." >&2
+	exit 1
+fi
+
+exit 0




More information about the Boxbackup-commit mailing list