summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-06-07 18:51:23 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-06-07 18:51:23 +0000
commita30727351e6cdeb7ff2ffa0bddad8c3a1be9eda0 (patch)
tree067a48879e6ab74713fbd6c79d8640a4fe693666 /src
parente47da1b068cd9b8a772a99e30b2c1d5271d4295e (diff)
downloadxorg-lib-libXRes-XORG-6_8_99_901.tar.gz
lib/XRes/include/X11/extensions - symlink.sh: Add XRes linking - xc/lib/XRes/*.c: conditionally include config.h - lib/XRes: add directories and build system.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am16
-rw-r--r--src/XRes.c3
2 files changed, 19 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..adeacb0
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,16 @@
+lib_LTLIBRARIES = libXRes.la
+
+libXRes_la_SOURCES = \
+ XRes.c
+
+libXRes_la_LIBADD = @RESOURCE_EXT_LIBS@ @XRES_LIBS@
+
+#
+# Library version info. Check the libtool docs for
+# instructions on when and how to change this value
+#
+libXRes_la_LDFLAGS = -version-info 0:0:0
+
+libXResincludedir = $(includedir)/X11/extensions
+libXResinclude_HEADERS = $(top_srcdir)/include/X11/extensions/XRes.h
+
diff --git a/src/XRes.c b/src/XRes.c
index 474d2df..06cc78d 100644
--- a/src/XRes.c
+++ b/src/XRes.c
@@ -5,6 +5,9 @@
#define NEED_EVENTS
#define NEED_REPLIES
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <X11/Xlibint.h>
#include <X11/Xutil.h>