AC_CANONICAL_HOST
dnl Used on the Irix platform
-AR="ar"
-ARFLAGS="cru"
case "${host}" in
*-*-irix*)
- if test "$CXX" = "CC"; then
- AR="CC -ar"
+ if test "x$CXX" = "xCC" -o "x$CXX" = "xccache CC"; then
+ AR="$CXX -ar"
ARFLAGS="-o"
CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility"
+ compatibility_DIR="compatibility"
fi
;;
+*)
+ AR="ar"
+ ARFLAGS="cru"
+ compatibility_DIR=
+ ;;
esac
AC_SUBST(AR)
AC_SUBST(ARFLAGS)
+AC_SUBST(compatibility_DIR)
if echo $includedir | egrep "simgear$" > /dev/null; then
echo "includedir is" $includedir "libdir is" $libdir
AC_SEARCH_LIBS(cos, m)
base_LIBS="$LIBS"
-LIBS=""
dnl check for glut location
AC_CHECK_HEADER(GL/glut.h)