+2010-03-14 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error when modules 'posix_spawn[p]' are not used.
+ * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
+
2010-03-14 Bruno Haible <bruno@clisp.org>
Fix compilation error on mingw when module 'time_r' is not used.
-# posix_spawn.m4 serial 5
+# posix_spawn.m4 serial 6
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
;;
*) REPLACE_POSIX_SPAWN=1 ;;
esac
- else
- HAVE_POSIX_SPAWN=0
fi
])
-# spawn_h.m4 serial 7
+# spawn_h.m4 serial 8
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
AC_SUBST([HAVE_SPAWN_H])
+ AC_CHECK_FUNCS_ONCE([posix_spawn])
+ if test $ac_cv_func_posix_spawn != yes; then
+ HAVE_POSIX_SPAWN=0
+ fi
+
AC_REQUIRE([AC_C_RESTRICT])
dnl Check for declarations of anything we want to poison if the