mirror of https://github.com/GNOME/gimp.git
Introduce configure options to bypass bzip2 and Ghostscript
Introduce configure options --with[out]-gs and --with[out]-bzip2 to allow bypassing gs/bzip2 auto-detection
This commit is contained in:
parent
18692f318f
commit
53d8244713
24
configure.ac
24
configure.ac
|
@ -1154,13 +1154,21 @@ AC_SUBST(Z_LIBS)
|
||||||
# Check for libbzip2
|
# Check for libbzip2
|
||||||
####################
|
####################
|
||||||
|
|
||||||
have_libbzip2=yes
|
AC_ARG_WITH(gs, [ --without-bzip2 build without bzip2 support])
|
||||||
if test -z "$BZIP2_LIBS"; then
|
|
||||||
|
have_libbzip2=no
|
||||||
|
if test "x$with_bzip2" != xno; then
|
||||||
|
have_libbzip2=yes
|
||||||
AC_CHECK_LIB(bz2, BZ2_bzCompress,
|
AC_CHECK_LIB(bz2, BZ2_bzCompress,
|
||||||
[AC_CHECK_HEADER(bzlib.h,
|
[AC_CHECK_HEADER(bzlib.h,
|
||||||
BZIP2_LIBS='-lbz2',
|
BZIP2_LIBS='-lbz2',
|
||||||
[have_libbzip2="no (libbzip2 header files not found)"])],
|
[have_libbzip2="no (libbzip2 header files not found)"])],
|
||||||
[have_libbzip2="no (libbzip2 library not found)"])
|
[have_libbzip2="no (libbzip2 library not found)"])
|
||||||
|
if test "x$have_libbzip2" != xyes -a "x$with_bzip2" = xyes; then
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** Checks for bzip2 library failed. You can build without it by passing
|
||||||
|
*** --without-bzip2 to configure but you won't be able to use compressed files then.])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_BZIP2, test "x$have_libbzip2" = xyes)
|
AM_CONDITIONAL(HAVE_BZIP2, test "x$have_libbzip2" = xyes)
|
||||||
|
@ -1176,13 +1184,21 @@ fi
|
||||||
# Check for Ghostscript library
|
# Check for Ghostscript library
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
have_gs=yes
|
AC_ARG_WITH(gs, [ --without-gs build without Ghostscript support])
|
||||||
if test -z "$GS_LIBS"; then
|
|
||||||
|
have_gs=no
|
||||||
|
if test "x$with_gs" != xno; then
|
||||||
|
have_gs=yes
|
||||||
AC_CHECK_LIB(gs, gsapi_new_instance,
|
AC_CHECK_LIB(gs, gsapi_new_instance,
|
||||||
[AC_CHECK_HEADER(ghostscript/iapi.h,
|
[AC_CHECK_HEADER(ghostscript/iapi.h,
|
||||||
FILE_PS='file-ps$(EXEEXT)'; GS_LIBS='-lgs',
|
FILE_PS='file-ps$(EXEEXT)'; GS_LIBS='-lgs',
|
||||||
[have_gs="no (Ghostscript header files not found)"])],
|
[have_gs="no (Ghostscript header files not found)"])],
|
||||||
[have_gs="no (Ghostscript library not found)"])
|
[have_gs="no (Ghostscript library not found)"])
|
||||||
|
if test "x$have_gs" != xyes -a "x$with_gs" = xyes; then
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** Checks for Ghostscript library failed. You can build without it by passing
|
||||||
|
*** --without-gs to configure but you won't be able to use Postscript files then.])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(FILE_PS)
|
AC_SUBST(FILE_PS)
|
||||||
|
|
Loading…
Reference in New Issue