+++ /dev/null
-dnl -*-m4-*-
-dnl
-dnl $Id: configure.in,v 1.6 2004/04/08 01:36:19 mdw Exp $
-dnl
-dnl Configuration script
-dnl
-dnl (c) 2001 Mark Wooding
-dnl
-
-dnl ----- Licensing notice --------------------------------------------------
-dnl
-dnl This file is part of Anag: a simple wordgame helper.
-dnl
-dnl Anag is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl Anag is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with Anag; if not, write to the Free Software Foundation,
-dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AC_INIT(anag.c)
-AM_INIT_AUTOMAKE(anag, 1.1.0)
-AM_CONFIG_HEADER(config.h)
-AC_PROG_CC
-mdw_GCC_FLAGS
-
-AC_CHECK_PROGS([JAVAC], [javac jikes], [none])
-if test "$JAVAC" = "none"; then
- AC_MSG_WARN([No Java compiler found])
- JARFILES=""
-else
- JARFILES="anag.jar"
-fi
-AC_SUBST([JARFILES])
-
-AC_CHECK_PROGS([WISH], [wish wish8], [none])
-if test "$WISH" = "none"; then
- AC_MSG_WARN([No Tcl/Tk interpreter found])
- TKPROGS=""
-else
- TKPROGS="anag-gui"
-fi
-AC_SUBST([TKPROGS])
-
-EXTNODE=""
-AC_CHECK_FUNCS([regcomp])
-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],
-[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([
- ANAG=mdw_PATH([${bindir}])/mdw_PROG([anag])
-])
-
-AC_SUBST([ANAG])
-AC_OUTPUT(Makefile anag-gui)
-
-dnl ----- That's all, folks -------------------------------------------------