$NetBSD: patch-configure.ac,v 1.3 2014/07/18 10:28:11 ryoon Exp $ * Detect NetBSD libatomic * test(1) portability fix --- configure.ac.orig 2013-12-09 17:32:25.000000000 +0000 +++ configure.ac @@ -407,6 +407,18 @@ if test "x$ac_cv_header_elf_h" = "xyes"; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; fi +# check if sys/atomic.h is present. +AC_CHECK_HEADERS([sys/atomic.h]) +case "${host}" in +*-netbsd*) +if test "x$ac_cv_header_sys_atomic_h" = "xyes"; then + CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_NETBSD_ATOMIC_OPS=1"; +fi +;; +*) +;; +esac + U_ENABLE_DYLOAD=1 enable=yes AC_MSG_CHECKING([whether to enable dynamic loading of plugins]) @@ -1232,6 +1244,7 @@ case "${host}" in *-*-beos) platform=U_BEOS ;; *-*-irix*) platform=U_IRIX ;; *-ncr-*) platform=U_MPRAS ;; + *-*-sco3.2v5*) platform=USCOOSR5 ;; *) platform=U_UNKNOWN_PLATFORM ;; esac AC_SUBST(ICUDATA_CHAR) @@ -1249,13 +1262,13 @@ fi # Now that we're done using CPPFLAGS etc. for tests, we can change it # for build. -if test "${CC}" == "clang"; then +if test "${CC}" = "clang"; then CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" else CLANGCFLAGS="" fi -if test "${CXX}" == "clang++"; then +if test "${CXX}" = "clang++"; then CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" else CLANGCXXFLAGS=""