configure.ac: Only add libgdi32 for winlib

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/freeze-0_8_5@16162 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-03-11 23:28:56 +00:00
parent 28973fec56
commit 6925816560
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-03-11 Adam Fedor <fedor@gnu.org>
* configure.ac: Only add libgdi32 for winlib
2003-03-08 Adam Fedor <fedor@gnu.org>
* Headers/x11/XGOpenGL.h: Standardize BOOL redefine to XWINDOWSBOOL.

4
configure vendored
View file

@ -5413,7 +5413,7 @@ else
fi
if test "$have_gdi32" = yes; then
GRAPHIC_LIBS="-lgdi32 ${GRAPHIC_LIBS}"
WIN32_LIBS="-lgdi32"
fi
CPPFLAGS="${save_header}"
LIBS="${save_libs}"
@ -5848,6 +5848,8 @@ echo "$as_me: error: can't find freetype, required for graphics=art!" >&2;}
echo "$as_me: error: can't find libart, required for graphics=art!" >&2;}
{ (exit 1); exit 1; }; }
fi
elif test x"$BUILD_GRAPHICS" = "xwinlib"; then
GRAPHIC_LIBS="$WIN32_LIBS $GRAPHIC_LIBS"
fi

View file

@ -383,7 +383,7 @@ CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}"
LIBS="${GRAPHIC_LIBS} ${LIBS}"
AC_CHECK_LIB(gdi32, main, have_gdi32=yes, have_gdi32=no)
if test "$have_gdi32" = yes; then
GRAPHIC_LIBS="-lgdi32 ${GRAPHIC_LIBS}"
WIN32_LIBS="-lgdi32"
fi
CPPFLAGS="${save_header}"
LIBS="${save_libs}"
@ -470,6 +470,8 @@ elif test x"$BUILD_GRAPHICS" = "xart"; then
if test "$have_libart_lgpl_2" = no; then
AC_MSG_ERROR([can't find libart, required for graphics=art!])
fi
elif test x"$BUILD_GRAPHICS" = "xwinlib"; then
GRAPHIC_LIBS="$WIN32_LIBS $GRAPHIC_LIBS"
fi
AH_TOP([