[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf-2.69c released [beta]
From: |
Bob Friesenhahn |
Subject: |
Re: autoconf-2.69c released [beta] |
Date: |
Tue, 29 Sep 2020 15:56:43 -0500 (CDT) |
User-agent: |
Alpine 2.20 (GSO 67 2015-01-07) |
On Sun, 27 Sep 2020, Gavin Smith wrote:
That should be:
if test "$ac_cv_have_C__func__" != 'yes' ; then
AC_CACHE_CHECK(for C compiler __func__ support, ac_cv_have_C__func__,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
[[const char *func=__func__;
return (func != 0 ? 0 : 1);
]])],
[ac_cv_have_C__func__='yes'],
[ac_cv_have_C__func__='no']])])
if test "$ac_cv_have_C__func__" = 'yes' ; then
AC_DEFINE(HAS_C__func__,1,Define if C compiler supports __func__)
fi
fi
Gavin, thanks very much for your help. Just in case someone reads
this discussion later, I found that there was a small syntax error in
the above. The following is what finally worked for me (a small
change after ac_cv_have_C__func__='no'):
# Test for C compiler __func__ support
if test "$ac_cv_have_C__func__" != 'yes' ; then
AC_CACHE_CHECK(for C compiler __func__ support, ac_cv_have_C__func__,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
[[const char *func=__func__;
return (func != 0 ? 0 : 1);
]])],
[ac_cv_have_C__func__='yes'],
[ac_cv_have_C__func__='no'])])
if test "$ac_cv_have_C__func__" = 'yes' ; then
AC_DEFINE(HAS_C__func__,1,Define if C compiler supports __func__)
fi
fi
I now have the GraphicsMagick configure script updated and apparently
working fine locally with Autoconf 2.69c.
There are still some deprecation warnings from an included m4 module.
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
- Re: autoconf-2.69c released [beta], (continued)
- Re: autoconf-2.69c released [beta], Bob Friesenhahn, 2020/09/27
- Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta], Bob Friesenhahn, 2020/09/27
- Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta],
Bob Friesenhahn <=
- Re: autoconf-2.69c released [beta], Russ Allbery, 2020/09/29
- Re: autoconf-2.69c released [beta], Zack Weinberg, 2020/09/30
Re: autoconf-2.69c released [beta], Zack Weinberg, 2020/09/30
Message not available
- Message not available
- Re: autoconf-2.69c released [beta], Bruno Haible, 2020/09/27
- Re: autoconf-2.69c released [beta], Paul Eggert, 2020/09/27
- Re: autoconf-2.69c released [beta], Bruno Haible, 2020/09/27
- Re: autoconf-2.69c released [beta], Zack Weinberg, 2020/09/30
- Re: autoconf-2.69c released [beta], Eric Blake, 2020/09/30