noinst_LTLIBRARIES = libcontrib.la
-if HAVE_GETOPT_LONG
-GETOPT =
-else
-GETOPT = getopt.c getopt1.c
-endif
-
if HAVE_REGEX
REGEX =
else
-REGEX = regex.c
+REGEX = regexpr.c
endif
STRINGPREP = nfkc.c rfc3454.c stringprep.c
if SILC_WIN32
-libcontrib_la_SOURCES = $(STRINGPREP)
+libcontrib_la_SOURCES = getopti.c $(STRINGPREP)
+else
+libcontrib_la_SOURCES = getopti.c $(STRINGPREP) $(REGEX)
+endif
+
+#ifdef SILC_DIST_TOOLKIT
+if HAVE_REGEX
+REGEXH =
else
-libcontrib_la_SOURCES = $(STRINGPREP) $(GETOPT) $(REGEX)
+REGEXH = regexpr.h
endif
+include_HEADERS = \
+ $(REGEXH) \
+ getopti.h \
+ gunicomp.h \
+ gunidecomp.h \
+ stringprep.h
+#endif SILC_DIST_TOOLKIT
EXTRA_DIST = *.c *.h