Replace invalid C with `#error`.
Cherry-picked from #14692
Closes #14997
#ifdef _WIN32
int dummy=1;
#else
- Not a native Windows build target.
+ #error Not a native Windows build target.
#endif
]])
],[
if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
fi
- AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built-in CA store of SSL library ])
+ AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built-in CA store of SSL library])
fi
])
#if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
int dummy=1;
#else
- Win32 large file API not supported.
+ #error Win32 large file API not supported.
#endif
]])
],[
#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
int dummy=1;
#else
- Win32 small file API not supported.
+ #error Win32 small file API not supported.
#endif
]])
],[
esac
], [
-AC_MSG_RESULT(no)
+ AC_MSG_RESULT(no)
]
)
CURL_CHECK_NONBLOCKING_SOCKET
if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then
- AC_PATH_PROG( PERL, perl, ,
- $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
+ AC_PATH_PROG(PERL, perl,,
+ $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin)
AC_SUBST(PERL)
if test -z "$PERL"; then
AC_MSG_RESULT(auto)
want_pthreads=auto
fi
- ]
+ ]
)
dnl turn off pthreads if rt is disabled
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
]],[[
- force compilation error
+ #error force compilation error
]])
],[
AC_MSG_RESULT([no])
#endif
char $1 ();
#if defined __stub_$1 || defined __stub___$1
-choke me
+#error force compilation error
#endif
], [return $1 ();])])
if test -n "$(PERL)"; then \
$(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \
$(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \
- fi
+ fi
endif
if USE_FISH_COMPLETION
if test -n "$(PERL)"; then \
$(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \
$(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \
- fi
+ fi
endif
endif
# if unit tests are enabled, build a static library to link them with
if BUILD_UNITTESTS
noinst_LTLIBRARIES = libcurltool.la
-libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) \
- -DCURL_STATICLIB -DUNITTESTS
+libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
libcurltool_la_CFLAGS =
libcurltool_la_LDFLAGS = -static $(LINKFLAGS)
if USE_UNITY