diff options
author | Michael R Sweet <michaelrsweet@gmail.com> | 2017-07-17 18:23:00 -0400 |
---|---|---|
committer | Michael R Sweet <michaelrsweet@gmail.com> | 2017-07-17 18:23:00 -0400 |
commit | a621d151e71d062f7ff927223db970f44bb8b43d (patch) | |
tree | 2512a7a225ea94add90bd5a8c95cd041a923a501 /config-scripts | |
parent | 3a1e6b10c54efdc7f33bd084cb6386c86a0f0743 (diff) | |
download | cups-a621d151e71d062f7ff927223db970f44bb8b43d.tar.gz |
Update libtool support to include --mode=foo stuff - surprise, libtool changed in
incompatible ways again... (Issue #5050)
Diffstat (limited to 'config-scripts')
-rw-r--r-- | config-scripts/cups-libtool.m4 | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/config-scripts/cups-libtool.m4 b/config-scripts/cups-libtool.m4 index b85e8b7c2..f376a028a 100644 --- a/config-scripts/cups-libtool.m4 +++ b/config-scripts/cups-libtool.m4 @@ -1,7 +1,7 @@ dnl dnl Libtool stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2017 by Apple Inc. dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -11,7 +11,7 @@ dnl which should have been included with this file. If this file is dnl missing or damaged, see the license at "http://www.cups.org/". dnl -AC_ARG_ENABLE(libtool_unsupported, [ --enable-libtool-unsupported +AC_ARG_ENABLE(libtool_unsupported, [ --enable-libtool-unsupported=/path/to/libtool build with libtool (UNSUPPORTED!)], [if test x$enable_libtool_unsupported != xno; then if test x$enable_libtool_unsupported == xyes; then @@ -25,12 +25,28 @@ AC_ARG_ENABLE(libtool_unsupported, [ --enable-libtool-unsupported LIBTOOL="" fi]) -AC_SUBST(LIBTOOL) - if test x$LIBTOOL != x; then LIBCUPS="libcups.la" + LIBCUPSCGI="libcupscgi.la" LIBCUPSIMAGE="libcupsimage.la" + LIBCUPSMIME="libcupsmime.la" + LIBCUPSPPDC="libcupsppdc.la" + + LIBTOOL_COMPILE="\$(LIBTOOL) --mode=compile" + LINKCUPS="../cups/\$(LIBCUPS)" LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)" - DSO="\$(CC)" + + DSO="\$(LIBTOOL) --mode=link ${CC}" + LD_CC="\$(LIBTOOL) --mode=link ${CC}" + LD_CXX="\$(LIBTOOL) --mode=link ${CXX}" +else + LIBTOOL_COMPILE="" + LD_CC="\$(CC)" + LD_CC="\$(CXX)" fi + +AC_SUBST(LIBTOOL) +AC_SUBST(LIBTOOL_COMPILE) +AC_SUBST(LD_CC) +AC_SUBST(LD_CXX) |