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 | de3c861 | 2011-02-04 11:07:34 +0000 | [diff] [blame] | 5 | AC_INIT([libjpeg-turbo], [1.1.90]) |
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 |
| 19 | AC_PROG_INSTALL |
| 20 | AC_PROG_LIBTOOL |
| 21 | AC_PROG_LN_S |
| 22 | |
DRC | bdb1288 | 2010-08-21 21:14:17 +0000 | [diff] [blame] | 23 | # Check whether compiler supports pointers to undefined structures |
| 24 | AC_MSG_CHECKING(whether compiler supports pointers to undefined structures) |
| 25 | AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], , |
| 26 | AC_MSG_RESULT(yes), |
| 27 | [AC_MSG_RESULT(no) |
| 28 | AC_DEFINE([INCOMPLETE_TYPES_BROKEN],[1],[Compiler does not support pointers to undefined structures.])]) |
| 29 | |
DRC | e7b699d | 2010-02-14 07:39:07 +0000 | [diff] [blame] | 30 | if test "x${GCC}" = "xyes"; then |
| 31 | if test "x${SAVED_CFLAGS}" = "x"; then |
| 32 | CFLAGS=-O3 |
| 33 | fi |
DRC | b4a50ce | 2011-02-26 21:07:50 +0000 | [diff] [blame] | 34 | if test "x${SAVED_CPPFLAGS}" = "x"; then |
| 35 | CPPFLAGS=-Wall |
| 36 | fi |
DRC | e7b699d | 2010-02-14 07:39:07 +0000 | [diff] [blame] | 37 | fi |
| 38 | |
DRC | 1e2f298 | 2010-02-16 22:35:25 +0000 | [diff] [blame] | 39 | AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) |
| 40 | if test "x${SUNCC}" = "xyes"; then |
| 41 | if test "x${SAVED_CFLAGS}" = "x"; then |
| 42 | CFLAGS=-xO5 |
| 43 | fi |
DRC | 1e2f298 | 2010-02-16 22:35:25 +0000 | [diff] [blame] | 44 | fi |
| 45 | |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 46 | # Checks for libraries. |
| 47 | |
| 48 | # Checks for header files. |
| 49 | AC_HEADER_STDC |
| 50 | AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) |
| 51 | AC_CHECK_HEADER([sys/types.h], AC_DEFINE([NEED_SYS_TYPES_H], 1, [Define if you have sys/types.h])) |
| 52 | |
| 53 | # Checks for typedefs, structures, and compiler characteristics. |
| 54 | AC_C_CONST |
| 55 | AC_C_CHAR_UNSIGNED |
| 56 | AC_C_INLINE |
| 57 | AC_TYPE_SIZE_T |
| 58 | AC_CHECK_TYPES([unsigned char, unsigned short]) |
| 59 | |
| 60 | AC_MSG_CHECKING([if right shift is signed]) |
| 61 | AC_TRY_RUN( |
| 62 | [#include <stdio.h> |
| 63 | int is_shifting_signed (long arg) { |
| 64 | long res = arg >> 4; |
| 65 | |
| 66 | if (res == -0x7F7E80CL) |
| 67 | return 1; /* right shift is signed */ |
| 68 | |
| 69 | /* see if unsigned-shift hack will fix it. */ |
| 70 | /* we can't just test exact value since it depends on width of long... */ |
| 71 | res |= (~0L) << (32-4); |
| 72 | if (res == -0x7F7E80CL) |
| 73 | return 0; /* right shift is unsigned */ |
| 74 | |
| 75 | printf("Right shift isn't acting as I expect it to.\n"); |
| 76 | printf("I fear the JPEG software will not work at all.\n\n"); |
| 77 | return 0; /* try it with unsigned anyway */ |
| 78 | } |
| 79 | int main (void) { |
| 80 | exit(is_shifting_signed(-0x7F7E80B1L)); |
| 81 | }], |
| 82 | [AC_MSG_RESULT(no) |
| 83 | AC_DEFINE([RIGHT_SHIFT_IS_UNSIGNED], 1, [Define if shift is unsigned])], |
| 84 | [AC_MSG_RESULT(yes)], |
| 85 | [AC_MSG_RESULT(Assuming that right shift is signed on target machine.)]) |
| 86 | |
| 87 | # test whether global names are unique to at least 15 chars |
| 88 | AC_MSG_CHECKING([for short external names]) |
| 89 | AC_TRY_LINK( |
| 90 | [int possibly_duplicate_function () { return 0; } |
| 91 | int possibly_dupli_function () { return 1; }], [ ], |
| 92 | [AC_MSG_RESULT(ok)], |
| 93 | [AC_MSG_RESULT(short) |
| 94 | AC_DEFINE([NEED_SHORT_EXTERNAL_NAMES], 1, [Define if you need short function names])]) |
| 95 | |
| 96 | # Checks for library functions. |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 97 | AC_CHECK_FUNCS([memset memcpy], [], |
| 98 | [AC_DEFINE([NEED_BSD_STRINGS], 1, |
| 99 | [Define if you have BSD-like bzero and bcopy])]) |
| 100 | |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 101 | # Set flags to indicate platform |
| 102 | case "$host_os" in |
| 103 | cygwin* | mingw* | pw32* | interix*) |
| 104 | is_win32=1 |
| 105 | ;; |
| 106 | esac |
| 107 | AM_CONDITIONAL([IS_WIN32], [test "x$is_win32" = "x1"]) |
| 108 | |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 109 | AC_MSG_CHECKING([libjpeg API version]) |
| 110 | AC_ARG_VAR(JPEG_LIB_VERSION, [libjpeg API version (62, 70, or 80)]) |
| 111 | if test "x$JPEG_LIB_VERSION" = "x"; then |
| 112 | AC_ARG_WITH([jpeg7], |
| 113 | AC_HELP_STRING([--with-jpeg7], [Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)])) |
| 114 | AC_ARG_WITH([jpeg8], |
DRC | f38eee0 | 2011-02-18 07:00:38 +0000 | [diff] [blame] | 115 | AC_HELP_STRING([--with-jpeg8], [Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)])) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 116 | if test "x${with_jpeg8}" = "xyes"; then |
| 117 | JPEG_LIB_VERSION=80 |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 118 | else |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 119 | if test "x${with_jpeg7}" = "xyes"; then |
| 120 | JPEG_LIB_VERSION=70 |
| 121 | else |
| 122 | JPEG_LIB_VERSION=62 |
| 123 | fi |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 124 | fi |
| 125 | fi |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 126 | 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] | 127 | AC_SUBST(JPEG_LIB_VERSION_DECIMAL) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 128 | AC_MSG_RESULT([$JPEG_LIB_VERSION_DECIMAL]) |
| 129 | AC_DEFINE_UNQUOTED(JPEG_LIB_VERSION, [$JPEG_LIB_VERSION], [libjpeg API version]) |
| 130 | |
| 131 | AC_MSG_CHECKING([libjpeg shared library version]) |
| 132 | AC_ARG_VAR(SO_MAJOR_VERSION, [Major version of the libjpeg-turbo shared library (default is determined by the API version)]) |
| 133 | AC_ARG_VAR(SO_MINOR_VERSION, [Minor version of the libjpeg-turbo shared library (default is determined by the API version)]) |
| 134 | if test "x$SO_MAJOR_VERSION" = "x"; then |
| 135 | case "$JPEG_LIB_VERSION" in |
| 136 | 62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;; |
| 137 | *) SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;; |
| 138 | esac |
| 139 | fi |
| 140 | if test "x$SO_MINOR_VERSION" = "x"; then |
| 141 | case "$JPEG_LIB_VERSION" in |
| 142 | 80) SO_MINOR_VERSION=2 ;; |
| 143 | *) SO_MINOR_VERSION=0 ;; |
| 144 | esac |
| 145 | fi |
| 146 | AC_MSG_RESULT([$SO_MAJOR_VERSION:$SO_MINOR_VERSION]) |
| 147 | AC_SUBST(SO_MAJOR_VERSION) |
| 148 | AC_SUBST(SO_MINOR_VERSION) |
DRC | 36a6eec | 2010-10-08 08:05:44 +0000 | [diff] [blame] | 149 | |
DRC | 7a0478e | 2010-11-07 19:12:30 +0000 | [diff] [blame] | 150 | VERSION_SCRIPT=yes |
| 151 | AC_ARG_ENABLE([ld-version-script], |
| 152 | AS_HELP_STRING([--disable-ld-version-script], |
| 153 | [Disable linker version script for libjpeg-turbo (default is to use linker version script if the linker supports it)]), |
| 154 | [VERSION_SCRIPT=$enableval], []) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 155 | |
| 156 | AC_MSG_CHECKING([whether the linker supports version scripts]) |
| 157 | SAVED_LDFLAGS="$LDFLAGS" |
| 158 | LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map" |
| 159 | cat > conftest.map <<EOF |
| 160 | VERS_1 { |
| 161 | global: *; |
| 162 | }; |
| 163 | EOF |
| 164 | AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), |
| 165 | [VERSION_SCRIPT_FLAG=-Wl,--version-script,; AC_MSG_RESULT([yes (GNU style)])], []) |
| 166 | if test "x$VERSION_SCRIPT_FLAG" = "x"; then |
| 167 | LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map" |
| 168 | AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), |
| 169 | [VERSION_SCRIPT_FLAG=-Wl,-M,; AC_MSG_RESULT([yes (Sun style)])], []) |
| 170 | fi |
| 171 | if test "x$VERSION_SCRIPT_FLAG" = "x"; then |
| 172 | VERSION_SCRIPT=no |
| 173 | AC_MSG_RESULT(no) |
| 174 | fi |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 175 | LDFLAGS="$SAVED_LDFLAGS" |
| 176 | |
DRC | 9fa9559 | 2011-02-25 00:23:44 +0000 | [diff] [blame] | 177 | AC_MSG_CHECKING([whether to use version script when building libjpeg-turbo]) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 178 | AC_MSG_RESULT($VERSION_SCRIPT) |
| 179 | |
| 180 | AM_CONDITIONAL(VERSION_SCRIPT, test "x$VERSION_SCRIPT" = "xyes") |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 181 | AC_SUBST(VERSION_SCRIPT_FLAG) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 182 | |
DRC | 990e28d | 2011-01-04 21:40:11 +0000 | [diff] [blame] | 183 | AC_MSG_CHECKING([whether to include arithmetic encoding support]) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 184 | AC_ARG_WITH([arith-enc], |
| 185 | AC_HELP_STRING([--without-arith-enc], [Omit arithmetic encoding support])) |
| 186 | if test "x$with_arith_enc" = "xno"; then |
| 187 | AC_MSG_RESULT(no) |
| 188 | else |
| 189 | AC_DEFINE([C_ARITH_CODING_SUPPORTED], [1], [Support arithmetic encoding]) |
| 190 | AC_MSG_RESULT(yes) |
| 191 | fi |
| 192 | AM_CONDITIONAL([WITH_ARITH_ENC], [test "x$with_arith_enc" != "xno"]) |
| 193 | |
DRC | 990e28d | 2011-01-04 21:40:11 +0000 | [diff] [blame] | 194 | AC_MSG_CHECKING([whether to include arithmetic decoding support]) |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 195 | AC_ARG_WITH([arith-dec], |
| 196 | AC_HELP_STRING([--without-arith-dec], [Omit arithmetic decoding support])) |
| 197 | if test "x$with_arith_dec" = "xno"; then |
| 198 | AC_MSG_RESULT(no) |
| 199 | else |
| 200 | AC_DEFINE([D_ARITH_CODING_SUPPORTED], [1], [Support arithmetic decoding]) |
| 201 | AC_MSG_RESULT(yes) |
| 202 | fi |
| 203 | AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"]) |
| 204 | |
| 205 | AM_CONDITIONAL([WITH_ARITH], [test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"]) |
| 206 | |
DRC | 063ab49 | 2011-02-04 22:16:41 +0000 | [diff] [blame] | 207 | AC_ARG_VAR(JAVA_CFLAGS, [Compiler flags needed to find 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] | 208 | |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 209 | AC_MSG_CHECKING([whether to include JNI wrapper in TurboJPEG/OSS]) |
| 210 | AC_ARG_WITH([jni], |
| 211 | AC_HELP_STRING([--with-jni],[Include JNI wrapper in the TurboJPEG/OSS library])) |
DRC | 1421a26 | 2011-02-06 15:35:38 +0000 | [diff] [blame] | 212 | |
| 213 | BUILDJNILIB=0 |
DRC | 1b0c3b0 | 2011-02-06 15:51:27 +0000 | [diff] [blame] | 214 | RPM_CONFIG_ARGS= |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 215 | if test "x$with_jni" = "xyes"; then |
| 216 | AC_MSG_RESULT(yes) |
DRC | 1421a26 | 2011-02-06 15:35:38 +0000 | [diff] [blame] | 217 | |
| 218 | case $host_os in |
| 219 | darwin*) |
| 220 | DEFAULT_JAVA_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers |
| 221 | BUILDJNILIB=1 |
| 222 | ;; |
| 223 | solaris*) |
| 224 | DEFAULT_JAVA_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris' |
| 225 | ;; |
| 226 | linux*) |
| 227 | DEFAULT_JAVA_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux' |
| 228 | ;; |
| 229 | esac |
| 230 | if test "x$JAVA_CFLAGS" = "x"; then |
| 231 | JAVA_CFLAGS=$DEFAULT_JAVA_CFLAGS |
| 232 | fi |
| 233 | |
DRC | 063ab49 | 2011-02-04 22:16:41 +0000 | [diff] [blame] | 234 | SAVE_CPPFLAGS=${CPPFLAGS} |
| 235 | CPPFLAGS="${CPPFLAGS} ${JAVA_CFLAGS}" |
| 236 | AC_CHECK_HEADERS([jni.h], [DUMMY=1], |
| 237 | [AC_MSG_ERROR([Could not find JNI header file])]) |
| 238 | CPPFLAGS=${SAVE_CPPFLAGS} |
| 239 | AC_SUBST(JAVA_CFLAGS) |
DRC | 1b0c3b0 | 2011-02-06 15:51:27 +0000 | [diff] [blame] | 240 | |
| 241 | RPM_CONFIG_ARGS=--with-jni |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 242 | else |
| 243 | AC_MSG_RESULT(no) |
| 244 | fi |
| 245 | AM_CONDITIONAL([WITH_JNI], [test "x$with_jni" = "xyes"]) |
DRC | 25c5870 | 2011-02-05 04:41:36 +0000 | [diff] [blame] | 246 | AC_SUBST(BUILDJNILIB) |
DRC | 1b0c3b0 | 2011-02-06 15:51:27 +0000 | [diff] [blame] | 247 | AC_SUBST(RPM_CONFIG_ARGS) |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 248 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 249 | # SIMD is optional |
| 250 | AC_ARG_WITH([simd], |
| 251 | AC_HELP_STRING([--without-simd],[Omit accelerated SIMD routines.])) |
| 252 | if test "x${with_simd}" != "xno"; then |
| 253 | # Check if we're on a supported CPU |
| 254 | AC_MSG_CHECKING([if we have SIMD optimisations for cpu type]) |
| 255 | case "$host_cpu" in |
DRC | 4959787 | 2010-05-17 20:47:57 +0000 | [diff] [blame] | 256 | x86_64 | amd64) |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 257 | AC_MSG_RESULT([yes (x86_64)]) |
| 258 | AC_PROG_NASM |
| 259 | simd_arch=x86_64 |
| 260 | ;; |
| 261 | i*86 | x86 | ia32) |
| 262 | AC_MSG_RESULT([yes (i386)]) |
| 263 | AC_PROG_NASM |
| 264 | simd_arch=i386 |
| 265 | ;; |
| 266 | *) |
| 267 | AC_MSG_RESULT([no ("$host_cpu")]) |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 268 | AC_MSG_WARN([SIMD support not available for this CPU. Performance will suffer.]) |
| 269 | with_simd=no; |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 270 | ;; |
| 271 | esac |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 272 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 273 | if test "x${with_simd}" != "xno"; then |
| 274 | AC_DEFINE([WITH_SIMD], [1], [Use accelerated SIMD routines.]) |
| 275 | fi |
| 276 | fi |
DRC | 411dcf5 | 2010-02-12 04:28:29 +0000 | [diff] [blame] | 277 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 278 | AM_CONDITIONAL([WITH_SIMD], [test "x$with_simd" != "xno"]) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 279 | AM_CONDITIONAL([SIMD_I386], [test "x$simd_arch" = "xi386"]) |
| 280 | AM_CONDITIONAL([SIMD_X86_64], [test "x$simd_arch" = "xx86_64"]) |
DRC | 4959787 | 2010-05-17 20:47:57 +0000 | [diff] [blame] | 281 | AM_CONDITIONAL([X86_64], [test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"]) |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 282 | |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 283 | case "$host_cpu" in |
| 284 | x86_64) |
| 285 | RPMARCH=x86_64 |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 286 | DEBARCH=amd64 |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 287 | ;; |
| 288 | i*86 | x86 | ia32) |
| 289 | RPMARCH=i386 |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 290 | DEBARCH=i386 |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 291 | ;; |
| 292 | esac |
| 293 | |
| 294 | AC_SUBST(RPMARCH) |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 295 | AC_SUBST(DEBARCH) |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 296 | AC_SUBST(BUILD) |
DRC | 2cdd2ae | 2010-10-10 06:54:21 +0000 | [diff] [blame] | 297 | AC_DEFINE_UNQUOTED([BUILD], "$BUILD", [Build number]) |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 298 | |
Pierre Ossman | ba0ce39 | 2009-03-06 15:30:42 +0000 | [diff] [blame] | 299 | # jconfig.h is the file we use, but we have another before that to |
| 300 | # fool autoheader. the reason is that we include this header in our |
| 301 | # API headers, which can screw things up for users of the lib. |
| 302 | # 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] | 303 | AC_CONFIG_HEADERS([config.h]) |
| 304 | AC_CONFIG_HEADERS([jconfig.h]) |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 305 | AC_CONFIG_FILES([libjpeg-turbo.spec:release/libjpeg-turbo.spec.in]) |
DRC | 0f53df8 | 2010-10-21 19:47:06 +0000 | [diff] [blame] | 306 | AC_CONFIG_FILES([makemacpkg:release/makemacpkg.in]) |
| 307 | AC_CONFIG_FILES([makesunpkg:release/makesunpkg.in]) |
DRC | 8515d3d | 2010-10-19 06:38:57 +0000 | [diff] [blame] | 308 | AC_CONFIG_FILES([libjpeg.map]) |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 309 | AC_CONFIG_FILES([Makefile simd/Makefile]) |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 310 | AC_OUTPUT |