+++ /dev/null
-/* -*-c-*-
- *
- * $Id: acconfig.h,v 1.3 2004/04/08 01:36:19 mdw Exp $
- *
- * Configuration header for Anag
- *
- * (c) 1999 Straylight/Edgeware
- */
-
-/*----- Licensing notice --------------------------------------------------*
- *
- * This file is part of Anag: a simple wordgame helper.
- *
- * Anag is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Anag is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Anag; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifndef ACCONFIG_H
-#define ACCONFIG_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-/*----- Autoconfiguration data --------------------------------------------*/
-@TOP@
-
-/* Package and version number. */
-#define PACKAGE "anag"
-#define VERSION "1.0.0"
-
-/* Define this to be your default wordlist location. */
-#define DICTIONARY "/usr/dict/words"
-
-/* Define this if you have (and want to use) the Perl-Compatible Regular
- * Expression (PCRE) library. */
-#define HAVE_PCRE
-
-@BOTTOM@
-
-/*----- That's all, folks -------------------------------------------------*/
-
-#ifdef __cplusplus
- }
-#endif
-
-#endif
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([