diff --git a/configure b/configure index 3fb16441e1ab5559e846f7b214f2178278e08953..b8856d7c5e9a4216d93f79430497e1ec1af88bed 100755 --- a/configure +++ b/configure @@ -3401,10 +3401,12 @@ fi else GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`" FLAGS="${FLAGS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" - FIX_GL="yes" - expr "x${GMSH_LIBS}" : 'x.*GL.*' >/dev/null && FIX_GL="no" - if test "x${FIX_GL}" = "xyes"; then - GMSH_LIBS="${GMSH_LIBS} -lGLU -lGL" + if test "x${UNAME}" = "xLinux"; then + FIX_GL="yes" + expr "x${GMSH_LIBS}" : 'x.*GL.*' >/dev/null && FIX_GL="no" + if test "x${FIX_GL}" = "xyes"; then + GMSH_LIBS="${GMSH_LIBS} -lGLU -lGL" + fi fi fi @@ -4810,7 +4812,7 @@ fi # Provide some information about the compiler. -echo "$as_me:4813:" \ +echo "$as_me:4815:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 diff --git a/configure.in b/configure.in index b617859c8d5329eb3b3b60fd6495244180b8c6d7..aecd7e519d7584f52567641d81e366aed202ddea 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.134 2007-10-19 12:03:41 geuzaine Exp $ +dnl $Id: configure.in,v 1.135 2007-10-19 12:07:19 geuzaine Exp $ dnl dnl Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle dnl @@ -241,10 +241,12 @@ if test "x$enable_gui" != "xno"; then GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`" FLAGS="${FLAGS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" dnl Ugly fix for Debian bug (fltk-config does not return GL libs) - FIX_GL="yes" - expr "x${GMSH_LIBS}" : 'x.*GL.*' >/dev/null && FIX_GL="no" - if test "x${FIX_GL}" = "xyes"; then - GMSH_LIBS="${GMSH_LIBS} -lGLU -lGL" + if test "x${UNAME}" = "xLinux"; then + FIX_GL="yes" + expr "x${GMSH_LIBS}" : 'x.*GL.*' >/dev/null && FIX_GL="no" + if test "x${FIX_GL}" = "xyes"; then + GMSH_LIBS="${GMSH_LIBS} -lGLU -lGL" + fi fi fi