Tests for declarations of snprintf/vsnprintf/vsscanf should be done in C++.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
12
configure
vendored
12
configure
vendored
@@ -35017,6 +35017,12 @@ fi
|
||||
done
|
||||
|
||||
|
||||
ac_ext=cpp
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
||||
|
||||
if test "$ac_cv_func_vsnprintf" = "yes"; then
|
||||
{ echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
|
||||
echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
|
||||
@@ -35401,6 +35407,12 @@ _ACEOF
|
||||
|
||||
fi
|
||||
fi
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
if test "$wxUSE_UNICODE" = yes; then
|
||||
|
||||
|
@@ -4029,6 +4029,7 @@ dnl
|
||||
dnl FIXME: replace this mess with WX_CHECK_FUNCS()
|
||||
AC_CHECK_FUNCS(snprintf vsnprintf vsscanf)
|
||||
|
||||
AC_LANG_PUSH(C++)
|
||||
if test "$ac_cv_func_vsnprintf" = "yes"; then
|
||||
dnl yes it is -- now check if it is in the headers
|
||||
AC_CACHE_CHECK([for vsnprintf declaration], wx_cv_func_vsnprintf_decl,
|
||||
@@ -4194,6 +4195,7 @@ if test "$ac_cv_func_vsscanf" = "yes"; then
|
||||
AC_DEFINE(HAVE_VSSCANF_DECL)
|
||||
fi
|
||||
fi
|
||||
AC_LANG_POP()
|
||||
|
||||
if test "$wxUSE_UNICODE" = yes; then
|
||||
|
||||
|
Reference in New Issue
Block a user