1de7ed6e8SmrgAC_PREREQ([2.60]) 2187ef25fSmrgAC_INIT([encodings], [1.1.0], 322138c50Smrg [https://gitlab.freedesktop.org/xorg/font/encodings/-/issues]) 43d13e800SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 592bb16f8Smrg 622138c50Smrg# Require xorg-macros 1.20 or later: XORG_DEFAULT_NOCODE_OPTIONS 78255a313Smrgm4_ifndef([XORG_MACROS_VERSION], 822138c50Smrg [m4_fatal([must install xorg-macros 1.20 or later before running autoconf/autogen])]) 922138c50SmrgXORG_MACROS_VERSION(1.20) 1022138c50SmrgXORG_DEFAULT_NOCODE_OPTIONS 1192bb16f8Smrg 12de7ed6e8Smrg# Require X.Org's font util macros 1.2 or later 138255a313Smrgm4_ifndef([XORG_FONT_MACROS_VERSION], 14de7ed6e8Smrg [m4_fatal([must install X.Org font-util 1.2 or later before running autoconf/autogen])]) 15de7ed6e8SmrgXORG_FONT_MACROS_VERSION(1.2) 168255a313Smrg 178255a313Smrg# mkfontscale 188255a313SmrgXORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale) 1992bb16f8Smrg 2092bb16f8Smrg# Choose whether or not to compress encodings - default is to compress all 2192bb16f8Smrg 228255a313SmrgAC_MSG_CHECKING([if small encodings should be compressed]) 2392bb16f8SmrgAC_ARG_ENABLE(gzip-small-encodings, 2422138c50Smrg AS_HELP_STRING([--disable-gzip-small-encodings], 2592bb16f8Smrg [Disable compression of small encoding files]), 2692bb16f8Smrg [GZIP_SMALL="$enableval"], [GZIP_SMALL="yes"]) 2792bb16f8SmrgAM_CONDITIONAL(GZIP_SMALL, [test x$GZIP_SMALL = xyes]) 288255a313SmrgAC_MSG_RESULT([${GZIP_SMALL}]) 2992bb16f8Smrg 308255a313SmrgAC_MSG_CHECKING([if large encodings should be compressed]) 3192bb16f8SmrgAC_ARG_ENABLE(gzip-large-encodings, 3222138c50Smrg AS_HELP_STRING([--disable-gzip-large-encodings], 3392bb16f8Smrg [Disable compression of large encoding files]), 3492bb16f8Smrg [GZIP_LARGE="$enableval"], [GZIP_LARGE="yes"]) 3592bb16f8SmrgAM_CONDITIONAL(GZIP_LARGE, [test x$GZIP_LARGE = xyes]) 368255a313SmrgAC_MSG_RESULT([${GZIP_LARGE}]) 3792bb16f8Smrg 3892bb16f8Smrg# gzip 3992bb16f8Smrg 4092bb16f8Smrgif test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then 4192bb16f8Smrg AC_PATH_PROG(GZIP, gzip) 4292bb16f8Smrg if [[ -z $GZIP ]]; then 4392bb16f8Smrg AC_MSG_ERROR([gzip is needed to compress font encodings]) 4492bb16f8Smrg fi 4522138c50Smrg COMPRESS_FLAGS="${COMPRESS_FLAGS--n}" 4622138c50Smrg AC_SUBST([COMPRESS_FLAGS]) 4792bb16f8Smrgfi 4892bb16f8Smrg 498255a313SmrgXORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings]) 5092bb16f8Smrg 5101395c31SmrgAC_CONFIG_FILES([Makefile large/Makefile]) 5201395c31SmrgAC_OUTPUT 53