mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Port to SCO OpenServer 6. May require running ./configure with
--build=i686-unknown-sysv5SCO_SV6.0.0 include/my_pthread.h: Remove unnecessary define -- configure should define HAVE_NONPOSIX_SIGWAIT configure.in: Update checks for SCO threading libraries to handle OpenServer 6 Remove redundant OpenUNIX 8 checks Pass --build option through to bdb's configure
This commit is contained in:
94
configure.in
94
configure.in
@ -359,19 +359,19 @@ case "$target_os" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
sysv5UnixWare*)
|
sysv5UnixWare* | sysv5OpenUNIX8*)
|
||||||
if test "$GCC" != "yes"; then
|
if test "$GCC" != "yes"; then
|
||||||
# We are using built-in inline function
|
# Use the built-in alloca()
|
||||||
CFLAGS="$CFLAGS -Kalloca"
|
CFLAGS="$CFLAGS -Kalloca"
|
||||||
fi
|
fi
|
||||||
CXXFLAGS="$CXXFLAGS -DNO_CPLUSPLUS_ALLOCA"
|
CXXFLAGS="$CXXFLAGS -DNO_CPLUSPLUS_ALLOCA"
|
||||||
;;
|
;;
|
||||||
sysv5OpenUNIX8*)
|
sysv5SCO_SV6.0.0*)
|
||||||
if test "$GCC" != "yes"; then
|
if test "$GCC" != "yes"; then
|
||||||
# We are using built-in inline function
|
# Use the built-in alloca()
|
||||||
CFLAGS="$CFLAGS -Kalloca"
|
CFLAGS="$CFLAGS -Kalloca"
|
||||||
|
CXXFLAGS="$CFLAGS -Kalloca"
|
||||||
fi
|
fi
|
||||||
CXXFLAGS="$CXXFLAGS -DNO_CPLUSPLUS_ALLOCA"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(CC)
|
AC_SUBST(CC)
|
||||||
@ -1386,8 +1386,6 @@ then
|
|||||||
if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
|
if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
|
||||||
then
|
then
|
||||||
AC_DEFINE(HAVE_UNIXWARE7_THREADS, [1])
|
AC_DEFINE(HAVE_UNIXWARE7_THREADS, [1])
|
||||||
else
|
|
||||||
AC_DEFINE(HAVE_UNIXWARE7_POSIX, [1])
|
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT("yes")
|
AC_MSG_RESULT("yes")
|
||||||
# We must have cc
|
# We must have cc
|
||||||
@ -1413,87 +1411,41 @@ then
|
|||||||
AC_MSG_RESULT("no")
|
AC_MSG_RESULT("no")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Hack for SCO UnixWare7
|
|
||||||
|
#
|
||||||
|
# Check for SCO threading libraries
|
||||||
#
|
#
|
||||||
if test "$with_named_thread" = "no"
|
if test "$with_named_thread" = "no"
|
||||||
then
|
then
|
||||||
AC_MSG_CHECKING("SCO UnixWare7 native threads")
|
AC_MSG_CHECKING([SCO OpenServer 6, UnixWare 7 or OpenUNIX 8 native threads])
|
||||||
if expr "$SYSTEM_TYPE" : ".*UnixWare*" > /dev/null
|
if expr "$SYSTEM_TYPE" : ".*UnixWare.*" > /dev/null || \
|
||||||
|
expr "$SYSTEM_TYPE" : ".*SCO_SV6.*" > /dev/null || \
|
||||||
|
expr "$SYSTEM_TYPE" : ".*OpenUNIX.*" > /dev/null
|
||||||
then
|
then
|
||||||
if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
|
if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
|
||||||
then
|
then
|
||||||
MYSQL_REMOVE_SOCKET_FROM_LIBS_HACK
|
MYSQL_REMOVE_SOCKET_FROM_LIBS_HACK
|
||||||
if expr "$CC" : ".*gcc.*"
|
if expr "$CC" : ".*gcc.*" > /dev/null
|
||||||
then
|
|
||||||
with_named_thread="-pthread -lsocket -lnsl"
|
|
||||||
else
|
|
||||||
with_named_thread="-Kthread -lsocket -lnsl"
|
|
||||||
fi
|
|
||||||
if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
|
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_UNIXWARE7_THREADS, [1])
|
|
||||||
else
|
|
||||||
AC_DEFINE(HAVE_UNIXWARE7_POSIX, [1])
|
|
||||||
fi
|
|
||||||
# We must have cc
|
|
||||||
AC_MSG_CHECKING("for gcc")
|
|
||||||
if expr "$CC" : ".*gcc.*"
|
|
||||||
then
|
then
|
||||||
|
with_named_thread="-pthread -lsocket -lnsl"
|
||||||
CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
||||||
CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
||||||
else
|
else
|
||||||
|
with_named_thread="-Kthread -lsocket -lnsl"
|
||||||
CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
||||||
CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT("yes")
|
if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
|
||||||
|
then
|
||||||
|
AC_DEFINE(HAVE_UNIXWARE7_THREADS, [1], [Have UnixWare 7 (or similar) almost-POSIX threading library])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
|
AC_MSG_RESULT(failed)
|
||||||
{ echo "configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
|
{ echo "configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT("no")
|
AC_MSG_RESULT(no)
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Hack for Caldera OpenUNIX8
|
|
||||||
#
|
|
||||||
if test "$with_named_thread" = "no"
|
|
||||||
then
|
|
||||||
AC_MSG_CHECKING("OpenUNIX8 native threads")
|
|
||||||
if expr "$SYSTEM_TYPE" : ".*OpenUNIX*" > /dev/null
|
|
||||||
then
|
|
||||||
if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
|
|
||||||
then
|
|
||||||
MYSQL_REMOVE_SOCKET_FROM_LIBS_HACK
|
|
||||||
if expr "$CC" : ".*gcc.*"
|
|
||||||
then
|
|
||||||
with_named_thread="-pthread -lsocket -lnsl"
|
|
||||||
else
|
|
||||||
with_named_thread="-Kthread -lsocket -lnsl"
|
|
||||||
fi
|
|
||||||
if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
|
|
||||||
then
|
|
||||||
AC_DEFINE([HAVE_UNIXWARE7_THREADS], [1],
|
|
||||||
[UNIXWARE7 threads are not posix])
|
|
||||||
else
|
|
||||||
AC_DEFINE([HAVE_UNIXWARE7_POSIX], [1],
|
|
||||||
[new UNIXWARE7 threads that are not yet posix])
|
|
||||||
fi
|
|
||||||
# We must have cc
|
|
||||||
AC_MSG_CHECKING("for gcc")
|
|
||||||
if expr "$CC" : ".*gcc.*"
|
|
||||||
then
|
|
||||||
CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
|
||||||
CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
|
||||||
else
|
|
||||||
CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
|
||||||
CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT("yes")
|
|
||||||
else
|
|
||||||
{ echo "configure: error: Can't find thread libs on Caldera OpenUNIX 8. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT("no")
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2889,7 +2841,7 @@ then
|
|||||||
AC_CONFIG_FILES(bdb/Makefile)
|
AC_CONFIG_FILES(bdb/Makefile)
|
||||||
|
|
||||||
echo "CONFIGURING FOR BERKELEY DB"
|
echo "CONFIGURING FOR BERKELEY DB"
|
||||||
bdb_conf_flags="--disable-shared"
|
bdb_conf_flags="--disable-shared --build=$build_alias"
|
||||||
if test $with_debug = "yes"
|
if test $with_debug = "yes"
|
||||||
then
|
then
|
||||||
bdb_conf_flags="$bdb_conf_flags --enable-debug --enable-diagnostic"
|
bdb_conf_flags="$bdb_conf_flags --enable-debug --enable-diagnostic"
|
||||||
|
@ -298,11 +298,6 @@ extern int my_pthread_create_detached;
|
|||||||
int sigwait(sigset_t *set, int *sig);
|
int sigwait(sigset_t *set, int *sig);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_UNIXWARE7_POSIX)
|
|
||||||
#undef HAVE_NONPOSIX_SIGWAIT
|
|
||||||
#define HAVE_NONPOSIX_SIGWAIT /* sigwait takes only 1 argument */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_NONPOSIX_SIGWAIT
|
#ifndef HAVE_NONPOSIX_SIGWAIT
|
||||||
#define my_sigwait(A,B) sigwait((A),(B))
|
#define my_sigwait(A,B) sigwait((A),(B))
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user