diff options
author | gerberb@ou800.zenez.com <> | 2003-09-03 08:07:58 -0600 |
---|---|---|
committer | gerberb@ou800.zenez.com <> | 2003-09-03 08:07:58 -0600 |
commit | 7005115e97b3986a7ec1ba59ff6ece82bcc1a2f2 (patch) | |
tree | ca3f7fba0135b3734e02cba79bd5b086b9185fc1 /configure.in | |
parent | dc554ab989890b7b5305967973b432fca5fa5c3f (diff) | |
download | mariadb-git-7005115e97b3986a7ec1ba59ff6ece82bcc1a2f2.tar.gz |
Change set for gcc patch on OpenUNIX and UnixWare SCO is the OS vendor.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.in b/configure.in index f894cb5cb2a..0538199e8e1 100644 --- a/configure.in +++ b/configure.in @@ -1339,7 +1339,12 @@ then if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so then MYSQL_REMOVE_SOCKET_FROM_LIBS_HACK - with_named_thread="-Kthread -lsocket -lnsl" + 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) @@ -1375,7 +1380,12 @@ then if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so then MYSQL_REMOVE_SOCKET_FROM_LIBS_HACK - with_named_thread="-Kthread -lsocket -lnsl" + 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) |