]> git.tdb.fi Git - builder.git/blobdiff - bootstrap.sh
Recent versions of sigc++ require C++11
[builder.git] / bootstrap.sh
index 02fbd33445a9735dd78e5c3c3d71f7446d54619d..9497096ac31fbafc899dc00fda2ef37c3a46f9e7 100755 (executable)
@@ -6,6 +6,9 @@ INCLUDEDIR=temp/bootstrap/include
 REQUIRED="core datafile"
 CFLAGS="-I$INCLUDEDIR `pkg-config --cflags sigc++-2.0`"
 LIBS="`pkg-config --libs sigc++-2.0` -lpthread"
+if pkg-config --exists "sigc++-2.0 >= 2.5.1"; then
+       CFLAGS="$CFLAGS -std=c++11"
+fi
 MACHINE="`uname -m`"
 SYSTEM="`uname -s`"
 if [ "$MACHINE" = "x86_64" ]; then