SDL2 doesn't build on Manjaro

Hello, I can’t build SDL2 on my Manjaro system.

After I type ./configure I get the following output:

configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for windres... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 11789: test: too many arguments
checking for an ANSI C-conforming const... no
checking for inline... no
checking for working volatile... no
checking for GCC -MMD -MT option... no
checking for linker option --no-undefined... no
checking for linker option --dynamicbase... no
checking for linker option --nxcompat... no
checking for linker option --high-entropy-va... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking stdio.h usability... no
checking stdio.h presence... no
checking for stdio.h... no
checking for stdlib.h... (cached) yes
checking stddef.h usability... no
checking stddef.h presence... no
checking for stddef.h... no
checking stdarg.h usability... no
checking stdarg.h presence... no
checking for stdarg.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for memory.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking wchar.h usability... no
checking wchar.h presence... no
checking for wchar.h... no
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking limits.h usability... no
checking limits.h presence... no
checking for limits.h... no
checking ctype.h usability... no
checking ctype.h presence... no
checking for ctype.h... no
checking math.h usability... no
checking math.h presence... no
checking for math.h... no
checking float.h usability... no
checking float.h presence... no
checking for float.h... no
checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
checking signal.h usability... no
checking signal.h presence... no
checking for signal.h... no
checking for size_t... no
checking for M_PI in math.h... no
checking for working alloca.h... no
checking for alloca... no
checking whether `alloca.c' needs Cray hooks... no
checking stack direction for C alloca... -1
checking for working memcmp... no
checking for working strtod... no
checking for pow... no
checking for pow in -lm... no
configure: WARNING: cannot find library containing definition of pow
checking for mprotect... no
checking for malloc... no
checking for calloc... no
checking for realloc... no
checking for free... no
checking for getenv... no
checking for setenv... no
checking for putenv... no
checking for unsetenv... no
checking for qsort... no
checking for abs... no
checking for bcopy... no
checking for memset... no
checking for memcpy... no
checking for memmove... no
checking for wcslen... no
checking for wcscmp... no
checking for strlen... no
checking for strlcpy... no
checking for strlcat... no
checking for _strrev... no
checking for _strupr... no
checking for _strlwr... no
checking for strchr... no
checking for strrchr... no
checking for strstr... no
checking for itoa... no
checking for _ltoa... no
checking for _uitoa... no
checking for _ultoa... no
checking for strtol... no
checking for strtoul... no
checking for _i64toa... no
checking for _ui64toa... no
checking for strtoll... no
checking for strtoull... no
checking for atoi... no
checking for atof... no
checking for strcmp... no
checking for strncmp... no
checking for _stricmp... no
checking for strcasecmp... no
checking for _strnicmp... no
checking for strncasecmp... no
checking for vsscanf... no
checking for vsnprintf... no
checking for fopen64... no
checking for fseeko... no
checking for fseeko64... no
checking for sigaction... no
checking for setjmp... no
checking for nanosleep... no
checking for sysconf... no
checking for sysctlbyname... no
checking for getauxval... no
checking for poll... no
checking for _Exit... no
checking for pow in -lm... (cached) no
checking for acos... no
checking for acosf... no
checking for asin... no
checking for asinf... no
checking for atan... no
checking for atanf... no
checking for atan2... no
checking for atan2f... no
checking for ceil... no
checking for ceilf... no
checking for copysign... no
checking for copysignf... no
checking for cos... no
checking for cosf... no
checking for exp... no
checking for expf... no
checking for fabs... no
checking for fabsf... no
checking for floor... no
checking for floorf... no
checking for fmod... no
checking for fmodf... no
checking for log... no
checking for logf... no
checking for log10... no
checking for log10f... no
checking for pow... (cached) no
checking for powf... no
checking for scalbn... no
checking for scalbnf... no
checking for sin... no
checking for sinf... no
checking for sqrt... no
checking for sqrtf... no
checking for tan... no
checking for tanf... no
checking for iconv_open in -liconv... no
checking for iconv... no
checking for struct sigaction.sa_sigaction... no
checking libunwind.h usability... no
checking libunwind.h presence... no
checking for libunwind.h... no
checking for GCC builtin atomic operations... no
checking for GCC -mmmx option... no
checking for GCC -m3dnow option... no
checking for GCC -msse option... no
checking for GCC -msse2 option... no
checking for GCC -msse3 option... no
checking immintrin.h usability... no
checking immintrin.h presence... no
checking for immintrin.h... no
checking for Altivec with GCC altivec.h and -maltivec option... no
checking for Altivec with GCC -maltivec option... no
checking for Altivec with GCC altivec.h and -faltivec option... no
checking for Altivec with GCC -faltivec option... no
checking for GCC -Wall option... no
checking for GCC -fno-strict-aliasing option... no
checking for GCC -fvisibility=hidden option... no
checking for GCC -Wdeclaration-after-statement option... no
checking for dlopen... no
checking for OSS audio support... no
checking for ALSA CFLAGS... 
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.11... not present.
checking for snd_ctl_open in -lasound... no
checking for PULSEAUDIO... yes
configure: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading
checking for JACK... yes
configure: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading
checking for artsc-config... no
checking for esd-config... no
checking for ESD - version >= 0.2.8... no
*** The esd-config script installed by ESD could not be found
*** If ESD was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the ESD_CONFIG environment variable to the
*** full path to esd-config.
checking audio/audiolib.h usability... no
checking audio/audiolib.h presence... no
checking for audio/audiolib.h... no
checking for AuOpenServer in -laudio... no
checking for NAS audio support... no
checking sndio.h usability... no
checking sndio.h presence... no
checking for sndio.h... no
checking for sio_open in -lsndio... no
checking for sndio audio support... no
checking samplerate.h usability... no
checking samplerate.h presence... no
checking for samplerate.h... no
checking for RPI... no
checking for Raspberry Pi... no
checking for X... libraries /usr/lib, headers /usr/include
checking whether -R must be followed by a space... neither works
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... no
checking for gethostbyname in -lbsd... no
checking for connect... no
checking for connect in -lsocket... no
checking for remove... no
checking for remove in -lposix... no
checking for shmat... no
checking for shmat in -lipc... no
checking for IceConnectionNumber in -lICE... no
checking for X11/extensions/Xext.h... no
configure: error: 
*** Missing Xext.h, maybe you need to install the libxext-dev package?

*** Missing Xext.h, maybe you need to install the libxext-dev package?

well it says that although I have it installed. I don’t know why it can’t find it and this isn’t the only header which he can’t find.

OS: Manjaro 19.0.1 Kyria
Kernel: x86_64 Linux 4.19.106-1-MANJARO
SDL: SDL2-2.0.10