AIX: correct DSOFLAGS and LDFLAGS for shared library support.
@@ -44,6 +44,15 @@ AS_IF([test x$enable_shared != xno], [
DSO="\$(CC)"
DSOXX="\$(CXX)"
DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
+ ], [aix*], [
+ LIBCUPS="lib$cupsbase.so.2"
+ AS_IF([test "x$cupsimagebase" != x], [
+ LIBCUPSIMAGE="lib$cupsimagebase.so.2"
+ ])
+ DSO="\$(CC)"
+ DSOXX="\$(CXX)"
+ DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`
+ LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm"
], [*], [
AC_MSG_NOTICE([Warning: Shared libraries may not work, trying -shared option.])
LIBCUPS="lib$cupsbase.so.2"
