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
commit3abb2f590940e05be345446a10e5f247f0046c2a (patch)
treee5023d2695119d3f4a18070822719c702e14dfd5 /configure.ac
parentd9cc1a6986188a97e09e4c8cef46c34eee5f9cd2 (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])