Commit dc8fe4d0 dc8fe4d0a553b73e058a19831ac79ce8b2e2eb1c by Sergey Poznyakoff

Call util_save_outgoing() to preserve the message.

Set umask 077 before calling mkstemp().
1 parent 29d84e71
...@@ -128,7 +128,7 @@ dnl Check threading support ...@@ -128,7 +128,7 @@ dnl Check threading support
128 # We have to rearrange things a little, it appears that the new autoconf 128 # We have to rearrange things a little, it appears that the new autoconf
129 # does not like long cascading AC_CHECK_LIB. 129 # does not like long cascading AC_CHECK_LIB.
130 if test x"$usepthread" = x"yes"; then 130 if test x"$usepthread" = x"yes"; then
131 AC_CHECK_LIB(pthread, pthread_cancel, have_libpthread=yes 131 AC_CHECK_LIB(pthread, pthread_cancel, have_libpthread=yes,
132 have_libpthread=no) 132 have_libpthread=no)
133 if test x"$have_libpthread" = x"yes"; then 133 if test x"$have_libpthread" = x"yes"; then
134 AC_CHECK_HEADERS(pthread.h, AC_DEFINE(WITH_PTHREAD)) 134 AC_CHECK_HEADERS(pthread.h, AC_DEFINE(WITH_PTHREAD))
...@@ -152,10 +152,14 @@ AC_CHECK_FUNC(socket, [true], ...@@ -152,10 +152,14 @@ AC_CHECK_FUNC(socket, [true],
152 AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) 152 AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS"))
153 153
154 dnl Check for GNU Readline 154 dnl Check for GNU Readline
155 AC_SUBST(READLINE_LIBS)
155 if test x"$usereadline" = x"yes"; then 156 if test x"$usereadline" = x"yes"; then
156 AC_CHECK_LIB(readline, readline, 157 AC_CHECK_LIB(readline, readline,
157 [AC_CHECK_HEADERS(readline/readline.h, AC_DEFINE(WITH_READLINE)) 158 [AC_CHECK_HEADERS(readline/readline.h,
158 LIBS="$LIBS -lreadline"]) 159 AC_DEFINE(WITH_READLINE))
160 READLINE_LIBS="-lcurses -lreadline"],
161 :,
162 -lcurses)
159 fi 163 fi
160 164
161 dnl Check for Berkeley DB 165 dnl Check for Berkeley DB
......