Turn on xprint by default if system supports it (ie, has libXp).

Thanks to Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> for the patch.
Bug #49947 r=cls a=blizzard
This commit is contained in:
cls%seawood.org 2001-06-20 03:03:21 +00:00
Родитель 49916c6170
Коммит 389d2faec1
2 изменённых файлов: 342 добавлений и 351 удалений

642
configure поставляемый

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1464,43 +1464,40 @@ dnl = =
dnl ========================================================
dnl ========================================================
dnl = =
dnl = --with-xprint =
dnl = =
dnl = =
dnl = --with-xprint =
dnl = =
dnl = Xprint support hackery =
dnl = =
dnl = =
dnl ========================================================
if test "$no_x" != "yes"
then
AC_ARG_WITH(xprint,
[ --with-xprint Enable Xprint support ],
[
if test "$withval" = "yes"
then
MOZ_ENABLE_XPRINT=1
else
MOZ_ENABLE_XPRINT=
fi
])
fi
MOZ_ENABLE_XPRINT=1
MISSING_XPRINT=
if test "$MOZ_ENABLE_XPRINT"
then
AC_MSG_CHECKING(for xprint insanity)
_SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$XLDFLAGS $LDFLAGS"
_SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$XLDFLAGS $LDFLAGS"
AC_CHECK_LIB(Xp, XpGetPrinterList, [XPRINT_LIBS="-lXp"],
[MISSING_XPRINT="$MISSING_XPRINT -lXp"], $XEXT_LIBS $XLIBS)
LDFLAGS="$_SAVE_LDFLAGS"
MOZ_ENABLE_XPRINT=, $XEXT_LIBS $XLIBS)
LDFLAGS="$_SAVE_LDFLAGS"
MOZ_XPRINT_CFLAGS="$X_CFLAGS"
MOZ_XPRINT_LDFLAGS="$XLDFLAGS $XPRINT_LIBS"
MOZ_XPRINT_LDFLAGS="$MOZ_XPRINT_LDFLAGS $XEXT_LIBS $X11_LIBS"
MOZ_ARG_DISABLE_BOOL(xprint,
[ --disable-xprint Disable Xprint support ],
[
if test "$enableval" = "no"; then
MOZ_ENABLE_XPRINT=
fi
])
if test "$MOZ_ENABLE_XPRINT"; then
AC_MSG_WARN([Xprint support enabled])
else
AC_MSG_WARN([Xprint support disabled])
fi
fi
dnl ========================================================
dnl = =
dnl = End Xprint support hackery =
@ -4494,10 +4491,6 @@ if test ! -z "$MISSING_X"; then
AC_MSG_ERROR([ Could not find the following X libraries: $MISSING_X ]);
fi
if test ! -z "$MISSING_XPRINT"; then
AC_MSG_ERROR([ Could not find the following XPRINT libraries: $MISSING_XPRINT ]);
fi
if test ! -z "$MISSING_MOTIF"; then
AC_MSG_ERROR([ Could not find the following Motif libraries: $MISSING_MOTIF ]);
fi