Permalink
Browse files

add checks for libX11 and boost_system

  • Loading branch information...
1 parent 4291fbf commit bdeda63e45a738c016d35ea2c1554bd0426d6ce3 @tristanheaven tristanheaven committed Mar 18, 2012
Showing with 16 additions and 10 deletions.
  1. +16 −10 smc/configure.ac
View
26 smc/configure.ac
@@ -26,20 +26,26 @@ AC_CHECK_LIB([boost_filesystem], [main], ,
AC_CHECK_LIB([boost_thread], [main], ,
[AC_MSG_ERROR([Unable to find Boost Thread library])])
+# Check for the Boost System library
+AC_CHECK_LIB([boost_system], [main], ,
+ [AC_MSG_ERROR([Unable to find Boost System library])])
+
# Check for the OpenGL and GLU library
case "${host}" in
*darwin*|*macosx*)
- # Mac OS X
- LIBS="$LIBS -framework OpenGL -framework Carbon -lintl -lboost_system"
- ;;
+ # Mac OS X
+ LIBS="$LIBS -framework OpenGL -framework Carbon -lintl -lboost_system"
+ ;;
*)
- # Other Unix (Linux)
- AC_CHECK_LIB([GL], [main], , [has_gl=no])
- AC_CHECK_LIB([GLU], [main], , [has_glu=no])
- if test "x$has_gl" = "xno" -o "x$has_glu" = "xno"; then
- AC_MSG_ERROR([Unable to find the OpenGL library])
- fi
- ;;
+ # Other Unix (Linux)
+ AC_CHECK_LIB([X11], [main], ,
+ [AC_MSG_ERROR([Unable to find libX11])])
+ AC_CHECK_LIB([GL], [main], , [has_gl=no])
+ AC_CHECK_LIB([GLU], [main], , [has_glu=no])
+ if test "x$has_gl" = "xno" -o "x$has_glu" = "xno"; then
+ AC_MSG_ERROR([Unable to find the OpenGL library])
+ fi
+ ;;
esac
# Check for the SDL library

0 comments on commit bdeda63

Please sign in to comment.