X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=f62a8d31739d8c9a3f7ae45946e615b2da0ce74e;hb=017c957a9c494219b7b9f63f027d9efa0da163be;hp=9a5267b9ff4819b76eea34b4485c587bdcfbc6be;hpb=babe5e05f8dc718c88ef8e4701eb9cf992a24fb7;p=lyx.git diff --git a/configure.ac b/configure.ac index 9a5267b9ff..f62a8d3173 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ dnl Process with autoconf to generate configure script -*- sh -*- AC_INIT(LyX,2.2.0dev,[lyx-devel@lists.lyx.org],[lyx]) AC_PRESERVE_HELP_ORDER # Use ISO format only. The frontend needs to parse this -AC_SUBST(LYX_DATE, ["2014-04-14"]) +AC_SUBST(LYX_DATE, ["2015-11-13"]) AC_PREREQ(2.60) AC_CONFIG_SRCDIR(src/main.cpp) AC_CONFIG_HEADERS([config.h]) @@ -64,9 +64,12 @@ for file in config/install-sh ; do done # Find a suitable python interpreter -LYX_PATH_PYTHON +LYX_PATH_PYTHON23([2.7.0], [3.3.0]) # do the usual python setup stuff AM_PATH_PYTHON + +# Tools for creating libraries (note that we do not use libtool) +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl AM_PROG_AR requires automake 1.12 AC_PROG_RANLIB ### Check for a C++ compiler @@ -210,7 +213,7 @@ save_LIBS="$LIBS" LIBS= AC_CHECK_FUNCS(fcntl, [AC_SEARCH_LIBS([gethostbyname], [nsl]) - AC_SEARCH_LIBS([socket], [socket], [], + AC_SEARCH_LIBS([socket], [socket network], [], [AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"], [], [-lnsl])])], [lyx_client_subdir=false]) @@ -273,6 +276,10 @@ AH_BOTTOM([ /************************************************************ ** You should not need to change anything beyond this point */ +#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) +#define LYX_USE_CXX11 +#endif + #ifndef HAVE_STRERROR #if defined(__cplusplus) extern "C"