]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-libtool.m4
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / config-scripts / cups-libtool.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Libtool stuff for CUPS.
ef416fc2 3dnl
a621d151 4dnl Copyright 2007-2017 by Apple Inc.
503b54c9 5dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
e3101897 7dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ef416fc2 8dnl
9
a621d151 10AC_ARG_ENABLE(libtool_unsupported, [ --enable-libtool-unsupported=/path/to/libtool
bf3816c7 11 build with libtool (UNSUPPORTED!)],
ef416fc2 12 [if test x$enable_libtool_unsupported != xno; then
7a0e5acd
RH
13 if test x$enable_libtool_unsupported == xyes; then
14 AC_MSG_ERROR([Use --enable-libtool-unsupported=/path/to/libtool.])
15 fi
ef416fc2 16 LIBTOOL="$enable_libtool_unsupported"
17 enable_shared=no
bf3816c7
MS
18 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
19 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
ef416fc2 20 else
21 LIBTOOL=""
22 fi])
23
ef416fc2 24if test x$LIBTOOL != x; then
b94f7488
MS
25 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
26 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
27
07cb7247
MS
28 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
29 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
30
ef416fc2 31 LIBCUPS="libcups.la"
b94f7488 32 LIBCUPSSTATIC="libcups.la"
a621d151 33 LIBCUPSCGI="libcupscgi.la"
ef416fc2 34 LIBCUPSIMAGE="libcupsimage.la"
a621d151
MS
35 LIBCUPSMIME="libcupsmime.la"
36 LIBCUPSPPDC="libcupsppdc.la"
37
b94f7488
MS
38 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
39 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
40 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
a621d151 41
ef416fc2 42 LINKCUPS="../cups/\$(LIBCUPS)"
43 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
a621d151 44
a621d151 45else
07cb7247
MS
46 LD_CC="\$(CC)"
47 LD_CXX="\$(CXX)"
48
b94f7488
MS
49 LIBTOOL_CC=""
50 LIBTOOL_CXX=""
51 LIBTOOL_INSTALL=""
ef416fc2 52fi
a621d151 53
07cb7247
MS
54AC_SUBST(LD_CC)
55AC_SUBST(LD_CXX)
56
a621d151 57AC_SUBST(LIBTOOL)
b94f7488
MS
58AC_SUBST(LIBTOOL_CC)
59AC_SUBST(LIBTOOL_CXX)
60AC_SUBST(LIBTOOL_INSTALL)