I was trying to compile apache under AIX 6.1 (gcc/g++ 4.2.0) with some shared modules but they were built static (ie: libmod_cache.a) It seems to be due to the srclib/apr/configure script in which many test are done using syntax like this : case $host_os in aix[4-9]*) ... aix5*) ... and so on. It works under AIX 5.3 because the configure script shows : checking build system type... powerpc-ibm-aix5.3.0.0 checking host system type... powerpc-ibm-aix5.3.0.0 checking target system type... powerpc-ibm-aix5.3.0.0 Configuring APR library Platform: powerpc-ibm-aix5.3.0.0 but with AIX 6.1 it looks like this : checking build system type... rs6000-ibm-aix checking host system type... rs6000-ibm-aix checking target system type... rs6000-ibm-aix Configuring APR library Platform: rs6000-ibm-aix Here is my env : export MAKE=gmake export OBJECT_MODE=64 export CFLAGS='-maix64 -mcpu=powerpc64 -O2' export CPPFLAGS='-maix64 -mcpu=powerpc64 -I/opt/freeware/include' export CXXFLAGS='-maix64 -mcpu=powerpc64 -O2' export LDFLAGS='-maix64 -mcpu=powerpc64 -L/usr/lib -L/opt/freeware/lib -Wl,-blibpath:LIBDIR:/usr/vac/lib:/usr/lib/threads:/usr/lib:/lib:/opt/freeware/lib:/apache/modules:/apache/lib' export PATH=/usr/bin:/usr/sbin:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/opt/freeware/bin:/usr/vac/bin:/usr/linux/bin export CC=gcc export CXX=g++ export CONFIG_SHELL=/usr/bin/bash ./configure --prefix=/apache \ --disable-autoindex --disable-asis \ --disable-actions --disable-cgid --disable-imagemap \ --disable-status --disable-userdir --enable-so --with-mpm=prefork \ --disable-include --disable-auth-basic \ --disable-authn-file --disable-authn-default --disable-authz-groupfile \ --disable-authz-user --disable-filter --disable-info \ --enable-mods-shared='ssl cache mem_cache deflate rewrite'
See work-around documented at the end of https://issues.apache.org/bugzilla/show_bug.cgi?id=47692 (grabbing config.guess that recognizes that level of AIX).
another workaround for 2.2.x is: export ac_cv_build="powerpc-ibm-aix5.3.0.0" export ac_cv_build_alias="powerpc-ibm-aix5.3.0.0"
2.2 and later have updated config.*