autoconf: Fix lib globbing for static builds
authorDan Nicholson <dbn.lists@gmail.com>
Wed, 11 Feb 2009 23:16:00 +0000 (15:16 -0800)
committerDan Nicholson <dbn.lists@gmail.com>
Wed, 11 Feb 2009 23:16:00 +0000 (15:16 -0800)
Reported-by: Siddhartha Chaudhuri <expiring_frog@yahoo.co.uk>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
configure.ac

index be5bcad0f3d8721c9d9cd0717ffea785542462d3..a9a8d5ad0be27a70ed6893c84c5f29018aca327d 100644 (file)
@@ -225,11 +225,7 @@ dnl
 dnl library names
 dnl
 if test "$enable_static" = yes; then
-    GL_LIB_NAME='lib$(GL_LIB).a'
-    GLU_LIB_NAME='lib$(GLU_LIB).a'
-    GLUT_LIB_NAME='lib$(GLUT_LIB).a'
-    GLW_LIB_NAME='lib$(GLW_LIB).a'
-    OSMESA_LIB_NAME='lib$(OSMESA_LIB).a'
+    LIB_EXTENSION='a'
 else
     case "$host_os" in
     darwin* )
@@ -237,19 +233,20 @@ else
     * )
         LIB_EXTENSION='so' ;;
     esac
-
-    GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
-    GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
-    GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
-    GLW_LIB_NAME='lib$(GLW_LIB).'${LIB_EXTENSION}
-    OSMESA_LIB_NAME='lib$(OSMESA_LIB).'${LIB_EXTENSION}
-
-    GL_LIB_GLOB='lib$(GL_LIB).*'${LIB_EXTENSION}'*'
-    GLU_LIB_GLOB='lib$(GLU_LIB).*'${LIB_EXTENSION}'*'
-    GLUT_LIB_GLOB='lib$(GLUT_LIB).*'${LIB_EXTENSION}'*'
-    GLW_LIB_GLOB='lib$(GLW_LIB).*'${LIB_EXTENSION}'*'
-    OSMESA_LIB_GLOB='lib$(OSMESA_LIB).*'${LIB_EXTENSION}'*'
 fi
+
+GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
+GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
+GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
+GLW_LIB_NAME='lib$(GLW_LIB).'${LIB_EXTENSION}
+OSMESA_LIB_NAME='lib$(OSMESA_LIB).'${LIB_EXTENSION}
+
+GL_LIB_GLOB='lib$(GL_LIB).*'${LIB_EXTENSION}'*'
+GLU_LIB_GLOB='lib$(GLU_LIB).*'${LIB_EXTENSION}'*'
+GLUT_LIB_GLOB='lib$(GLUT_LIB).*'${LIB_EXTENSION}'*'
+GLW_LIB_GLOB='lib$(GLW_LIB).*'${LIB_EXTENSION}'*'
+OSMESA_LIB_GLOB='lib$(OSMESA_LIB).*'${LIB_EXTENSION}'*'
+
 AC_SUBST([GL_LIB_NAME])
 AC_SUBST([GLU_LIB_NAME])
 AC_SUBST([GLUT_LIB_NAME])