Skip to content

Commit

Permalink
#5375: Change symbol checks in configure.ac to fix the build in Mageia.
Browse files Browse the repository at this point in the history
It seems pointless to check for a "main" symbol in GL, GLEW or sound libraries, so check for one of the function symbols which are part of the public interface.
  • Loading branch information
codereader committed Oct 31, 2020
1 parent 82d50e1 commit 03a57aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Expand Up @@ -139,7 +139,7 @@ PKG_CHECK_MODULES([FTGL], [ftgl])

# GLEW
AC_CHECK_HEADER([GL/glew.h], [], [AC_MSG_ERROR([GLEW not found])])
AC_CHECK_LIB([GLEW], [main],
AC_CHECK_LIB([GLEW], [glewInit],
[GLEW_LIBS='-lGLEW'],
[AC_MSG_ERROR([GLEW not found])])
AC_SUBST([GLEW_LIBS])
Expand All @@ -157,7 +157,7 @@ if test "$build_osx" != "no"; then
fi

if test "$build_linux" != "no"; then
AC_CHECK_LIB([GL], [main],
AC_CHECK_LIB([GL], [glBegin],
[GL_LIBS='-lGL'],
[AC_MSG_ERROR([GL library not found.])])
AC_CHECK_LIB([GLU], [gluBuild2DMipmaps],
Expand Down Expand Up @@ -322,7 +322,7 @@ AC_CHECK_LIB([gtest_main], [main],
AC_SUBST([test_subdir])

# dynamic link library
AC_CHECK_LIB([dl], [main],
AC_CHECK_LIB([dl], [dlopen],
[DL_LIBS='-ldl'],
[AC_MSG_ERROR([DL library not found])])
AC_SUBST([DL_LIBS])
Expand All @@ -344,7 +344,7 @@ else
[sound_module=''])
fi

AC_CHECK_LIB([alut], [main],
AC_CHECK_LIB([alut], [alutInit],
[ALUT_LIBS='-lalut'],
[sound_module=''],
[$AL_LIBS])
Expand Down

0 comments on commit 03a57aa

Please sign in to comment.