version 1.138, 2004/05/27 14:18:04
|
version 1.139, 2004/05/28 09:59:48
|
Line 583 dnl use AC_CONFIG_SUBDIRS to launch conf
|
Line 583 dnl use AC_CONFIG_SUBDIRS to launch conf
|
dnl |
dnl |
|
|
if test "$with_gl" = "yes" ; then |
if test "$with_gl" = "yes" ; then |
|
# setup a list of standard paths int LDFLAGS |
|
# for AC_CHECK_LIB library existance checks |
|
LDFLAGS_OLD=$LDFLAGS |
|
LDFLAGS="-L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib" |
AC_MSG_CHECKING([OpenGL]) |
AC_MSG_CHECKING([OpenGL]) |
for ac_dir in \ |
for ac_dir in \ |
/usr/include \ |
/usr/include \ |
Line 595 if test "$with_gl" = "yes" ; then
|
Line 599 if test "$with_gl" = "yes" ; then
|
if test "$ac_dir" != "/usr/include" ; then |
if test "$ac_dir" != "/usr/include" ; then |
GL_INCLUDES="-I$ac_dir" |
GL_INCLUDES="-I$ac_dir" |
fi |
fi |
AC_CHECK_LIB(GL,glBegin,,AC_MSG_ERROR(Cannot find OpenGL library. Please install OpenGL.)) |
AC_CHECK_LIB(GL,glBegin,,AC_MSG_ERROR(Cannot find OpenGL library. Please install OpenGL.)) |
AC_MSG_RESULT([yes]) |
AC_MSG_RESULT([yes]) |
break |
break |
fi |
fi |
done |
done |
AC_MSG_CHECKING([GLU]) |
AC_MSG_CHECKING([GLU]) |
for ac_dir in \ |
for ac_dir in \ |
Line 615 if test "$with_gl" = "yes" ; then
|
Line 619 if test "$with_gl" = "yes" ; then
|
fi |
fi |
fi |
fi |
# now test that glu version is >= 1.2 |
# now test that glu version is >= 1.2 |
AC_CHECK_LIB(GLU,gluNewTess,,AC_CHECK_LIB(glu32,gluNewTess,,AC_MSG_ERROR(Cannot find OpenGL GLU lib or existing version is < 1.2. Pease upgrade your GLU library.))) |
AC_CHECK_LIB(GLU,gluNewTess,,AC_CHECK_LIB(glu32,gluNewTess,,AC_MSG_ERROR(Cannot find OpenGL GLU lib or existing version is < 1.2. Pease upgrade your GLU library.))) |
AC_MSG_RESULT([yes]) |
AC_MSG_RESULT([yes]) |
break |
break |
fi |
fi |
done |
done |
|
LDFLAGS=$LDFLAGS_OLD |
|
|
# check for gtkglarea.h only if gtk gui is selected |
# check for gtkglarea.h only if gtk gui is selected |
if test "$with_gtk" = "yes" ; then |
if test "$with_gtk" = "yes" ; then |
AC_MSG_CHECKING([GTKGLAREA]) |
AC_MSG_CHECKING([GTKGLAREA]) |