From: Matt Birkholz Date: Thu, 31 Oct 2013 19:02:10 +0000 (-0700) Subject: mhash: Simplify configure.ac. X-Git-Tag: release-9.2.0~56 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=60dd5691a47b15e45fc1a46ceabe71c740280c39;p=mit-scheme.git mhash: Simplify configure.ac. --- diff --git a/src/mhash/configure.ac b/src/mhash/configure.ac index 14f2b2db2..70109ab1c 100644 --- a/src/mhash/configure.ac +++ b/src/mhash/configure.ac @@ -57,26 +57,15 @@ USA. */]) -AC_ARG_WITH([mhash], - AS_HELP_STRING([--with-mhash], - [Use mhash library if available [[yes]]])) -: ${with_mhash='yes'} - -if test "${with_mhash}" != no; then - if test "${with_mhash}" != yes; then - CPPFLAGS="${CPPFLAGS} -I${with_mhash}/include" - LDFLAGS="${LDFLAGS} -L${with_mhash}/lib" - fi - AC_CHECK_HEADER([mhash.h],[ - AC_DEFINE([HAVE_MHASH_H], [1], - [Define to 1 if you have the header file.]) - AC_CHECK_LIB([mhash], [mhash_count],[ - AC_DEFINE([HAVE_LIBMHASH], [1], - [Define to 1 if you have the `mhash' library (-lmhash).]) - LIBS="-lmhash" - ]) +AC_CHECK_HEADER([mhash.h],[ + AC_DEFINE([HAVE_MHASH_H], [1], + [Define to 1 if you have the header file.]) + AC_CHECK_LIB([mhash], [mhash_count],[ + AC_DEFINE([HAVE_LIBMHASH], [1], + [Define to 1 if you have the `mhash' library (-lmhash).]) + LIBS="-lmhash" ]) -fi +],[AC_MSG_ERROR([Header file not found.])]) AC_SUBST([LIBS]) AC_SUBST([CPPFLAGS])