diff options
author | Marcus Brinkmann <[email protected]> | 2003-09-13 17:45:04 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2003-09-13 17:45:04 +0000 |
commit | 727f0ba45d5bd5e7018514528b3a6f6612bf91af (patch) | |
tree | 67aed453302d660be2922c59d2c8faebd6290029 /configure.ac | |
parent | 2003-09-03 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-727f0ba45d5bd5e7018514528b3a6f6612bf91af.tar.gz gpgme-727f0ba45d5bd5e7018514528b3a6f6612bf91af.zip |
2003-09-13 Marcus Brinkmann <[email protected]>
* acinclude.m4: Remove libtool cruft, add jm_GLIBC21.
* configure.ac: Add check for getenv_r, and call jm_GLIBC21.
Define HAVE_THREAD_SAFE_GETENV if appropriate.
gpgme/
2003-09-13 Marcus Brinkmann <[email protected]>
* get-env.c: New file.
* util.h (_gpgme_getenv): Add prototype.
* Makefile.am (libgpgme_real_la_SOURCES): Add get-env.c.
* rungpg.c (build_argv): Use _gpgme_getenv.
* debug.c (debug_init): Likewise.
* engine-gpgsm.c (gpgsm_new): Likewise.
(gpgsm_new): Use ttyname_r.
* w32-io.c (_gpgme_io_spawn): Disable debugging for now.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1a992367..c5d2fe63 100644 --- a/configure.ac +++ b/configure.ac @@ -157,10 +157,28 @@ if test "$ac_cv_func_vasprintf" != yes; then GNUPG_CHECK_VA_COPY fi +# Try to find a thread-safe version of getenv(). +have_thread_safe_getenv=no +jm_GLIBC21 +if test $GLIBC21 = yes; then + have_thread_safe_getenv=yes +fi +if test $have_thread_safe_getenv = yes; then + AC_DEFINE(HAVE_THREAD_SAFE_GETENV, [1], [Define if getenv() is thread-safe]) +fi +have_getenv_r=no +AC_CHECK_FUNCS(getenv_r, have_getenv_r=yes) +if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then + AC_MSG_WARN([getenv() is not thread-safe and getenv_r() does not exist]) +fi + +# Checking for libgpg-error. AM_PATH_GPG_ERROR(0.3,, AC_MSG_ERROR([libgpg-error was not found])) AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME, [The default error source for GPGME.]) + + # Checks for system services NO_OVERRIDE=no AC_ARG_WITH(gpg, |