Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
DRC | bf0fab9 | 2010-02-12 22:22:01 +0000 | [diff] [blame] | 4 | AC_PREREQ([2.56]) |
DRC | 17745dd | 2013-04-25 09:45:50 +0000 | [diff] [blame] | 5 | AC_INIT([libjpeg-turbo], [1.3.80]) |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 6 | BUILD=`date +%Y%m%d` |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 7 | |
| 8 | AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2]) |
DRC | 8ff1f25 | 2010-02-15 11:08:57 +0000 | [diff] [blame] | 9 | AC_PREFIX_DEFAULT(/opt/libjpeg-turbo) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 10 | |
| 11 | # Always build with prototypes |
| 12 | AC_DEFINE([HAVE_PROTOTYPES], 1, [Define if your compiler supports prototypes]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 13 | |
| 14 | # Checks for programs. |
DRC | e7b699d | 2010-02-14 07:39:07 +0000 | [diff] [blame] | 15 | SAVED_CFLAGS=${CFLAGS} |
DRC | b4a50ce | 2011-02-26 21:07:50 +0000 | [diff] [blame] | 16 | SAVED_CPPFLAGS=${CPPFLAGS} |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 17 | AC_PROG_CPP |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 18 | AC_PROG_CC |
DRC | c56cb47 | 2014-02-15 07:02:04 +0000 | [diff] [blame^] | 19 | AM_PROG_AR |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 20 | AM_PROG_AS |
DRC | c56cb47 | 2014-02-15 07:02:04 +0000 | [diff] [blame^] | 21 | AM_PROG_CC_C_O |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 22 | AC_PROG_INSTALL |
| 23 | AC_PROG_LIBTOOL |
| 24 | AC_PROG_LN_S |
| 25 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 26 | # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is |
| 27 | # being created, and thus we install things into specific locations. |
| 28 | |
| 29 | old_prefix=${prefix} |
| 30 | if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then |
| 31 | prefix=$ac_default_prefix |
| 32 | fi |
| 33 | DATADIR=`eval echo ${datadir}` |
| 34 | DATADIR=`eval echo $DATADIR` |
| 35 | if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then |
| 36 | datadir='${prefix}' |
| 37 | fi |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 38 | DATADIR=`eval echo ${datarootdir}` |
| 39 | DATADIR=`eval echo $DATADIR` |
| 40 | if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then |
| 41 | datarootdir='${prefix}' |
| 42 | fi |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 43 | |
| 44 | old_exec_prefix=${exec_prefix} |
| 45 | if test "x$exec_prefix" = "xNONE"; then |
| 46 | exec_prefix=${prefix} |
| 47 | fi |
| 48 | |
| 49 | if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then |
| 50 | LIBDIR=`eval echo ${libdir}` |
| 51 | LIBDIR=`eval echo $LIBDIR` |
| 52 | if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then |
| 53 | case $host_os in |
| 54 | darwin*) |
| 55 | ;; |
| 56 | *) |
DRC | c32e0c2 | 2013-08-11 22:57:19 +0000 | [diff] [blame] | 57 | AC_CHECK_SIZEOF(long) |
| 58 | if test "${ac_cv_sizeof_long}" = "8"; then |
| 59 | libdir='${exec_prefix}/lib64' |
| 60 | elif test "${ac_cv_sizeof_long}" = "4"; then |
| 61 | libdir='${exec_prefix}/lib32' |
| 62 | fi |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 63 | ;; |
| 64 | esac |
| 65 | fi |
| 66 | fi |
| 67 | exec_prefix=${old_exec_prefix} |
| 68 | prefix=${old_prefix} |
| 69 | |
DRC | bdb1288 | 2010-08-21 21:14:17 +0000 | [diff] [blame] | 70 | # Check whether compiler supports pointers to undefined structures |
| 71 | AC_MSG_CHECKING(whether compiler supports pointers to undefined structures) |
| 72 | AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], , |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 73 | AC_MSG_RESULT(yes), |
| 74 | [AC_MSG_RESULT(no) |
| 75 | AC_DEFINE([INCOMPLETE_TYPES_BROKEN], [1], |
| 76 | [Compiler does not support pointers to undefined structures.])]) |
DRC | bdb1288 | 2010-08-21 21:14:17 +0000 | [diff] [blame] | 77 | |
DRC | e7b699d | 2010-02-14 07:39:07 +0000 | [diff] [blame] | 78 | if test "x${GCC}" = "xyes"; then |
| 79 | if test "x${SAVED_CFLAGS}" = "x"; then |
| 80 | CFLAGS=-O3 |
| 81 | fi |
DRC | b4a50ce | 2011-02-26 21:07:50 +0000 | [diff] [blame] | 82 | if test "x${SAVED_CPPFLAGS}" = "x"; then |
| 83 | CPPFLAGS=-Wall |
| 84 | fi |
DRC | e7b699d | 2010-02-14 07:39:07 +0000 | [diff] [blame] | 85 | fi |
| 86 | |
DRC | 1e2f298 | 2010-02-16 22:35:25 +0000 | [diff] [blame] | 87 | AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) |
| 88 | if test "x${SUNCC}" = "xyes"; then |
| 89 | if test "x${SAVED_CFLAGS}" = "x"; then |
| 90 | CFLAGS=-xO5 |
| 91 | fi |
DRC | 1e2f298 | 2010-02-16 22:35:25 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 94 | # Checks for libraries. |
| 95 | |
| 96 | # Checks for header files. |
| 97 | AC_HEADER_STDC |
| 98 | AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 99 | AC_CHECK_HEADER([sys/types.h], |
| 100 | AC_DEFINE([NEED_SYS_TYPES_H], 1, [Define if you have sys/types.h])) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 101 | |
| 102 | # Checks for typedefs, structures, and compiler characteristics. |
| 103 | AC_C_CONST |
| 104 | AC_C_CHAR_UNSIGNED |
| 105 | AC_C_INLINE |
| 106 | AC_TYPE_SIZE_T |
| 107 | AC_CHECK_TYPES([unsigned char, unsigned short]) |
| 108 | |
| 109 | AC_MSG_CHECKING([if right shift is signed]) |
| 110 | AC_TRY_RUN( |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 111 | [#include <stdio.h> |
| 112 | int is_shifting_signed (long arg) { |
| 113 | long res = arg >> 4; |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 114 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 115 | if (res == -0x7F7E80CL) |
| 116 | return 1; /* right shift is signed */ |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 117 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 118 | /* see if unsigned-shift hack will fix it. */ |
| 119 | /* we can't just test exact value since it depends on width of long... */ |
| 120 | res |= (~0L) << (32-4); |
| 121 | if (res == -0x7F7E80CL) |
| 122 | return 0; /* right shift is unsigned */ |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 123 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 124 | printf("Right shift isn't acting as I expect it to.\n"); |
| 125 | printf("I fear the JPEG software will not work at all.\n\n"); |
| 126 | return 0; /* try it with unsigned anyway */ |
| 127 | } |
| 128 | int main (void) { |
| 129 | exit(is_shifting_signed(-0x7F7E80B1L)); |
| 130 | }], |
| 131 | [AC_MSG_RESULT(no) |
| 132 | AC_DEFINE([RIGHT_SHIFT_IS_UNSIGNED], 1, [Define if shift is unsigned])], |
| 133 | [AC_MSG_RESULT(yes)], |
| 134 | [AC_MSG_RESULT(Assuming that right shift is signed on target machine.)]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 135 | |
| 136 | # test whether global names are unique to at least 15 chars |
| 137 | AC_MSG_CHECKING([for short external names]) |
| 138 | AC_TRY_LINK( |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 139 | [int possibly_duplicate_function () { return 0; } |
| 140 | int possibly_dupli_function () { return 1; }], [ ], |
| 141 | [AC_MSG_RESULT(ok)], |
| 142 | [AC_MSG_RESULT(short) |
| 143 | AC_DEFINE([NEED_SHORT_EXTERNAL_NAMES], 1, |
| 144 | [Define if you need short function names])]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 145 | |
| 146 | # Checks for library functions. |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 147 | AC_CHECK_FUNCS([memset memcpy], [], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 148 | [AC_DEFINE([NEED_BSD_STRINGS], 1, |
| 149 | [Define if you have BSD-like bzero and bcopy])]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 150 | |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 151 | AC_MSG_CHECKING([libjpeg API version]) |
| 152 | AC_ARG_VAR(JPEG_LIB_VERSION, [libjpeg API version (62, 70, or 80)]) |
| 153 | if test "x$JPEG_LIB_VERSION" = "x"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 154 | AC_ARG_WITH([jpeg7], |
| 155 | AC_HELP_STRING([--with-jpeg7], |
| 156 | [Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)])) |
| 157 | AC_ARG_WITH([jpeg8], |
| 158 | AC_HELP_STRING([--with-jpeg8], |
| 159 | [Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)])) |
| 160 | if test "x${with_jpeg8}" = "xyes"; then |
| 161 | JPEG_LIB_VERSION=80 |
| 162 | else |
| 163 | if test "x${with_jpeg7}" = "xyes"; then |
| 164 | JPEG_LIB_VERSION=70 |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 165 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 166 | JPEG_LIB_VERSION=62 |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 167 | fi |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 168 | fi |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 169 | fi |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 170 | JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10` |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 171 | AC_SUBST(JPEG_LIB_VERSION_DECIMAL) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 172 | AC_MSG_RESULT([$JPEG_LIB_VERSION_DECIMAL]) |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 173 | AC_DEFINE_UNQUOTED(JPEG_LIB_VERSION, [$JPEG_LIB_VERSION], |
| 174 | [libjpeg API version]) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 175 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 176 | AC_ARG_VAR(SO_MAJOR_VERSION, |
| 177 | [Major version of the libjpeg-turbo shared library (default is determined by the API version)]) |
| 178 | AC_ARG_VAR(SO_MINOR_VERSION, |
| 179 | [Minor version of the libjpeg-turbo shared library (default is determined by the API version)]) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 180 | if test "x$SO_MAJOR_VERSION" = "x"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 181 | case "$JPEG_LIB_VERSION" in |
| 182 | 62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;; |
| 183 | *) SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;; |
| 184 | esac |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 185 | fi |
| 186 | if test "x$SO_MINOR_VERSION" = "x"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 187 | case "$JPEG_LIB_VERSION" in |
| 188 | 80) SO_MINOR_VERSION=2 ;; |
| 189 | *) SO_MINOR_VERSION=0 ;; |
| 190 | esac |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 191 | fi |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 192 | |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 193 | RPM_CONFIG_ARGS= |
| 194 | |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 195 | # Memory source/destination managers |
| 196 | SO_AGE=0 |
| 197 | MEM_SRCDST_FUNCTIONS= |
| 198 | if test "x${with_jpeg8}" != "xyes"; then |
| 199 | AC_MSG_CHECKING([whether to include in-memory source/destination managers]) |
| 200 | AC_ARG_WITH([mem-srcdst], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 201 | AC_HELP_STRING([--without-mem-srcdst], |
| 202 | [Do not include in-memory source/destination manager functions when emulating the libjpeg v6b or v7 API/ABI])) |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 203 | if test "x$with_mem_srcdst" != "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 204 | AC_MSG_RESULT(yes) |
| 205 | AC_DEFINE([MEM_SRCDST_SUPPORTED], [1], |
| 206 | [Support in-memory source/destination managers]) |
| 207 | SO_AGE=1 |
| 208 | MEM_SRCDST_FUNCTIONS="global: jpeg_mem_dest; jpeg_mem_src;"; |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 209 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 210 | AC_MSG_RESULT(no) |
| 211 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst" |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 212 | fi |
| 213 | fi |
| 214 | |
| 215 | AC_MSG_CHECKING([libjpeg shared library version]) |
| 216 | AC_MSG_RESULT([$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION]) |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 217 | LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE` |
| 218 | AC_SUBST(LIBTOOL_CURRENT) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 219 | AC_SUBST(SO_MAJOR_VERSION) |
| 220 | AC_SUBST(SO_MINOR_VERSION) |
DRC | ab70623 | 2013-01-18 23:42:31 +0000 | [diff] [blame] | 221 | AC_SUBST(SO_AGE) |
| 222 | AC_SUBST(MEM_SRCDST_FUNCTIONS) |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 223 | |
DRC | ab64b62 | 2011-12-18 16:29:35 +0000 | [diff] [blame] | 224 | AC_DEFINE_UNQUOTED(LIBJPEG_TURBO_VERSION, [$VERSION], [libjpeg-turbo version]) |
| 225 | |
DRC | 7a0478e | 2010-11-07 19:12:30 +0000 | [diff] [blame] | 226 | VERSION_SCRIPT=yes |
| 227 | AC_ARG_ENABLE([ld-version-script], |
| 228 | AS_HELP_STRING([--disable-ld-version-script], |
| 229 | [Disable linker version script for libjpeg-turbo (default is to use linker version script if the linker supports it)]), |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 230 | [VERSION_SCRIPT=$enableval], []) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 231 | |
| 232 | AC_MSG_CHECKING([whether the linker supports version scripts]) |
| 233 | SAVED_LDFLAGS="$LDFLAGS" |
| 234 | LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map" |
| 235 | cat > conftest.map <<EOF |
| 236 | VERS_1 { |
| 237 | global: *; |
| 238 | }; |
| 239 | EOF |
DRC | c56cb47 | 2014-02-15 07:02:04 +0000 | [diff] [blame^] | 240 | AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 241 | [VERSION_SCRIPT_FLAG=-Wl,--version-script,; |
| 242 | AC_MSG_RESULT([yes (GNU style)])], |
| 243 | []) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 244 | if test "x$VERSION_SCRIPT_FLAG" = "x"; then |
| 245 | LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map" |
DRC | c56cb47 | 2014-02-15 07:02:04 +0000 | [diff] [blame^] | 246 | AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 247 | [VERSION_SCRIPT_FLAG=-Wl,-M,; |
| 248 | AC_MSG_RESULT([yes (Sun style)])], |
| 249 | []) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 250 | fi |
| 251 | if test "x$VERSION_SCRIPT_FLAG" = "x"; then |
| 252 | VERSION_SCRIPT=no |
| 253 | AC_MSG_RESULT(no) |
| 254 | fi |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 255 | LDFLAGS="$SAVED_LDFLAGS" |
| 256 | |
DRC | 9fa9559 | 2011-02-25 00:23:44 +0000 | [diff] [blame] | 257 | AC_MSG_CHECKING([whether to use version script when building libjpeg-turbo]) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 258 | AC_MSG_RESULT($VERSION_SCRIPT) |
| 259 | |
| 260 | AM_CONDITIONAL(VERSION_SCRIPT, test "x$VERSION_SCRIPT" = "xyes") |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 261 | AC_SUBST(VERSION_SCRIPT_FLAG) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 262 | |
DRC | b4570bb | 2011-09-07 06:31:00 +0000 | [diff] [blame] | 263 | # Check for non-broken inline under various spellings |
| 264 | AC_MSG_CHECKING(for inline) |
| 265 | ljt_cv_inline="" |
| 266 | AC_TRY_COMPILE(, [} __attribute__((always_inline)) int foo() { return 0; } |
| 267 | int bar() { return foo();], ljt_cv_inline="__attribute__((always_inline))", |
| 268 | AC_TRY_COMPILE(, [} __inline__ int foo() { return 0; } |
| 269 | int bar() { return foo();], ljt_cv_inline="__inline__", |
| 270 | AC_TRY_COMPILE(, [} __inline int foo() { return 0; } |
| 271 | int bar() { return foo();], ljt_cv_inline="__inline", |
| 272 | AC_TRY_COMPILE(, [} inline int foo() { return 0; } |
| 273 | int bar() { return foo();], ljt_cv_inline="inline")))) |
| 274 | AC_MSG_RESULT($ljt_cv_inline) |
| 275 | AC_DEFINE_UNQUOTED([INLINE],[$ljt_cv_inline],[How to obtain function inlining.]) |
| 276 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 277 | # Arithmetic coding support |
DRC | 990e28d | 2011-01-04 21:40:11 +0000 | [diff] [blame] | 278 | AC_MSG_CHECKING([whether to include arithmetic encoding support]) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 279 | AC_ARG_WITH([arith-enc], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 280 | AC_HELP_STRING([--without-arith-enc], |
| 281 | [Do not include arithmetic encoding support])) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 282 | if test "x$with_arith_enc" = "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 283 | AC_MSG_RESULT(no) |
| 284 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc" |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 285 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 286 | AC_DEFINE([C_ARITH_CODING_SUPPORTED], [1], [Support arithmetic encoding]) |
| 287 | AC_MSG_RESULT(yes) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 288 | fi |
| 289 | AM_CONDITIONAL([WITH_ARITH_ENC], [test "x$with_arith_enc" != "xno"]) |
| 290 | |
DRC | 990e28d | 2011-01-04 21:40:11 +0000 | [diff] [blame] | 291 | AC_MSG_CHECKING([whether to include arithmetic decoding support]) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 292 | AC_ARG_WITH([arith-dec], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 293 | AC_HELP_STRING([--without-arith-dec], |
| 294 | [Do not include arithmetic decoding support])) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 295 | if test "x$with_arith_dec" = "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 296 | AC_MSG_RESULT(no) |
| 297 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec" |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 298 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 299 | AC_DEFINE([D_ARITH_CODING_SUPPORTED], [1], [Support arithmetic decoding]) |
| 300 | AC_MSG_RESULT(yes) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 301 | fi |
| 302 | AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"]) |
| 303 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 304 | AM_CONDITIONAL([WITH_ARITH], |
| 305 | [test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"]) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 306 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 307 | # TurboJPEG support |
DRC | 5039d73 | 2013-01-21 23:42:12 +0000 | [diff] [blame] | 308 | AC_MSG_CHECKING([whether to build TurboJPEG C wrapper]) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 309 | AC_ARG_WITH([turbojpeg], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 310 | AC_HELP_STRING([--without-turbojpeg], |
| 311 | [Do not include the TurboJPEG wrapper library and associated test programs])) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 312 | if test "x$with_turbojpeg" = "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 313 | AC_MSG_RESULT(no) |
| 314 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg" |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 315 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 316 | AC_MSG_RESULT(yes) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 317 | fi |
| 318 | |
| 319 | # Java support |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 320 | AC_ARG_VAR(JAVAC, [Java compiler command (default: javac)]) |
| 321 | if test "x$JAVAC" = "x"; then |
| 322 | JAVAC=javac |
| 323 | fi |
| 324 | AC_SUBST(JAVAC) |
| 325 | AC_ARG_VAR(JAVACFLAGS, [Java compiler flags]) |
| 326 | AC_SUBST(JAVACFLAGS) |
| 327 | AC_ARG_VAR(JAR, [Java archive command (default: jar)]) |
| 328 | if test "x$JAR" = "x"; then |
| 329 | JAR=jar |
| 330 | fi |
| 331 | AC_SUBST(JAR) |
| 332 | AC_ARG_VAR(JAVA, [Java runtime command (default: java)]) |
| 333 | if test "x$JAVA" = "x"; then |
| 334 | JAVA=java |
| 335 | fi |
| 336 | AC_SUBST(JAVA) |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 337 | AC_ARG_VAR(JNI_CFLAGS, |
| 338 | [C compiler flags needed to include jni.h (default: -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X, '-I/usr/java/include -I/usr/java/include/solaris' on Solaris, and '-I/usr/java/default/include -I/usr/java/default/include/linux' on Linux)]) |
DRC | 063ab49 | 2011-02-04 22:16:41 +0000 | [diff] [blame] | 339 | |
DRC | 5039d73 | 2013-01-21 23:42:12 +0000 | [diff] [blame] | 340 | AC_MSG_CHECKING([whether to build TurboJPEG Java wrapper]) |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 341 | AC_ARG_WITH([java], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 342 | AC_HELP_STRING([--with-java], [Build Java wrapper for the TurboJPEG library])) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 343 | if test "x$with_turbojpeg" = "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 344 | with_java=no |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 345 | fi |
DRC | 1421a26 | 2011-02-06 15:35:38 +0000 | [diff] [blame] | 346 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 347 | WITH_JAVA=0 |
| 348 | if test "x$with_java" = "xyes"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 349 | AC_MSG_RESULT(yes) |
DRC | 1421a26 | 2011-02-06 15:35:38 +0000 | [diff] [blame] | 350 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 351 | case $host_os in |
| 352 | darwin*) |
| 353 | DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers |
| 354 | ;; |
| 355 | solaris*) |
| 356 | DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris' |
| 357 | ;; |
| 358 | linux*) |
| 359 | DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux' |
| 360 | ;; |
| 361 | esac |
| 362 | if test "x$JNI_CFLAGS" = "x"; then |
| 363 | JNI_CFLAGS=$DEFAULT_JNI_CFLAGS |
| 364 | fi |
DRC | 1421a26 | 2011-02-06 15:35:38 +0000 | [diff] [blame] | 365 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 366 | SAVE_CPPFLAGS=${CPPFLAGS} |
| 367 | CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}" |
| 368 | AC_CHECK_HEADERS([jni.h], [DUMMY=1], |
| 369 | [AC_MSG_ERROR([Could not find JNI header file])]) |
| 370 | CPPFLAGS=${SAVE_CPPFLAGS} |
| 371 | AC_SUBST(JNI_CFLAGS) |
DRC | 1b0c3b0 | 2011-02-06 15:51:27 +0000 | [diff] [blame] | 372 | |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 373 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java" |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 374 | JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes' |
| 375 | JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 376 | WITH_JAVA=1 |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 377 | else |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 378 | AC_MSG_RESULT(no) |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 379 | fi |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 380 | AM_CONDITIONAL([WITH_JAVA], [test "x$with_java" = "xyes"]) |
| 381 | AC_SUBST(WITH_JAVA) |
| 382 | AC_SUBST(JAVA_RPM_CONTENTS_1) |
| 383 | AC_SUBST(JAVA_RPM_CONTENTS_2) |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 384 | |
DRC | 4346f91 | 2011-06-14 22:16:50 +0000 | [diff] [blame] | 385 | # optionally force using gas-preprocessor.pl for compatibility testing |
| 386 | AC_ARG_WITH([gas-preprocessor], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 387 | AC_HELP_STRING([--with-gas-preprocessor], |
| 388 | [Force using gas-preprocessor.pl on ARM.])) |
DRC | 4346f91 | 2011-06-14 22:16:50 +0000 | [diff] [blame] | 389 | if test "x${with_gas_preprocessor}" = "xyes"; then |
| 390 | case $host_os in |
| 391 | darwin*) |
| 392 | CCAS="gas-preprocessor.pl -fix-unreq $CC" |
| 393 | ;; |
| 394 | *) |
| 395 | CCAS="gas-preprocessor.pl -no-fix-unreq $CC" |
| 396 | ;; |
| 397 | esac |
| 398 | AC_SUBST([CCAS]) |
| 399 | fi |
| 400 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 401 | # SIMD is optional |
| 402 | AC_ARG_WITH([simd], |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 403 | AC_HELP_STRING([--without-simd], [Do not include SIMD extensions])) |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 404 | if test "x${with_simd}" != "xno"; then |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 405 | require_simd=no |
| 406 | if test "x${with_simd}" = "xyes"; then |
| 407 | require_simd=yes |
| 408 | fi |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 409 | # Check if we're on a supported CPU |
| 410 | AC_MSG_CHECKING([if we have SIMD optimisations for cpu type]) |
| 411 | case "$host_cpu" in |
DRC | 4959787 | 2010-05-17 20:47:57 +0000 | [diff] [blame] | 412 | x86_64 | amd64) |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 413 | AC_MSG_RESULT([yes (x86_64)]) |
| 414 | AC_PROG_NASM |
| 415 | simd_arch=x86_64 |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 416 | ;; |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 417 | i*86 | x86 | ia32) |
| 418 | AC_MSG_RESULT([yes (i386)]) |
| 419 | AC_PROG_NASM |
| 420 | simd_arch=i386 |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 421 | ;; |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 422 | arm*) |
| 423 | AC_MSG_RESULT([yes (arm)]) |
| 424 | AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used]) |
| 425 | AC_CHECK_COMPATIBLE_ARM_ASSEMBLER_IFELSE( |
| 426 | [AC_MSG_RESULT([yes]) |
| 427 | simd_arch=arm], |
| 428 | [AC_MSG_RESULT([no]) |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 429 | with_simd=no]) |
DRC | 596b966 | 2013-10-26 00:29:53 +0000 | [diff] [blame] | 430 | if test "x${with_simd}" = "xno"; then |
| 431 | if test "x${require_simd}" = "xyes"; then |
| 432 | AC_MSG_ERROR([SIMD support can't be enabled.]) |
| 433 | else |
| 434 | AC_MSG_WARN([SIMD support can't be enabled. Performance will suffer.]) |
DRC | ba55b2c | 2014-02-05 08:15:44 +0000 | [diff] [blame] | 435 | fi |
DRC | 596b966 | 2013-10-26 00:29:53 +0000 | [diff] [blame] | 436 | fi |
DRC | ba55b2c | 2014-02-05 08:15:44 +0000 | [diff] [blame] | 437 | ;; |
| 438 | aarch64*) |
| 439 | AC_MSG_RESULT([yes (arm64)]) |
| 440 | AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used]) |
| 441 | AC_CHECK_COMPATIBLE_ARM64_ASSEMBLER_IFELSE( |
| 442 | [AC_MSG_RESULT([yes]) |
| 443 | simd_arch=aarch64], |
| 444 | [AC_MSG_RESULT([no]) |
| 445 | with_simd=no]) |
| 446 | if test "x${with_simd}" = "xno"; then |
| 447 | if test "x${require_simd}" = "xyes"; then |
| 448 | AC_MSG_ERROR([SIMD support can't be enabled.]) |
| 449 | else |
| 450 | AC_MSG_WARN([SIMD support can't be enabled. Performance will suffer.]) |
| 451 | fi |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 452 | fi |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 453 | ;; |
DRC | 0be9fa5 | 2013-07-24 21:50:20 +0000 | [diff] [blame] | 454 | mipsel*) |
| 455 | AC_MSG_RESULT([yes (mipsel)]) |
| 456 | AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used]) |
| 457 | AC_CHECK_COMPATIBLE_MIPSEL_ASSEMBLER_IFELSE( |
| 458 | [AC_MSG_RESULT([yes]) |
| 459 | simd_arch=mipsel], |
| 460 | [AC_MSG_RESULT([no]) |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 461 | with_simd=no]) |
DRC | 596b966 | 2013-10-26 00:29:53 +0000 | [diff] [blame] | 462 | if test "x${with_simd}" = "xno"; then |
| 463 | if test "x${require_simd}" = "xyes"; then |
| 464 | AC_MSG_ERROR([SIMD support can't be enabled.]) |
| 465 | else |
| 466 | AC_MSG_WARN([SIMD support can't be enabled. Performance will suffer.]) |
| 467 | fi |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 468 | fi |
DRC | 0be9fa5 | 2013-07-24 21:50:20 +0000 | [diff] [blame] | 469 | ;; |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 470 | *) |
| 471 | AC_MSG_RESULT([no ("$host_cpu")]) |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 472 | with_simd=no; |
DRC | 596b966 | 2013-10-26 00:29:53 +0000 | [diff] [blame] | 473 | if test "x${require_simd}" = "xyes"; then |
DRC | 8ca34d4 | 2013-09-25 04:36:44 +0000 | [diff] [blame] | 474 | AC_MSG_ERROR([SIMD support not available for this CPU.]) |
| 475 | else |
| 476 | AC_MSG_WARN([SIMD support not available for this CPU. Performance will suffer.]) |
| 477 | fi |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 478 | ;; |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 479 | esac |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 480 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 481 | if test "x${with_simd}" != "xno"; then |
| 482 | AC_DEFINE([WITH_SIMD], [1], [Use accelerated SIMD routines.]) |
| 483 | fi |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 484 | else |
| 485 | RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd" |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 486 | fi |
DRC | 411dcf5 | 2010-02-12 04:28:29 +0000 | [diff] [blame] | 487 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 488 | AM_CONDITIONAL([WITH_SIMD], [test "x$with_simd" != "xno"]) |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 489 | AM_CONDITIONAL([WITH_SSE_FLOAT_DCT], [test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"]) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 490 | AM_CONDITIONAL([SIMD_I386], [test "x$simd_arch" = "xi386"]) |
| 491 | AM_CONDITIONAL([SIMD_X86_64], [test "x$simd_arch" = "xx86_64"]) |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 492 | AM_CONDITIONAL([SIMD_ARM], [test "x$simd_arch" = "xarm"]) |
DRC | ba55b2c | 2014-02-05 08:15:44 +0000 | [diff] [blame] | 493 | AM_CONDITIONAL([SIMD_ARM_64], [test "x$simd_arch" = "xaarch64"]) |
DRC | 0be9fa5 | 2013-07-24 21:50:20 +0000 | [diff] [blame] | 494 | AM_CONDITIONAL([SIMD_MIPSEL], [test "x$simd_arch" = "xmipsel"]) |
DRC | 4959787 | 2010-05-17 20:47:57 +0000 | [diff] [blame] | 495 | AM_CONDITIONAL([X86_64], [test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"]) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 496 | AM_CONDITIONAL([WITH_TURBOJPEG], [test "x$with_turbojpeg" != "xno"]) |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 497 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 498 | AC_ARG_VAR(PKGNAME, [distribution package name (default: libjpeg-turbo)]) |
| 499 | if test "x$PKGNAME" = "x"; then |
| 500 | PKGNAME=$PACKAGE_NAME |
| 501 | fi |
| 502 | AC_SUBST(PKGNAME) |
| 503 | |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 504 | case "$host_cpu" in |
| 505 | x86_64) |
| 506 | RPMARCH=x86_64 |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 507 | DEBARCH=amd64 |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 508 | ;; |
| 509 | i*86 | x86 | ia32) |
| 510 | RPMARCH=i386 |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 511 | DEBARCH=i386 |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 512 | ;; |
| 513 | esac |
| 514 | |
| 515 | AC_SUBST(RPMARCH) |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 516 | AC_SUBST(RPM_CONFIG_ARGS) |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 517 | AC_SUBST(DEBARCH) |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 518 | AC_SUBST(BUILD) |
DRC | 2cdd2ae | 2010-10-10 06:54:21 +0000 | [diff] [blame] | 519 | AC_DEFINE_UNQUOTED([BUILD], "$BUILD", [Build number]) |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 520 | |
Pierre Ossman | ba0ce39 | 2009-03-06 15:30:42 +0000 | [diff] [blame] | 521 | # jconfig.h is the file we use, but we have another before that to |
| 522 | # fool autoheader. the reason is that we include this header in our |
| 523 | # API headers, which can screw things up for users of the lib. |
| 524 | # jconfig.h is a minimal version that allows this package to be built |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 525 | AC_CONFIG_HEADERS([config.h]) |
| 526 | AC_CONFIG_HEADERS([jconfig.h]) |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 527 | AC_CONFIG_FILES([pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in]) |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 528 | AC_CONFIG_FILES([pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in]) |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 529 | AC_CONFIG_FILES([pkgscripts/makedpkg.tmpl:release/makedpkg.in]) |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 530 | AC_CONFIG_FILES([pkgscripts/makemacpkg.tmpl:release/makemacpkg.in]) |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 531 | AC_CONFIG_FILES([pkgscripts/Description.plist:release/Description.plist.in]) |
| 532 | AC_CONFIG_FILES([pkgscripts/Info.plist:release/Info.plist.in]) |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 533 | AC_CONFIG_FILES([pkgscripts/uninstall.tmpl:release/uninstall.in]) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 534 | if test "x$with_turbojpeg" != "xno"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 535 | AC_CONFIG_FILES([tjbenchtest]) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 536 | fi |
| 537 | if test "x$with_java" = "xyes"; then |
DRC | 0ddff3b | 2013-04-11 05:17:53 +0000 | [diff] [blame] | 538 | AC_CONFIG_FILES([tjbenchtest.java]) |
| 539 | AC_CONFIG_FILES([tjexampletest]) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 540 | fi |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 541 | AC_CONFIG_FILES([libjpeg.map]) |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 542 | AC_CONFIG_FILES([Makefile simd/Makefile]) |
DRC | dffd53d | 2011-04-01 00:37:20 +0000 | [diff] [blame] | 543 | AC_CONFIG_FILES([java/Makefile]) |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 544 | AC_CONFIG_FILES([md5/Makefile]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 545 | AC_OUTPUT |