Bug 589088. Save X_CFLAGS on OpenBSD too. r=khuey

This commit is contained in:
Landry Breuil 2011-04-29 17:37:31 -04:00
parent 98c4cfbe6e
commit 4dc126646f

View File

@ -3178,7 +3178,7 @@ dnl Checks for header files.
dnl ========================================================
AC_HEADER_DIRENT
case "$target_os" in
freebsd*)
freebsd*|openbsd*)
# for stuff like -lXshm
CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
;;
@ -3344,11 +3344,6 @@ else
dnl ========================================================
AC_CHECK_LIB(Xext, XShmCreateImage, _HAVE_XSHM_XEXT=1,,
$XLIBS $XEXT_LIBS)
MOZ_CHECK_HEADER(X11/extensions/XShm.h)
if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" &&
test -n "$_HAVE_XSHM_XEXT"; then
AC_DEFINE(HAVE_XSHM)
fi
dnl ========================================================
dnl = Check for Xss
@ -9028,6 +9023,7 @@ if test "$MOZ_X11"; then
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include <X11/extensions/XShm.h>
],
[
Display *dpy = 0;