bin_PROGRAMS =
bin_SCRIPTS =
+LDADD =
+if HAVE_PCRE
+ LDADD += $(PCRE_LIBS)
+endif
+
###--------------------------------------------------------------------------
### Making substitutions.
anag_SOURCES += anagram.c
anag_SOURCES += longest.c
anag_SOURCES += mono.c
-anag_SOURCES += pcre.c
-anag_SOURCES += regexp.c
+if HAVE_PCRE
+ anag_SOURCES += pcre.c
+endif
+if HAVE_REGCOMP
+ anag_SOURCES += regexp.c
+endif
anag_SOURCES += trackword.c
anag_SOURCES += wildcard.c