summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:22:11 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:22:11 -0500
commit4bdb3451dc6c005a5356844435c098bb14dae6a8 (patch)
tree60a5b74cc3c5617581a303f3ff02e8a275ef949e /configure.ac
parent2d3948b98bb9e8c7bad60f1acd99ff0b42b3ae30 (diff)
fixes
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c3b749e3..e4183c15 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,7 +185,12 @@ AC_CHECK_HEADER(google/dense_hash_map,
AC_PROG_INSTALL
-CPPFLAGS="-DPIC -fPIC $CPPFLAGS -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6"
+CPPFLAGS="-DPIC -fPIC $CXX11_SWITCH $CPPFLAGS -DHAVE_CONFIG_H -DKENLM_MAX_ORDER=6"
+
+if test "x$HAVE_CXX11" = "x0"; then
+ CPPFLAGS="$CPPFLAGS -DHAVE_OLD_CPP"
+fi
+
# core cdec stuff
AC_CONFIG_FILES([Makefile])