configure.ac revision 3d13e800
1AC_PREREQ([2.60]) 2AC_INIT([encodings], [1.0.6], 3 [https://gitlab.freedesktop.org/xorg/font/encodings/issues]) 4AM_INIT_AUTOMAKE([foreign dist-xz]) 5 6# Require xorg-macros: XORG_DEFAULT_OPTIONS 7m4_ifndef([XORG_MACROS_VERSION], 8 [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 9XORG_MACROS_VERSION(1.3) 10XORG_DEFAULT_OPTIONS 11 12AC_PROG_INSTALL 13 14# Require X.Org's font util macros 1.2 or later 15m4_ifndef([XORG_FONT_MACROS_VERSION], 16 [m4_fatal([must install X.Org font-util 1.2 or later before running autoconf/autogen])]) 17XORG_FONT_MACROS_VERSION(1.2) 18 19# mkfontscale 20XORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale) 21 22# Choose whether or not to compress encodings - default is to compress all 23 24AC_MSG_CHECKING([if small encodings should be compressed]) 25AC_ARG_ENABLE(gzip-small-encodings, 26 AC_HELP_STRING([--disable-gzip-small-encodings], 27 [Disable compression of small encoding files]), 28 [GZIP_SMALL="$enableval"], [GZIP_SMALL="yes"]) 29AM_CONDITIONAL(GZIP_SMALL, [test x$GZIP_SMALL = xyes]) 30AC_MSG_RESULT([${GZIP_SMALL}]) 31 32AC_MSG_CHECKING([if large encodings should be compressed]) 33AC_ARG_ENABLE(gzip-large-encodings, 34 AC_HELP_STRING([--disable-gzip-large-encodings], 35 [Disable compression of large encoding files]), 36 [GZIP_LARGE="$enableval"], [GZIP_LARGE="yes"]) 37AM_CONDITIONAL(GZIP_LARGE, [test x$GZIP_LARGE = xyes]) 38AC_MSG_RESULT([${GZIP_LARGE}]) 39 40# gzip 41 42if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then 43 AC_PATH_PROG(GZIP, gzip) 44 if [[ -z $GZIP ]]; then 45 AC_MSG_ERROR([gzip is needed to compress font encodings]) 46 fi 47fi 48 49XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings]) 50 51AC_CONFIG_FILES([Makefile large/Makefile]) 52AC_OUTPUT 53