* configure.ac: Check for invalid backend graphics name.

Error if no X11 libraries if using x11 server.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21870 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2005-10-24 02:55:46 +00:00
parent 1d95d88ca5
commit e2e4d3a175
3 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-10-23 Adam Fedor <fedor@gnu.org>
* configure.ac: Check for invalid backend graphics name.
Error if no X11 libraries if using x11 server.
2005-10-20 Adam Fedor <fedor@gnu.org>
* Headers/win32/WIN32Server.h: uint -> unsigned int

14
configure vendored
View file

@ -6908,6 +6908,12 @@ echo "$as_me: Switching to $BUILD_GRAPHICS" >&6;}
LIBS="$CAIRO_LIBS $LIBS"
CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
fi
elif test x"$BUILD_GRAPHICS" = "xxlib"; then
: # Nothing to do
else
{ { echo "$as_me:$LINENO: error: Invalid graphics backend $BUILD_GRAPHICS" >&5
echo "$as_me: error: Invalid graphics backend $BUILD_GRAPHICS" >&2;}
{ (exit 1); exit 1; }; }
fi
if test x"$BUILD_GRAPHICS" = "xwinlib"; then
LIBS="$WIN32_LIBS $LIBS"
@ -6917,6 +6923,14 @@ if test x"$BUILD_GRAPHICS" = "xxlib"; then
CPPFLAGS="$XFT_CFLAGS $CPPFLAGS"
fi
if test $BUILD_SERVER = x11; then
if test $set_x_paths = no; then
{ { echo "$as_me:$LINENO: error: No X11 libraries/headers for building x11 server" >&5
echo "$as_me: error: No X11 libraries/headers for building x11 server" >&2;}
{ (exit 1); exit 1; }; }
fi
fi

View file

@ -391,6 +391,10 @@ elif test x"$BUILD_GRAPHICS" = "xcairo"; then
LIBS="$CAIRO_LIBS $LIBS"
CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS"
fi
elif test x"$BUILD_GRAPHICS" = "xxlib"; then
: # Nothing to do
else
AC_MSG_ERROR([Invalid graphics backend $BUILD_GRAPHICS])
fi
if test x"$BUILD_GRAPHICS" = "xwinlib"; then
LIBS="$WIN32_LIBS $LIBS"
@ -400,6 +404,12 @@ if test x"$BUILD_GRAPHICS" = "xxlib"; then
CPPFLAGS="$XFT_CFLAGS $CPPFLAGS"
fi
if test $BUILD_SERVER = x11; then
if test $set_x_paths = no; then
AC_MSG_ERROR([No X11 libraries/headers for building x11 server])
fi
fi
AH_TOP([
#define SERVER_x11 1
#define SERVER_win32 2