### ImageMagick version

7.1.1-30

### Operating system

Linux

### Operating system, version and so on

Arch Linux x86_64

### Description

WMF is no longer detected at build time. The config log shows:
```
configure:33925: checking for wmf_lite_create in -lwmflite
configure:33947: gcc -o conftest -I/usr/include/webp -I/usr/include/webp  -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/libraw -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi  -I/usr/include/OpenEXR -pthread -I/usr/include/Imath  -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/openjpeg-2.5  -I/usr/include/webp -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -pthread     -fopenmp -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/imagemagick/src=/usr/src/debug/imagemagick -flto=auto -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16     -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto  conftest.c -lwmflite  -ljpeg -ljbig -lltdl  -lz -lzip -lXext -lXt  -lSM -lICE -lX11  -lbz2 -lm  -lpthread -lbz2 -ljpeg >&5
conftest.c:153:1: error: unknown type name 'namespace'
  153 | namespace conftest {
      | ^~~~~~~~~
conftest.c:153:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  153 | namespace conftest {
      |                    ^
conftest.c: In function 'main':
conftest.c:159:8: error: 'conftest' undeclared (first use in this function)
  159 | return conftest::wmf_lite_create ();
      |        ^~~~~~~~
conftest.c:159:8: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:159:16: error: expected ';' before '::' token
  159 | return conftest::wmf_lite_create ();
      |                ^~
      |                ;
configure:33947: $? = 1
```

### Steps to Reproduce

Build 7.1.1-30 with `--with-wmf`

### Images

_No response_
WMF no longer detected
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : WMF no longer detected
Issue date:

--- start body ---
### ImageMagick version

7.1.1-30

### Operating system

Linux

### Operating system, version and so on

Arch Linux x86_64

### Description

WMF is no longer detected at build time. The config log shows:
```
configure:33925: checking for wmf_lite_create in -lwmflite
configure:33947: gcc -o conftest -I/usr/include/webp -I/usr/include/webp  -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/pixman-1 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/libraw -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi  -I/usr/include/OpenEXR -pthread -I/usr/include/Imath  -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/openjpeg-2.5  -I/usr/include/webp -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -pthread     -fopenmp -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/imagemagick/src=/usr/src/debug/imagemagick -flto=auto -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16     -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto  conftest.c -lwmflite  -ljpeg -ljbig -lltdl  -lz -lzip -lXext -lXt  -lSM -lICE -lX11  -lbz2 -lm  -lpthread -lbz2 -ljpeg >&5
conftest.c:153:1: error: unknown type name 'namespace'
  153 | namespace conftest {
      | ^~~~~~~~~
conftest.c:153:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  153 | namespace conftest {
      |                    ^
conftest.c: In function 'main':
conftest.c:159:8: error: 'conftest' undeclared (first use in this function)
  159 | return conftest::wmf_lite_create ();
      |        ^~~~~~~~
conftest.c:159:8: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:159:16: error: expected ';' before '::' token
  159 | return conftest::wmf_lite_create ();
      |                ^~
      |                ;
configure:33947: $? = 1
```

### Steps to Reproduce

Build 7.1.1-30 with `--with-wmf`

### Images

_No response_
--- end body ---
