summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 4b709c6..199be73 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -219,7 +219,14 @@ config.h: $(BUILT_SOURCES) libunistring.sym
done; \
} 5>&1 \
| sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \
- | LC_ALL=C join -v 1 - $(srcdir)/libunistring.sym \
+ | { \
+ if test -f libunistring.sym; then \
+ symfile='libunistring.sym'; \
+ else \
+ symfile='$(srcdir)/libunistring.sym'; \
+ fi; \
+ LC_ALL=C join -v 1 - $$symfile; \
+ } \
| sed -e 's,^\(.*\)$$,#define \1 libunistring_\1,' > config.h-t && \
if test -f config.h; then \
cat config.h-t >> config.h; \