summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorsvoj@mysql.com <>2005-06-22 16:29:21 +0500
committersvoj@mysql.com <>2005-06-22 16:29:21 +0500
commitc275bde204f69ae4cd3e58932594114714968051 (patch)
treeb298a4fc26c8db691ff436e7c6441cb20815a222 /config
parent975cbd82c0f824b27b022494f1751d239d116788 (diff)
downloadmariadb-git-c275bde204f69ae4cd3e58932594114714968051.tar.gz
Better AR guessing.
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/misc.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4
index e3413048cf7..6f93f38f119 100644
--- a/config/ac-macros/misc.m4
+++ b/config/ac-macros/misc.m4
@@ -737,3 +737,32 @@ then
fi
AC_SUBST(CXX_VERSION)
])
+
+AC_DEFUN([MYSQL_PROG_AR], [
+AC_REQUIRE([MYSQL_CHECK_CXX_VERSION])
+case $CXX_VERSION in
+ MIPSpro*)
+ AR=$CXX
+ ARFLAGS="-ar -o"
+ ;;
+ *Forte*)
+ AR=$CXX
+ ARFLAGS="-xar -o"
+ ;;
+ *)
+ if test -z "$AR"
+ then
+ AC_CHECK_PROG([AR], [ar], [ar])
+ fi
+ if test -z "$AR"
+ then
+ AC_MSG_ERROR([You need ar to build the library])
+ fi
+ if test -z "$ARFLAGS"
+ then
+ ARFLAGS="cru"
+ fi
+esac
+AC_SUBST(AR)
+AC_SUBST(ARFLAGS)
+])