I've got the answer to garbled
Iwas having the same problem. The solution was easy. Just use --with-apxs=/full/path/to/apxs.
Before you decide the full path, do a "find / -name apxs" to see how many different ones you have.
I download the the apache tar file to /usr/local/src and it unzipped to /usr/local/src/apace_1.3.19. There is a copy of apxs under this install but it's not the one you want to reference. The one I needed to specify was /usr/local/apache/bin. This is also the directory you want to use for configuration and starting/stopping the server.
Let me know if it doesn't work for you.
re: apxs already installed
Mine was installed and working properly also, but I think I was referencing the wrong directory.
I am having the same problem (HELP)
I got the same problem and I have apxs installed in the right place and I told the configuration that it was there. I am following a guide to install php and the only thing I did different from the guide was that I didn't install mysql from scratch because the server had one already installed at a different location though. I don't know if that could be the problem. I would really appreciate it if someone could help me. Thanks.