Commit 07c1b843 authored by unknown's avatar unknown

Automatically detect HAVE_INT_8_16_32.


Docs/manual.texi:
  - remove -DHAVE_INT_8_16_32 from recommended CFLAGS
configure.in:
  - add test for int8
acconfig.h:
  - add HAVE_INT_8_16_32
parent f5fa7fee
...@@ -6687,8 +6687,8 @@ Automatic detection of @code{xlC} is missing from Autoconf, so a ...@@ -6687,8 +6687,8 @@ Automatic detection of @code{xlC} is missing from Autoconf, so a
@strong{MySQL}: (The example uses the IBM compiler) @strong{MySQL}: (The example uses the IBM compiler)
@example @example
shell> CC="xlc_r" CFLAGS="-ma -O3 -qstrict -DHAVE_INT_8_16_32" \ shell> CC="xlc_r" CFLAGS="-ma -O3 -qstrict" \
CXX="xlC_r" CXXFLAGS="-ma -O3 -qstrict -DHAVE_INT_8_16_32" \ CXX="xlC_r" CXXFLAGS="-ma -O3 -qstrict" \
./configure ./configure
@end example @end example
...@@ -6704,9 +6704,9 @@ handling in @code{gcc}/@code{egcs} is not thread-safe! (This is tested with ...@@ -6704,9 +6704,9 @@ handling in @code{gcc}/@code{egcs} is not thread-safe! (This is tested with
@example @example
shell> CC=gcc \ shell> CC=gcc \
CFLAGS="-DHAVE_INT_8_16_32" \ CFLAGS="" \
CXX=gcc \ CXX=gcc \
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -DHAVE_INT_8_16_32" \" \ CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti" \" \
./configure --prefix=/usr/local/mysql --with-debug --with-low-memory ./configure --prefix=/usr/local/mysql --with-debug --with-low-memory
@end example @end example
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
this with 6 arguments */ this with 6 arguments */
#undef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R #undef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
/* Define if int8, int16 and int32 types exist */
#undef HAVE_INT_8_16_32
/* Define if we have GNU readline */ /* Define if we have GNU readline */
#undef HAVE_LIBREADLINE #undef HAVE_LIBREADLINE
......
...@@ -580,6 +580,28 @@ LIBS_AFTER_SOCKET=$LIBS ...@@ -580,6 +580,28 @@ LIBS_AFTER_SOCKET=$LIBS
LIBS="$LIBS_BEFORE_SOCKET $LIBS_SOCKET $LIBS_AFTER_SOCKET" LIBS="$LIBS_BEFORE_SOCKET $LIBS_SOCKET $LIBS_AFTER_SOCKET"
NON_THREADED_CLIENT_LIBS="$LIBS" NON_THREADED_CLIENT_LIBS="$LIBS"
AC_MSG_CHECKING([for int8])
AC_TRY_RUN([
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int main()
{
int8 i;
return 0;
}
], AC_DEFINE(HAVE_INT_8_16_32) AC_MSG_RESULT([yes]), AC_MSG_RESULT([no])
)
# #
# Some system specific hacks # Some system specific hacks
# #
...@@ -662,8 +684,8 @@ case $SYSTEM_TYPE in ...@@ -662,8 +684,8 @@ case $SYSTEM_TYPE in
;; ;;
*aix4.3*) *aix4.3*)
echo "Adding defines for AIX" echo "Adding defines for AIX"
CFLAGS="$CFLAGS -DHAVE_INT_8_16_32 -DUNDEF_HAVE_INITGROUPS" CFLAGS="$CFLAGS -DUNDEF_HAVE_INITGROUPS"
CXXFLAGS="$CXXFLAGS -DHAVE_INT_8_16_32 -DUNDEF_HAVE_INITGROUPS" CXXFLAGS="$CXXFLAGS -DUNDEF_HAVE_INITGROUPS"
;; ;;
esac esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment