]> sjero.net Git - wget/commitdiff
[svn] Use AC_MSG_NOTICE instead of echo.
authorhniksic <devnull@localhost>
Tue, 4 Nov 2003 00:08:32 +0000 (16:08 -0800)
committerhniksic <devnull@localhost>
Tue, 4 Nov 2003 00:08:32 +0000 (16:08 -0800)
ChangeLog
configure.in

index 0fe079647f48eab8496e242d71572653a12a8244..3869a14b5c1b2582aab25287d0515874461adc85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * configure.in: Also check whether #include <md5.h> works before
        deciding to use Solaris libmd5.
 
+       * configure.in: Use AC_MSG_NOTICE instead of echo.  Use
+       AC_MSG_ERROR for fatal errors.
+
 2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * configure.in: Look for nanosleep in -lrt and -lposix4, which is
index 21a4cebb73e1dd2f6064b250f84b9a7f19dce477..ed0b8180c4fbdf71e332b2ef57175d3dcd46c9d0 100644 (file)
@@ -37,7 +37,7 @@ dnl
 dnl What version of Wget are we building?
 dnl
 VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
-echo "configuring for GNU Wget $VERSION"
+AC_MSG_NOTICE([configuring for GNU Wget $VERSION])
 AC_SUBST(VERSION)
 PACKAGE=wget
 AC_SUBST(PACKAGE)
@@ -407,9 +407,7 @@ main(){return 0;}
     dnl If linking with SSL was forced rather than auto-detected, then
     dnl bail out if SSL failed.
     if test x"$wget_force_ssl" = x"yes"; then
-      exec >&2
-      echo "ERROR: Failed to find OpenSSL libraries."
-      exit 2
+      AC_MSG_ERROR([failed to find OpenSSL libraries], 2)
     fi
   fi
 
@@ -440,11 +438,11 @@ then
     AC_CHECK_LIB(md5, md5_calc, [
       dnl There are programs that insert bogus <md5.h> in the include
       dnl path.  That makes the system md5 library is useless to us.
-      AC_TRY_CPP([#include <md5.h>
-                 ], [
+      AC_CHECK_HEADERS([md5.h], [
         AC_DEFINE(HAVE_SOLARIS_MD5)
         LIBS="-lmd5 $LIBS"
         found_md5=yes
+        AC_MSG_NOTICE([using Solaris MD5 implementation])
       ])
     ])
   fi
@@ -455,14 +453,16 @@ then
     if test x"$ssl_success" = xyes; then
       AC_DEFINE(HAVE_OPENSSL_MD5)
       found_md5=yes
+      AC_MSG_NOTICE([using OpenSSL MD5 implementation])
     fi
   fi
 
   dnl If none of the above worked, use the one we ship with Wget.
   if test x"$found_md5" = xno; then
     AC_DEFINE(HAVE_BUILTIN_MD5)
-    found_md5=yes
     MD5_OBJ="$MD5_OBJ gnu-md5\$o"
+    found_md5=yes
+    AC_MSG_NOTICE([using GNU MD5 implementation])
   fi
 fi
 AC_DEFINE(HAVE_MD5)