[Plib-cvs] plib/demos/p-guide configure.in,1.2,1.3
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-07-01 01:21:07
|
Update of /cvsroot/plib/plib/demos/p-guide In directory usw-pr-cvs1:/tmp/cvs-serv21781 Modified Files: configure.in Log Message: Updates for OS-X / IRIX, cleanups, improvements Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/demos/p-guide/configure.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- configure.in 12 Jun 2002 11:27:22 -0000 1.2 +++ configure.in 1 Jul 2002 01:21:04 -0000 1.3 @@ -14,9 +14,47 @@ AC_LANG_CPLUSPLUS +dnl Command line arguments. + +AC_ARG_WITH(GL, +AC_HELP_STRING([--with-GL=DIR], [set the prefix directory where GL resides]), +GL_PREFIX=$withval, GL_PREFIX=auto) + +if test "x$GL_PREFIX" != "xauto"; then + LDFLAGS="$LDFLAGS -L$GL_PREFIX/lib" [...94 lines suppressed...] +fi -dnl Checks for header files. +dnl Check PLIB library +AC_CHECK_LIB(plibul, ulInit, true, +AC_MSG_ERROR([there seems to be a problem with the PLIB libraries])) -AC_HEADER_STDC +dnl Check SGI audio library +AC_CHECK_LIB(audio, ALopenport) -AC_CHECK_HEADERS(GL/gl.h GL/glut.h) -AC_CHECK_HEADER(windows.h, AC_DEFINE(WIN32)) +if test "x$ac_cv_lib_audio_ALopenport" = "xyes" ; then + dnl this is an SGI machine... + LIBS="$LIBS -laudio" +fi AC_OUTPUT( Makefile \ src/Makefile \ |