summaryrefslogtreecommitdiff
path: root/m4/ecore_check_c_extension.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ecore_check_c_extension.m4')
-rw-r--r--m4/ecore_check_c_extension.m425
1 files changed, 0 insertions, 25 deletions
diff --git a/m4/ecore_check_c_extension.m4 b/m4/ecore_check_c_extension.m4
deleted file mode 100644
index da4b44f..0000000
--- a/m4/ecore_check_c_extension.m4
+++ /dev/null
@@ -1,25 +0,0 @@
1dnl use: ECORE_CHECK_X_EXTENSION(Foo, header, lib, func)
2AC_DEFUN([ECORE_CHECK_X_EXTENSION],
3[
4pushdef([UP], translit([$1], [a-z], [A-Z]))dnl
5
6 SAVE_CFLAGS=$CFLAGS
7 CFLAGS="$CFLAGS $ECORE_X_XLIB_cflags"
8 AC_CHECK_HEADER(X11/extensions/$2,
9 [
10 SAVE_LIBS=$LIBS
11 LIBS="$LIBS $ECORE_X_XLIB_libs"
12 AC_CHECK_LIB($3, $4,
13 [AC_DEFINE(ECORE_[]UP, 1, [Build support for $1])],
14 [AC_MSG_ERROR([Missing support for X extension: $1])])
15 LIBS=$SAVE_LIBS
16 ],
17 [AC_MSG_ERROR([Missing X11/extensions/$2])],
18 [ #include <X11/Xlib.h> ]
19 )
20 CFLAGS=$SAVE_CFLAGS
21
22ECORE_X_LIBS="${ECORE_X_LIBS} -l$3"
23
24popdef([UP])
25])