diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/configure b/configure index 7d4d07c6663..26233f1e1c3 100755 --- a/configure +++ b/configure @@ -13852,7 +13852,11 @@ fi # also decide to use snprintf.c if snprintf() is present but does not # have all the features we need --- see below. -pgac_need_repl_snprintf=no +if test "$PORTNAME" = "win32"; then + # Win32 gets this built unconditionally + pgac_need_repl_snprintf=yes +else + pgac_need_repl_snprintf=no for ac_func in snprintf do @@ -14061,6 +14065,7 @@ else fi done +fi # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not, @@ -17110,14 +17115,8 @@ fi # Force use of our snprintf if system's doesn't do arg control -# This feature is used by NLS -if test "$enable_nls" = yes && - test $pgac_need_repl_snprintf = no && -# On Win32, libintl replaces snprintf() with its own version that -# understands arg control, so we don't need our own. In fact, it -# also uses macros that conflict with ours, so we _can't_ use -# our own. - test "$PORTNAME" != "win32"; then +# This feature is needed by NLS +if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then echo "$as_me:$LINENO: checking whether printf supports argument control" >&5 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6 if test "${pgac_cv_printf_arg_control+set}" = set; then @@ -17604,7 +17603,7 @@ _ACEOF if test $pgac_need_repl_snprintf = yes; then cat >>confdefs.h <<\_ACEOF -#define USE_SNPRINTF 1 +#define USE_REPL_SNPRINTF 1 _ACEOF case $LIBOBJS in |