From: Dan Nicholson Date: Wed, 11 Feb 2009 23:16:00 +0000 (-0800) Subject: autoconf: Fix lib globbing for static builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8217f24f21a0ea9888a18ec7399d2d974a43d1cb;p=mesa.git autoconf: Fix lib globbing for static builds Reported-by: Siddhartha Chaudhuri Signed-off-by: Dan Nicholson --- diff --git a/configure.ac b/configure.ac index be5bcad0f3d..a9a8d5ad0be 100644 --- a/configure.ac +++ b/configure.ac @@ -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])