Specifically check for X11/extensions/sync.h

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@39197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2015-11-24 23:46:20 +00:00
parent e37551c342
commit 65edc2e961
3 changed files with 30 additions and 3 deletions

View File

@ -53,9 +53,6 @@
/* Define to 1 if you have the `Xt' library (-lXt). */
#undef HAVE_LIBXT
/* Define to 1 if you have the `shape' extension. */
#undef HAVE_XSHAPE
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
@ -98,6 +95,12 @@
/* Define if you have the wgl library */
#undef HAVE_WGL
/* Define to 1 if you have the <X11/extensions/shape.h> header file. */
#undef HAVE_X11_EXTENSIONS_SHAPE_H
/* Define to 1 if you have the <X11/extensions/sync.h> header file. */
#undef HAVE_X11_EXTENSIONS_SYNC_H
/* Define to 1 if you have the <X11/extensions/XShm.h> header file. */
#undef HAVE_X11_EXTENSIONS_XSHM_H
@ -114,6 +117,9 @@
/* Define to 1 if you have 'XInternAtoms' function. */
#undef HAVE_XINTERNATOMS
/* Define to enable Xshape support */
#undef HAVE_XSHAPE
/* Define to 1 if you have the `Xutf8LookupString' function. */
#undef HAVE_XUTF8LOOKUPSTRING

16
configure vendored
View File

@ -4932,6 +4932,22 @@ fi
fi
for ac_header in X11/extensions/sync.h
do :
ac_fn_c_check_header_compile "$LINENO" "X11/extensions/sync.h" "ac_cv_header_X11_extensions_sync_h" "#include <X11/X.h>
#include <X11/Xutil.h>
"
if test "x$ac_cv_header_X11_extensions_sync_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_X11_EXTENSIONS_SYNC_H 1
_ACEOF
fi
done
LIBS="$X_LIBS $LIBS"
fi

View File

@ -213,6 +213,11 @@ if test $set_x_paths = yes; then
,)
fi
AC_CHECK_HEADERS(X11/extensions/sync.h,,,
[#include <X11/X.h>
#include <X11/Xutil.h>
])
LIBS="$X_LIBS $LIBS"
fi
AC_SUBST(X_PRE_LIBS)