Commit 544d7a851 for imagemagick.org

commit 544d7a851399965b0e6d8919f8b15b06ef6e807a
Author: kui8shi <gbiifvrc517@gmail.com>
Date:   Fri Dec 19 00:02:46 2025 +0900

    Fix autoconf syntax errors (configure.ac) (#8488)

diff --git a/configure.ac b/configure.ac
index 9c499b073..7f0c77010 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1047,18 +1047,18 @@ AC_CHECK_SIZEOF([void *])
 ########
 AC_MSG_CHECKING([whether our compiler supports __func__])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
- [{ const char *func = __func__; return(func != 0 ? 0 : 1); }],
+ [{ const char *func = __func__; return(func != 0 ? 0 : 1); }])],
  AC_MSG_RESULT([yes]),
  AC_MSG_RESULT([no])
  AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
- AC_COMPILE_IFELSE([],
-   [{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
+   [{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }])],
    AC_MSG_RESULT([yes])
    AC_DEFINE(__func__, __FUNCTION__,
      [Define to appropriate substitute if compiler does not have __func__]),
    AC_MSG_RESULT([no])
    AC_DEFINE(__func__, __FILE__,
-     [Define to appropriate substitute if compiler does not have __func__])))])
+     [Define to appropriate substitute if compiler does not have __func__])))

 ########
 #
@@ -1455,7 +1455,7 @@ if test "$enable_ccmalloc" = 'yes'; then
         OLIBS="$LIBS"
         # Assume that gcc is used with ccmalloc.
         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
-        AC_CHECK_LIB([ccmalloc],[ccmalloc_malloc],[CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"],[,-ldl])
+        AC_CHECK_LIB([ccmalloc],[ccmalloc_malloc],[CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"],[],[-ldl])
         if test -n "$CCMALLOC_LIBS"; then
             LIBS="$OLIBS"
             LIBS="$LIBS $CCMALLOC_LIBS"
@@ -2274,7 +2274,7 @@ if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
 else
     AC_DEFINE_UNQUOTED([MAGICK_FONT_PATH],["$with_fontpath"],[Define to prepend to default font search path.])
 fi
-if test "$with_fontpath=" != ''; then
+if test "$with_fontpath" != ''; then
     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
 fi