if test "$wxUSE_MAC" = 1; then
OPENGL_LIBS="-framework OpenGL -framework AGL"
else
+
dnl check for OpenGL libs availability first
- AC_CHECK_HEADER(GL/gl.h, [
- AC_CHECK_LIB(GL, glFlush, [
- OPENGL_LIBS="-lGL -lGLU"
- ], [
- AC_CHECK_LIB(MesaGL, glFlush, [
- OPENGL_LIBS="-lMesaGL -lMesaGLU"
+ dnl -lGL requires -lm with soem OpenGL versions
+
+ AC_CHECK_HEADER(GL/gl.h,
+ [
+ AC_CHECK_LIB(GL, glFlush,
+ [
+ OPENGL_LIBS="-lGL -lGLU"
+ ],
+ [
+ AC_CHECK_LIB(MesaGL, glFlush,
+ [
+ OPENGL_LIBS="-lMesaGL -lMesaGLU"
+ ],
+ [],
+ [-lm])
+ ],
+ [-lm])
])
- ])
- ])
if test "x$OPENGL_LIBS" = "x"; then
dnl it should be an error and not a warning because OpenGL is not on
WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
- TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
+ TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
dnl wxGTK does not need TOOLKIT includes in wx-config
-if test $wxUSE_GTK = 1; then
+if test "$wxUSE_GTK" = 1; then
WXCONFIG_INCLUDE=
else
WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
AC_SUBST(TOOLKIT_VPATH)
AC_SUBST(TOOLCHAIN_NAME)
AC_SUBST(TOOLCHAIN_DEFS)
+AC_SUBST(TOOLCHAIN_DLL_DEFS)
dnl wx-config options
AC_SUBST(host_alias)