--with-mps detection failed when building with --without-x: config.log: configure:28292: checking for mps_arena_create in -lmps configure:28317: gcc -o conftest -g3 -O2 conftest.c -lmps -lsqlite3 >&5 /usr/local/bin/ld: /usr/local/lib/libmps.a(mps.o): in function `PThreadextModuleInit': /work/mps-release-1.118.0/code/pthrdext.c:139:(.text+0x499b): undefined reference to `sem_init' /usr/local/bin/ld: /usr/local/lib/libmps.a(mps.o): in function `LockInit': /work/mps-release-1.118.0/code/lockix.c:88:(.text+0x404c3): undefined reference to `pthread_mutexattr_init' /usr/local/bin/ld: /work/mps-release-1.118.0/code/lockix.c:90:(.text+0x404d8): undefined reference to `pthread_mutexattr_settype' /usr/local/bin/ld: /work/mps-release-1.118.0/code/lockix.c:94:(.text+0x404fc): undefined reference to `pthread_mutexattr_destroy' /usr/local/bin/ld: /work/mps-release-1.118.0/code/lockix.c:94:(.text+0x405bd): undefined reference to `pthread_mutexattr_destroy' ...