$NetBSD: patch-configure,v 1.4 2018/03/24 17:08:31 joerg Exp $ Do not look for libuuid on Darwin, it is built-in. Patch "GNU" gettext support to not depend unnecessary on "GNU" gettext. --- configure.orig 2018-03-06 03:31:59.000000000 +0000 +++ configure @@ -13295,8 +13295,12 @@ case "$host" in *-*-mingw*) os_win32=yes ;; + *-*-darwin*) + os_darwin=yes + ;; *) os_win32=no + os_darwin=no esac if test "$os_win32" = "yes"; then OS_WIN32_TRUE= @@ -15227,8 +15231,7 @@ extern #ifdef __cplusplus "C" #endif -const char *_nl_expand_alias (const char *); -#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *bindtextdomain ("", "")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif @@ -15264,8 +15267,7 @@ extern #ifdef __cplusplus "C" #endif -const char *_nl_expand_alias (const char *); -#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *bindtextdomain ("", "")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif @@ -15891,6 +15893,10 @@ if ac_fn_c_try_compile "$LINENO"; then : $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + #if defined(_SCO_DS) + /* bogus */ + #include + #endif fi CXXFLAGS="$old_CXXFLAGS" CPPFLAGS="$old_CPPFLAGS" @@ -15919,6 +15925,9 @@ if test "_$ac_cv_header_stdint_t" = "_" inttype_headers=`echo | sed -e 's/,/ /g'` + #if defined(_SCO_DS) + #include + #endif ac_cv_stdint_result="(no helpful system typedefs seen)" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 @@ -17187,7 +17196,7 @@ CFLAGS="$fontconfig_save_cflags" # # Check for uuid # -if test "$os_win32" != "yes"; then +if test "$os_win32" != "yes" -a "$os_darwin" != "yes"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5