X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=30694a6bbbe3dd0d71029ad32a07f966a7c3f21f;hb=07e8f2e1bcbe5f747efc1c27f11025b397847963;hp=8f56125a560484ee34639f59e1050915d5820cba;hpb=cc0e5b1fc142b4c92419b0aebd37f3299bf4f526;p=lyx.git diff --git a/configure.ac b/configure.ac index 8f56125a56..30694a6bbb 100644 --- a/configure.ac +++ b/configure.ac @@ -289,6 +289,13 @@ char * strerror(int n); #define BOOST_NO_WREGEX 1 #define BOOST_NO_WSTRING 1 +// TR1 regex not supported in GCC <= 4.5 +#ifndef LYX_USE_TR1 +# if __GNUC__ == 4 +# define LYX_USE_TR1 +# endif +#endif + #ifdef __CYGWIN__ # define NOMINMAX # define BOOST_POSIX 1