Modernize cups-libtool.m4.
@@ -1583,7 +1583,7 @@ Optional Features:
--disable-dbus build without DBUS support
--disable-shared do not create shared libraries
--enable-libtool-unsupported=/path/to/libtool
- build with libtool (UNSUPPORTED!)
+ build with libtool (UNSUPPORTED)
--enable-debug build with debugging symbols
--enable-debug-guards build with memory allocation guards
--enable-debug-printfs build with CUPS_DEBUG_LOG support
@@ -7694,21 +7694,33 @@ fi
# Check whether --enable-libtool_unsupported was given.
if test ${enable_libtool_unsupported+y}
then :
- enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
- if test x$enable_libtool_unsupported == xyes; then
+ enableval=$enable_libtool_unsupported;
+ if test x$enable_libtool_unsupported != xno
+then :
+
+ if test x$enable_libtool_unsupported = xyes
+then :
+
as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
+
fi
LIBTOOL="$enable_libtool_unsupported"
- enable_shared=no
- echo "WARNING: libtool is not supported or endorsed by Apple Inc."
- echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
- else
+ enable_shared="no"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: libtool is not supported." >&5
+printf "%s\n" "$as_me: WARNING: WARNING: libtool is not supported." >&2;}
+
+else $as_nop
+
LIBTOOL=""
+
fi
+
fi
-if test x$LIBTOOL != x; then
+if test x$LIBTOOL != x
+then :
+
DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
@@ -7729,13 +7741,15 @@ if test x$LIBTOOL != x; then
LINKCUPS="../cups/\$(LIBCUPS)"
LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
-else
+else $as_nop
+
LD_CC="\$(CC)"
LD_CXX="\$(CXX)"
LIBTOOL_CC=""
LIBTOOL_CXX=""
LIBTOOL_INSTALL=""
+
fi
