diff options
| author | Marcus Brinkmann <[email protected]> | 2004-12-11 15:48:00 +0000 | 
|---|---|---|
| committer | Marcus Brinkmann <[email protected]> | 2004-12-11 15:48:00 +0000 | 
| commit | 04be3c316c6fe8267f185180aa2cf7b5c109898f (patch) | |
| tree | b2d0c38b11abd5641ebb1488de9bdc08f022e5e7 /configure.ac | |
| parent | Add news entry for 0.3.16. (diff) | |
| download | gpgme-04be3c316c6fe8267f185180aa2cf7b5c109898f.tar.gz gpgme-04be3c316c6fe8267f185180aa2cf7b5c109898f.zip | |
2004-12-11  Marcus Brinkmann  <[email protected]>
	* configure.ac: Replace ttyname_r if it doesn't exist (and warn in
	that case).
gpgme/
2004-12-11  Marcus Brinkmann  <[email protected]>
	* util.h [HAVE_CONFIG_H && HAVE_TTYNAME_R] (ttyname_r): Define
	prototype.
	* ttyname_r.c: New file.
Diffstat (limited to '')
| -rw-r--r-- | configure.ac | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/configure.ac b/configure.ac index 3fed5e50..a1e9bf76 100644 --- a/configure.ac +++ b/configure.ac @@ -171,6 +171,15 @@ if test "$ac_cv_func_vasprintf" != yes; then    GNUPG_CHECK_VA_COPY  fi +# Try to find a thread-safe version of ttyname(). +AC_REPLACE_FUNCS(ttyname_r) +if test "$ac_cv_func_ttyname_r" != yes; then +  AC_MSG_WARN([ +*** +*** ttyname() is not thread-safe and ttyname_r() does not exist +***]) +fi +  # Try to find a thread-safe version of getenv().  have_thread_safe_getenv=no  jm_GLIBC21 | 
