From: David Levine Date: Tue, 24 Dec 2013 15:02:15 +0000 (-0600) Subject: Have configure print out what it detects for the program to detect X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/44fe0f6d35751a9b6ce98a83c21cfe09189a0d67?hp=49d74588c43b995477ef4c679489385eeacd7ca3 Have configure print out what it detects for the program to detect the MIME type string for a file. --- diff --git a/configure.ac b/configure.ac index 3cefd662..6d140bc2 100644 --- a/configure.ac +++ b/configure.ac @@ -328,14 +328,14 @@ dnl --------------------------------------------- dnl CHECK FOR PROGRAM TO PROVIDE MIME TYPE STRING dnl --------------------------------------------- AS_IF([file --mime "${srcdir}"/configure >/dev/null 2>&1], - [nmh_mimetypeproc='"file --mime"']) -if test -n "$nmh_mimetypeproc"; then - AS_IF([file --brief --mime "${srcdir}"/configure >/dev/null 2>&1], - [nmh_mimetypeproc='"file --brief --mime"']) -fi + [AS_IF([file --brief --mime "${srcdir}"/configure >/dev/null 2>&1], + [nmh_mimetypeproc='"file --brief --mime"'], + [nmh_mimetypeproc='"file --mime"'])]) AS_CASE([$nmh_mimetypeproc], [?*], [AC_DEFINE_UNQUOTED([MIMETYPEPROC], [$nmh_mimetypeproc], [Program, with arguments, that provides MIME type string.])]) +AS_ECHO_N(["AS_ESCAPE([checking program to provide MIME type string ... ])"]) +AS_ECHO(["AS_ESCAPE([$nmh_mimetypeproc], [""])"]) dnl ------------------ dnl CHECK HEADER FILES