]> git.lyx.org Git - lyx.git/blobdiff - config/configure.ac
lyxrc.*_font_foundry
[lyx.git] / config / configure.ac
index b76bb7f1292bbd661c3bf88b27a0d021b941d540..5d5b17b49a13db5e78c874c2d541c9e39cba3b8b 100644 (file)
@@ -251,6 +251,7 @@ AC_CHECK_FUNCS(snprintf vsnprintf)
 LYX_CHECK_DECL(snprintf, stdio.h)
 LYX_CHECK_DECL(vsnprintf, stdio.h)
 LYX_CHECK_DECL(istreambuf_iterator, iterator)
+LYX_CHECK_DECL(mkstemp,[unistd.h stdlib.h])
 
 dnl This is a slight hack: the tests generated by autoconf 2.52 do not
 dnl work correctly because of some conflict with stdlib.h with g++ 2.96
@@ -261,14 +262,12 @@ AC_CHECK_FUNCS(memmove memset strchr putenv setenv mkfifo mkstemp mktemp)
 AC_LANG_POP(C)
 
 dnl Until this is fixed in autoconf we provide our own version
-LYX_FUNC_SELECT_ARGTYPES
+AC_FUNC_SELECT_ARGTYPES
 
 dnl check whether we have to work around solaris broken putenv()
 LYX_FUNC_PUTENV_ARGTYPE
 
 
-LYX_CHECK_DECL_HDRS(mkstemp,[unistd.h stdlib.h])
-
 ### Some information on what just happened
 real_bindir=`eval "echo \`eval \"echo ${bindir}\"\`"`
 real_datadir=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
@@ -293,7 +292,7 @@ AC_SUBST(VERSION_INFO)
 AH_TOP([
 /* -*- C++ -*- */
 /* This is the compilation configuration file for LyX. It was generated by
-   autoconf's configure. You might want to change some of the defaults if
+   autoconfs configure. You might want to change some of the defaults if
    something goes wrong during the compilation
 
    * This file is part of
@@ -350,6 +349,12 @@ int mkstemp(char*);
 #include "support/nt_defines.h"
 #endif
 
+#if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
+#define USE_BOOST_FORMAT 1
+#else
+#define USE_BOOST_FORMAT 0
+#endif
+
 #endif
 ])