blob: 519bb8f3020d975214b74a31d21d06fd70156406 [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001#!/bin/sh
2
3# Run this script to generate the configure script and other files that will
4# be included in the distribution. These files are not checked in because they
5# are automatically generated.
6
7# Check that we're being run from the right directory.
kenton@google.com2fd12082009-05-01 21:41:32 +00008if test ! -f src/google/protobuf/stubs/common.h; then
temporal40ee5512008-07-10 02:12:20 +00009 cat >&2 << __EOF__
10Could not find source code. Make sure you are running this script from the
11root of the distribution tree.
12__EOF__
13 exit 1
14fi
15
kenton@google.com6cbe32f2009-07-31 21:20:02 +000016set -ex
kenton@google.combbbd4d32009-04-22 01:34:07 +000017
kenton@google.com6cbe32f2009-07-31 21:20:02 +000018# Temporary hack: Must change C runtime library to "multi-threaded DLL",
19# otherwise it will be set to "multi-threaded static" when MSVC upgrades
20# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
21# probably change their default to match, then this will be unnecessary.
22# One of these mappings converts the debug configuration and the other
23# converts the release configuration. I don't know which is which.
24sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
25 s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
temporal40ee5512008-07-10 02:12:20 +000026
kenton@google.comcf3f6382008-09-30 22:01:45 +000027# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
28autoreconf -f -i -Wall,no-obsolete
temporal40ee5512008-07-10 02:12:20 +000029
30rm -rf autom4te.cache config.h.in~
31exit 0