Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6646048f
Commit
6646048f
authored
Aug 10, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into janus.mylan:/usr/home/serg/Abk/m51 configure.in: Auto merged
parents
b6920c54
fe84903b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
32 deletions
+8
-32
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+0
-30
configure.in
configure.in
+1
-1
include/my_atomic.h
include/my_atomic.h
+7
-1
No files found.
config/ac-macros/misc.m4
View file @
6646048f
# Local macros for automake & autoconf
# Local macros for automake & autoconf
# A local version of AC_CHECK_SIZEOF that includes sys/types.h
dnl MYSQL_CHECK_SIZEOF(TYPE [, CROSS-SIZE])
AC_DEFUN([MYSQL_CHECK_SIZEOF],
[changequote(<<, >>)dnl
dnl The name to #define.
define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
dnl The cache variable name.
define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
changequote([, ])dnl
AC_MSG_CHECKING(size of $1)
AC_CACHE_VAL(AC_CV_NAME,
[AC_TRY_RUN([#include <stdio.h>
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof($1));
exit(0);
}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [ ])
undefine([AC_TYPE_NAME])dnl
undefine([AC_CV_NAME])dnl
])
#---START: Used in for client configure
#---START: Used in for client configure
AC_DEFUN([MYSQL_TYPE_ACCEPT],
AC_DEFUN([MYSQL_TYPE_ACCEPT],
[ac_save_CXXFLAGS="$CXXFLAGS"
[ac_save_CXXFLAGS="$CXXFLAGS"
...
...
configure.in
View file @
6646048f
...
@@ -1687,7 +1687,7 @@ then
...
@@ -1687,7 +1687,7 @@ then
AC_MSG_ERROR
(
"MySQL needs a long long type."
)
AC_MSG_ERROR
(
"MySQL needs a long long type."
)
fi
fi
# off_t is not a builtin type
# off_t is not a builtin type
MYSQL
_CHECK_SIZEOF
(
off_t, 4
)
AC
_CHECK_SIZEOF
(
off_t, 4
)
if
test
"
$ac_cv_sizeof_off_t
"
-eq
0
if
test
"
$ac_cv_sizeof_off_t
"
-eq
0
then
then
AC_MSG_ERROR
(
"MySQL needs a off_t type."
)
AC_MSG_ERROR
(
"MySQL needs a off_t type."
)
...
...
include/my_atomic.h
View file @
6646048f
...
@@ -135,7 +135,13 @@ make_atomic_swap(ptr)
...
@@ -135,7 +135,13 @@ make_atomic_swap(ptr)
#undef _atomic_h_cleanup_
#undef _atomic_h_cleanup_
#endif
#endif
typedef
int32
intptr
;
/* TODO configure check */
#if SIZEOF_CHARP == SIZEOF_INT
typedef
int
intptr
;
#elif SIZEOF_CHARP == SIZEOF_LONG
typedef
long
intptr
;
#else
#error
#endif
#define MY_ATOMIC_OK 0
#define MY_ATOMIC_OK 0
#define MY_ATOMIC_NOT_1CPU 1
#define MY_ATOMIC_NOT_1CPU 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment