Index: cups-config.in =================================================================== --- cups-config.in (revision 9144) +++ cups-config.in (working copy) @@ -4,7 +4,7 @@ # # CUPS configuration utility. # -# Copyright 2007-2008 by Apple Inc. +# Copyright 2007-2010 by Apple Inc. # Copyright 2001-2006 by Easy Software Products, all rights reserved. # # These coded instructions, statements, and computer programs are the @@ -113,12 +113,12 @@ ;; --libs) if test $static = no; then - libs="-lcups $LIBS"; + libs="@EXTLINKCUPS@ $LIBS"; if test $image = yes; then - libs="-lcupsimage $libs" + libs="@EXTLINKCUPSIMAGE@ $libs" fi if test $driver = yes; then - libs="-lcupsdriver $libs" + libs="@EXTLINKCUPSDRIVER@ $libs" fi else libs="$libdir/libcups.a $LIBS"; Index: config-scripts/cups-sharedlibs.m4 =================================================================== --- config-scripts/cups-sharedlibs.m4 (revision 9144) +++ config-scripts/cups-sharedlibs.m4 (working copy) @@ -158,16 +158,31 @@ if test x$enable_shared = xno; then LINKCUPS="../cups/libcups.a" LINKCUPSIMAGE="../filter/libcupsimage.a" + + EXTLINKCUPS="-lcups" + EXTLINKCUPSDRIVER="-lcupsdriver" + EXTLINKCUPSIMAGE="-lcupsimage" else if test $uname = AIX; then LINKCUPS="-lcups_s" LINKCUPSIMAGE="-lcupsimage_s" + + EXTLINKCUPS="-lcups_s" + EXTLINKCUPSDRIVER="-lcupsdriver_s" + EXTLINKCUPSIMAGE="-lcupsimage_s" else LINKCUPS="-lcups" LINKCUPSIMAGE="-lcupsimage" + + EXTLINKCUPS="-lcups" + EXTLINKCUPSDRIVER="-lcupsdriver" + EXTLINKCUPSIMAGE="-lcupsimage" fi fi +AC_SUBST(EXTLINKCUPS) +AC_SUBST(EXTLINKCUPSDRIVER) +AC_SUBST(EXTLINKCUPSIMAGE) AC_SUBST(LINKCUPS) AC_SUBST(LINKCUPSIMAGE) Index: CHANGES.txt =================================================================== --- CHANGES.txt (revision 9152) +++ CHANGES.txt (working copy) @@ -11,6 +11,8 @@ memory (STR #3577) - Security: CUPS could overwrite files as root in directories owned or writable by non-root users (STR #3510) + - The cups-config utility did not return the correct linker options on + AIX (STR #3587) - Fixed some IPP conformance issues with the scheduler's ippget-event-life, operations-supported, output-bin, and sides attributes (STR #3554)