aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2004-09-14 17:14:48 +0000
committerMarcus Brinkmann <[email protected]>2004-09-14 17:14:48 +0000
commit7c98030d77903262777ce147ba1961f41d1fc693 (patch)
treecc2920de121004e5212e463c71d719c683801cde
parentpost release version bumb (diff)
downloadlibgpg-error-7c98030d77903262777ce147ba1961f41d1fc693.tar.gz
libgpg-error-7c98030d77903262777ce147ba1961f41d1fc693.zip
2004-09-14 Marcus Brinkmann <[email protected]>
* configure.ac: Call AC_CANONICAL_HOST. Suppress warning about lack of strerror_r on all Solaris platforms.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac16
2 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 21d8207..252150f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-14 Marcus Brinkmann <[email protected]>
+
+ * configure.ac: Call AC_CANONICAL_HOST. Suppress warning about
+ lack of strerror_r on all Solaris platforms.
+
2004-07-30 Werner Koch <[email protected]>
Released 1.0.
diff --git a/configure.ac b/configure.ac
index 0c27535..39863ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,10 @@ AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/err-sources.h.in])
AC_CONFIG_HEADER([config.h])
+# We need to know about the host architecture to avoid spurious
+# warnings.
+AC_CANONICAL_HOST
+
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
@@ -71,8 +75,16 @@ AM_GNU_GETTEXT([external])
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
AC_FUNC_STRERROR_R
-AC_CHECK_FUNC([strerror_r], [],
- AC_MSG_WARN([[Without strerror_r, gpg_strerror_r might not be thread-safe]]))
+case "${host_os}" in
+ solaris*)
+ # All versions of Solaris from 2.4 have a thread-safe strerror().
+ # Since Solaris 10, in addition strerror_r() exists.
+ ;;
+ *)
+ AC_CHECK_FUNC([strerror_r], [],
+AC_MSG_WARN([[Without strerror_r, gpg_strerror_r might not be thread-safe]]))
+ ;;
+esac
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST