]> git.mxchange.org Git - simgear.git/commitdiff
Don't link agains OpenGL libraries when it's not needed
authorehofman <ehofman>
Mon, 7 Jul 2003 11:27:10 +0000 (11:27 +0000)
committerehofman <ehofman>
Mon, 7 Jul 2003 11:27:10 +0000 (11:27 +0000)
configure.ac

index a1a8c79dee3beaba40b1db4a73a8cc9770d68a06..ec37ef621749fa51c642873dd1c7687e7085fa43 100644 (file)
@@ -134,12 +134,8 @@ esac
 
 dnl Checks for libraries.
 
-null_LIBS="$LIBS"
-
 AC_SEARCH_LIBS(cos, m)
 
-base_LIBS="$LIBS"
-
 dnl Thread related checks
 AC_CHECK_HEADER(pthread.h)
 AC_CHECK_LIB(pthread, pthread_exit)
@@ -188,6 +184,9 @@ else
     fi
 fi
 
+base_LIBS="$LIBS"
+LIBS=""
+
 dnl check for OpenGL related libraries
 case "${host}" in
 *-*-cygwin* | *-*-mingw32*)