diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-11-13 16:25:48 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-11-13 16:25:48 +0900 |
commit | c31d3dacf7f153589b6e7a5f5204937c64e7fd24 (patch) | |
tree | b898c1d298e0d149faef0e9a6d641ce212df4e7e /configure.ac | |
parent | c3377ae3b7fdb8714e03586589d1b2804cf08e17 (diff) | |
parent | b4c6ab8cb67be4d5b3e0041981968c6cce4afe89 (diff) | |
download | emacs-c31d3dacf7f153589b6e7a5f5204937c64e7fd24.tar.gz emacs-c31d3dacf7f153589b6e7a5f5204937c64e7fd24.tar.bz2 emacs-c31d3dacf7f153589b6e7a5f5204937c64e7fd24.zip |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a19d752c1ce..3748bbcf071 100644 --- a/configure.ac +++ b/configure.ac @@ -4841,6 +4841,23 @@ dnl AC_CHECK_FUNCS_ONCE wouldn’t be right for snprintf, which needs dnl the current CFLAGS etc. AC_CHECK_FUNCS(snprintf) +dnl posix_spawn. The chdir and setsid functionality is relatively +dnl recent, so we check for it specifically. +AC_CHECK_HEADERS([spawn.h]) +AC_SUBST([HAVE_SPAWN_H]) +AC_CHECK_FUNCS([posix_spawn \ + posix_spawn_file_actions_addchdir \ + posix_spawn_file_actions_addchdir_np \ + posix_spawnattr_setflags]) +AC_SUBST([HAVE_POSIX_SPAWN]) +AC_SUBST([HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR]) +AC_SUBST([HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP]) +AC_SUBST([HAVE_POSIX_SPAWNATTR_SETFLAGS]) +AC_CHECK_DECLS([POSIX_SPAWN_SETSID], [], [], [[ + #include <spawn.h> + ]]) +AC_SUBST([HAVE_DECL_POSIX_SPAWN_SETSID]) + dnl Check for glib. This differs from other library checks in that dnl Emacs need not link to glib unless some other library is already dnl linking to glib. Although glib provides no facilities that Emacs |