projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made lib/contrib stuff compilation conditional.
[silc.git]
/
lib
/
contrib
/
Makefile.am
diff --git
a/lib/contrib/Makefile.am
b/lib/contrib/Makefile.am
index 78f02843efde0666653762b9c9bffa722fd6c04d..0c3ec06d8b83037cce2a357da4562bfcc5b74d14 100644
(file)
--- a/
lib/contrib/Makefile.am
+++ b/
lib/contrib/Makefile.am
@@
-20,15
+20,30
@@
AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
noinst_LIBRARIES = libcontrib.a
noinst_LIBRARIES = libcontrib.a
+if HAVE_GETOPT_LONG
+GETOPT =
+else
+GETOPT = getopt.c getopt1.c
+endif
+
+if HAVE_REGEX
+REGEX =
+else
+REGEX = regex.c
+endif
+
if SILC_WIN32
libcontrib_a_SOURCES =
else
libcontrib_a_SOURCES = \
if SILC_WIN32
libcontrib_a_SOURCES =
else
libcontrib_a_SOURCES = \
- getopt.c \
- getopt1.c \
- regex.c
+ $(GETOPT) \
+ $(REGEX)
+endif
+
+if SILC_DIST_TOOLKIT
+include_HEADERS = getopt.h regex.h
endif
endif
-EXTRA_DIST = *.h
+EXTRA_DIST = *.
c *.
h
include $(top_srcdir)/Makefile.defines.in
include $(top_srcdir)/Makefile.defines.in