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