gnupg/m4 (ChangeLog libcurl.m4 readline.m4)
cvs user dshaw
cvs at cvs.gnupg.org
Thu Dec 23 17:07:04 CET 2004
Date: Thursday, December 23, 2004 @ 17:12:13
Author: dshaw
Path: /cvs/gnupg/gnupg/m4
Modified: ChangeLog libcurl.m4 readline.m4
* readline.m4: Make sure that readline is modern enough to understand
rl_catch_signals.
* libcurl.m4: Don't require curl-config to be present since it seems some
binary packages don't include it. Allow users to specify LIBCURL and
LIBCURL_INCLUDES for us.
-------------+
ChangeLog | 9 +++++++++
libcurl.m4 | 28 ++++++++++++++++++++--------
readline.m4 | 5 ++++-
3 files changed, 33 insertions(+), 9 deletions(-)
Index: gnupg/m4/ChangeLog
diff -u gnupg/m4/ChangeLog:1.6 gnupg/m4/ChangeLog:1.7
--- gnupg/m4/ChangeLog:1.6 Wed Dec 22 18:03:27 2004
+++ gnupg/m4/ChangeLog Thu Dec 23 17:12:13 2004
@@ -1,3 +1,12 @@
+2004-12-23 David Shaw <dshaw at jabberwocky.com>
+
+ * readline.m4: Make sure that readline is modern enough to
+ understand rl_catch_signals.
+
+ * libcurl.m4: Don't require curl-config to be present since it
+ seems some binary packages don't include it. Allow users to
+ specify LIBCURL and LIBCURL_INCLUDES for us.
+
2004-12-22 David Shaw <dshaw at jabberwocky.com>
* libcurl.m4: Be much more strict with libcurl by trying to
Index: gnupg/m4/libcurl.m4
diff -u gnupg/m4/libcurl.m4:1.2 gnupg/m4/libcurl.m4:1.3
--- gnupg/m4/libcurl.m4:1.2 Wed Dec 22 18:03:27 2004
+++ gnupg/m4/libcurl.m4 Thu Dec 23 17:12:13 2004
@@ -24,19 +24,28 @@
LDFLAGS="${LDFLAGS} -L$withval/lib"
fi
- AC_MSG_CHECKING([for libcurl])
+ AC_MSG_CHECKING([for curl-config])
if eval curl-config --version 2>/dev/null >/dev/null; then
- AC_SUBST([LIBCURL_INCLUDES],[`curl-config --cflags`])
- AC_SUBST([LIBCURL],[`curl-config --libs`])
- have_libcurl=yes
+ if test x"$LIBCURL_INCLUDES" = "x" ; then
+ LIBCURL_INCLUDES=`curl-config --cflags`
+ fi
+ if test x"$LIBCURL" = "x" ; then
+ LIBCURL=`curl-config --libs`
+ fi
+ _have_config=yes
else
- have_libcurl=no
+ _have_config=no
fi
- AC_MSG_RESULT([$have_libcurl])
+ AC_MSG_RESULT([$_have_config])
+
+ # we didn't find curl-config, so let's see if the user-supplied
+ # link line (or failing that, "-lcurl") is enough.
+
+ LIBCURL=${LIBCURL-"-lcurl"}
- AC_MSG_CHECKING([whether libcurl is modern enough])
+ AC_MSG_CHECKING([whether libcurl is usable])
_libcurl_save_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $LIBCURL_INCLUDES"
@@ -53,7 +62,7 @@
x=CURLOPT_ERRORBUFFER;
x=CURLOPT_STDERR;
x=CURLOPT_VERBOSE;
-]),,have_libcurl=no)
+]),have_libcurl=yes,have_libcurl=no)
CPPFLAGS=$_libcurl_save_cppflags
LDFLAGS=$_libcurl_save_ldflags
@@ -63,9 +72,12 @@
if test $have_libcurl = yes ; then
AC_DEFINE(HAVE_LIBCURL,1,
[Define to 1 if you have a fully functional curl library.])
+ AC_SUBST(LIBCURL_INCLUDES)
+ AC_SUBST(LIBCURL)
fi
unset _do_libcurl
+ unset _have_config
unset _libcurl_save_cppflags
unset _libcurl_save_ldflags
fi
Index: gnupg/m4/readline.m4
diff -u gnupg/m4/readline.m4:1.1 gnupg/m4/readline.m4:1.2
--- gnupg/m4/readline.m4:1.1 Sat Dec 18 23:23:49 2004
+++ gnupg/m4/readline.m4 Thu Dec 23 17:12:13 2004
@@ -34,7 +34,10 @@
#include <stdio.h>
#include <readline/readline.h>
#include <readline/history.h>
-],[add_history("foobar");]),_found_readline=yes,_found_readline=no)
+],[
+add_history("foobar");
+rl_catch_signals=0;
+]),_found_readline=yes,_found_readline=no)
AC_MSG_RESULT([$_found_readline])
More information about the Gnupg-commits
mailing list