2004-02-06 Moritz Schulte <mo@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Fri, 6 Feb 2004 15:45:44 +0000 (15:45 +0000)
committerMoritz Schulte <mo@g10code.com>
Fri, 6 Feb 2004 15:45:44 +0000 (15:45 +0000)
* configure.ac: Fix funopen replacement mechanism.

ChangeLog
configure.ac

index 12d4613ebbc6483f4dcb951f81962c882370d27c..74c4d34d8b574d763bae83f2d52d35bb4c03ef3d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-06  Moritz Schulte  <mo@g10code.com>
+
+       * configure.ac: Fix funopen replacement mechanism.
+
 2004-01-31  Marcus Brinkmann  <marcus@g10code.de>
 
        * configure.ac: Add invocation of AC_SYS_LARGEFILE, AC_TYPE_OFF_T
index c23c478d71e6685e3710d2af88b7f4f39d7f8551..393332bca7424434f5444c50cdd3d209f8d1f343 100644 (file)
@@ -281,10 +281,11 @@ if test "$GPGSM" != "no"; then
   AC_CHECK_FUNCS(funopen)
   if test $ac_cv_func_funopen != yes; then
     # No funopen but we can implement that in terms of fopencookie.
-    AC_CHECK_FUNCS(fopencookie, AC_LIBOBJ(funopen),
-                   AC_MSG_ERROR([[
-No implementation of fopencookie or funopen available.
-]]))
+    if test $ac_cv_func_fopencookie = yes; then
+        AC_LIBOBJ([funopen])
+    else
+        AC_MSG_ERROR([No implementation of fopencookie or funopen available])
+    fi
   fi
 
   AC_REPLACE_FUNCS(isascii)