Michael Pruett <michael@68k.org> pointed out that setting the LIBS in
various tests means they are set for all tests. This could have adverse
affects under weird configurations, so we set them at the end just before
substitution.
svn path=/trunk/vorbis/; revision=2232
AC_CHECK_LIB(m, cos, LIBS="-lm", LIBS="")
AC_CHECK_LIB(pthread, pthread_create, pthread_lib="-lpthread", :)
-AM_PATH_OGG(LIBS="$LIBS $OGG_LIBS", AC_MSG_ERROR(must have Ogg installed!))
+AM_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))
dnl --------------------------------------------------
dnl Check for library functions
dnl Do substitutions
dnl --------------------------------------------------
+LIBS="$LIBS $OGG_LIBS"
+
+AC_SUBST(LIBS)
AC_SUBST(DEBUG)
AC_SUBST(PROFILE)
AC_SUBST(pthread_lib)