]> git.lyx.org Git - features.git/commitdiff
Fix compiling on platforms lacking setenv
authorEnrico Forestieri <forenr@lyx.org>
Fri, 26 Jul 2013 18:48:34 +0000 (20:48 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 26 Jul 2013 18:48:34 +0000 (20:48 +0200)
Using autotools, the availability of putenv is not checked, so
the macro HAVE_PUTENV is not defined and compiling stops with
the error "No environment-setting function has been defined."
Thus, also check for putenv.

configure.ac

index c5fc54cddb1c5352ac691f37fc70dcfe73ec0866..4da4881aceaa91ccd77d150929e18336cca156e9 100644 (file)
@@ -173,7 +173,7 @@ fi
 
 LYX_CHECK_DEF(PATH_MAX, limits.h, [int n = PATH_MAX;])
 
-AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink setenv strerror unsetenv)
+AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink putenv setenv strerror unsetenv)
 # Check the form of mkdir()
 AC_FUNC_MKDIR
 AC_FUNC_SELECT_ARGTYPES