Skip to content

Commit cbfd606

Browse files
committed
Cleanup for libtool fixes (Issue #394)
1 parent 5584bc0 commit cbfd606

3 files changed

Lines changed: 28 additions & 23 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changes in CUPS v2.4.3 (TBA)
55
----------------------------
66

77
- Added a title with device uri for found network printers (Issues #402, #393)
8+
- Fixed `--enable-libtool-unsupported` (Issue #394)
89
- Fixed configuration on RISC-V machines (Issue #404)
910
- Fixed the `device_uri` invalid pointer for driverless printers with `.local`
1011
hostname (Issue #419)

config-scripts/cups-libtool.m4

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl
2-
dnl Libtool stuff for CUPS.
2+
dnl GNU libtool stuff for CUPS.
33
dnl
44
dnl Copyright © 2021-2022 by OpenPrinting.
55
dnl Copyright © 2007-2018 by Apple Inc.
@@ -9,14 +9,16 @@ dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
99
dnl information.
1010
dnl
1111

12-
AC_ARG_ENABLE([libtool_unsupported],
13-
AS_HELP_STRING([--enable-libtool-unsupported=/path/to/libtool],
14-
[build with libtool (UNSUPPORTED)]),
15-
[], [enable_libtool_unsupported=no])
12+
AC_ARG_ENABLE([libtool_unsupported], [
13+
AS_HELP_STRING([--enable-libtool-unsupported=/path/to/libtool], [build with libtool (UNSUPPORTED)])
14+
], [
15+
], [
16+
enable_libtool_unsupported=no
17+
])
1618

1719
AS_IF([test x$enable_libtool_unsupported != xno], [
18-
AS_IF([test x$enable_libtool_unsupported = xyes], [
19-
AC_MSG_ERROR([Use --enable-libtool-unsupported=/path/to/libtool.])
20+
AS_IF([test "x$enable_libtool_unsupported" = xyes], [
21+
AC_MSG_ERROR([Use '--enable-libtool-unsupported=/path/to/libtool'.])
2022
],[
2123
AC_MSG_WARN([libtool is not supported.])
2224
])

configure

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,8 +1586,10 @@ Optional Features:
15861586
--enable-acl build with POSIX ACL support
15871587
--disable-dbus build without DBUS support
15881588
--disable-shared do not create shared libraries
1589-
--enable-libtool-unsupported=/path/to/libtool
1589+
1590+
--enable-libtool-unsupported=/path/to/libtool
15901591
build with libtool (UNSUPPORTED)
1592+
15911593
--enable-debug build with debugging symbols
15921594
--enable-debug-guards build with memory allocation guards
15931595
--enable-debug-printfs build with CUPS_DEBUG_LOG support
@@ -7856,31 +7858,31 @@ fi
78567858
if test ${enable_libtool_unsupported+y}
78577859
then :
78587860
enableval=$enable_libtool_unsupported;
7859-
if test x$enable_libtool_unsupported != xno
7860-
then :
78617861

7862-
if test x$enable_libtool_unsupported = xyes
7863-
then :
7862+
else $as_nop
78647863

7865-
as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
7864+
enable_libtool_unsupported=no
78667865

78677866
fi
7868-
LIBTOOL="$enable_libtool_unsupported"
7869-
enable_shared="no"
7870-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: libtool is not supported." >&5
7871-
printf "%s\n" "$as_me: WARNING: WARNING: libtool is not supported." >&2;}
78727867

7873-
else $as_nop
78747868

7875-
LIBTOOL=""
7869+
if test x$enable_libtool_unsupported != xno
7870+
then :
78767871

7877-
fi
7872+
if test "x$enable_libtool_unsupported" = xyes
7873+
then :
78787874

7879-
fi
7875+
as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5
78807876

7877+
else $as_nop
78817878

7882-
if test x$LIBTOOL != x
7883-
then :
7879+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5
7880+
printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;}
7881+
7882+
fi
7883+
7884+
LIBTOOL="$enable_libtool_unsupported"
7885+
enable_shared="no"
78847886

78857887
DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
78867888
DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"

0 commit comments

Comments
 (0)