build: Fix for newer Auto tools.
[anag] / configure.in
index f302f3c..4be7667 100644 (file)
@@ -51,13 +51,22 @@ AC_SUBST([TKPROGS])
 
 EXTNODE=""
 AC_CHECK_FUNCS([regcomp])
-mdw_CHECK_MANYLIBS([pcre_fullinfo], [pcre], [AC_DEFINE([HAVE_PCRE])])
+mdw_CHECK_MANYLIBS([pcre_fullinfo], [pcre],
+  [AC_DEFINE([HAVE_PCRE], [1],
+    [Define if you have libpcre lying around somewhere.])])
 
 AC_ARG_WITH(dictionary,
 [  --with-dictionary=DICT  set default word list to be DICT],
 [DICTIONARY=$withval],
-[DICTIONARY="/usr/dict/words"])
-AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"])
+[AC_CACHE_CHECK([dictionary], [mdw_cv_dictionary],
+   [for mdw_cv_dictionary in \
+        /usr/share/dict/words \
+        /usr/dict/words; do
+      test -r "$i" && break
+    done])
+ DICTIONARY=$mdw_cv_dictionary])
+AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"],
+  [Define this to be your default wordlist location.])
 AC_SUBST([DICTIONARY])
 
 mdw_DEFINE_PATHS([