Formatting tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@943 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
70
configure.ac
70
configure.ac
@@ -24,9 +24,10 @@ AC_PROG_LN_S
|
|||||||
# Check whether compiler supports pointers to undefined structures
|
# Check whether compiler supports pointers to undefined structures
|
||||||
AC_MSG_CHECKING(whether compiler supports pointers to undefined structures)
|
AC_MSG_CHECKING(whether compiler supports pointers to undefined structures)
|
||||||
AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], ,
|
AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], ,
|
||||||
AC_MSG_RESULT(yes),
|
AC_MSG_RESULT(yes),
|
||||||
[AC_MSG_RESULT(no)
|
[AC_MSG_RESULT(no)
|
||||||
AC_DEFINE([INCOMPLETE_TYPES_BROKEN],[1],[Compiler does not support pointers to undefined structures.])])
|
AC_DEFINE([INCOMPLETE_TYPES_BROKEN], [1],
|
||||||
|
[Compiler does not support pointers to undefined structures.])])
|
||||||
|
|
||||||
if test "x${GCC}" = "xyes"; then
|
if test "x${GCC}" = "xyes"; then
|
||||||
if test "x${SAVED_CFLAGS}" = "x"; then
|
if test "x${SAVED_CFLAGS}" = "x"; then
|
||||||
@@ -49,7 +50,8 @@ fi
|
|||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
|
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
|
||||||
AC_CHECK_HEADER([sys/types.h], AC_DEFINE([NEED_SYS_TYPES_H], 1, [Define if you have sys/types.h]))
|
AC_CHECK_HEADER([sys/types.h],
|
||||||
|
AC_DEFINE([NEED_SYS_TYPES_H], 1, [Define if you have sys/types.h]))
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
@@ -92,7 +94,8 @@ AC_TRY_LINK(
|
|||||||
int possibly_dupli_function () { return 1; }], [ ],
|
int possibly_dupli_function () { return 1; }], [ ],
|
||||||
[AC_MSG_RESULT(ok)],
|
[AC_MSG_RESULT(ok)],
|
||||||
[AC_MSG_RESULT(short)
|
[AC_MSG_RESULT(short)
|
||||||
AC_DEFINE([NEED_SHORT_EXTERNAL_NAMES], 1, [Define if you need short function names])])
|
AC_DEFINE([NEED_SHORT_EXTERNAL_NAMES], 1,
|
||||||
|
[Define if you need short function names])])
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_CHECK_FUNCS([memset memcpy], [],
|
AC_CHECK_FUNCS([memset memcpy], [],
|
||||||
@@ -103,9 +106,11 @@ AC_MSG_CHECKING([libjpeg API version])
|
|||||||
AC_ARG_VAR(JPEG_LIB_VERSION, [libjpeg API version (62, 70, or 80)])
|
AC_ARG_VAR(JPEG_LIB_VERSION, [libjpeg API version (62, 70, or 80)])
|
||||||
if test "x$JPEG_LIB_VERSION" = "x"; then
|
if test "x$JPEG_LIB_VERSION" = "x"; then
|
||||||
AC_ARG_WITH([jpeg7],
|
AC_ARG_WITH([jpeg7],
|
||||||
AC_HELP_STRING([--with-jpeg7], [Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
|
AC_HELP_STRING([--with-jpeg7],
|
||||||
|
[Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
|
||||||
AC_ARG_WITH([jpeg8],
|
AC_ARG_WITH([jpeg8],
|
||||||
AC_HELP_STRING([--with-jpeg8], [Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
|
AC_HELP_STRING([--with-jpeg8],
|
||||||
|
[Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
|
||||||
if test "x${with_jpeg8}" = "xyes"; then
|
if test "x${with_jpeg8}" = "xyes"; then
|
||||||
JPEG_LIB_VERSION=80
|
JPEG_LIB_VERSION=80
|
||||||
else
|
else
|
||||||
@@ -119,10 +124,13 @@ fi
|
|||||||
JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
|
JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
|
||||||
AC_SUBST(JPEG_LIB_VERSION_DECIMAL)
|
AC_SUBST(JPEG_LIB_VERSION_DECIMAL)
|
||||||
AC_MSG_RESULT([$JPEG_LIB_VERSION_DECIMAL])
|
AC_MSG_RESULT([$JPEG_LIB_VERSION_DECIMAL])
|
||||||
AC_DEFINE_UNQUOTED(JPEG_LIB_VERSION, [$JPEG_LIB_VERSION], [libjpeg API version])
|
AC_DEFINE_UNQUOTED(JPEG_LIB_VERSION, [$JPEG_LIB_VERSION],
|
||||||
|
[libjpeg API version])
|
||||||
|
|
||||||
AC_ARG_VAR(SO_MAJOR_VERSION, [Major version of the libjpeg-turbo shared library (default is determined by the API version)])
|
AC_ARG_VAR(SO_MAJOR_VERSION,
|
||||||
AC_ARG_VAR(SO_MINOR_VERSION, [Minor version of the libjpeg-turbo shared library (default is determined by the API version)])
|
[Major version of the libjpeg-turbo shared library (default is determined by the API version)])
|
||||||
|
AC_ARG_VAR(SO_MINOR_VERSION,
|
||||||
|
[Minor version of the libjpeg-turbo shared library (default is determined by the API version)])
|
||||||
if test "x$SO_MAJOR_VERSION" = "x"; then
|
if test "x$SO_MAJOR_VERSION" = "x"; then
|
||||||
case "$JPEG_LIB_VERSION" in
|
case "$JPEG_LIB_VERSION" in
|
||||||
62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
|
62) SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
|
||||||
@@ -144,10 +152,12 @@ MEM_SRCDST_FUNCTIONS=
|
|||||||
if test "x${with_jpeg8}" != "xyes"; then
|
if test "x${with_jpeg8}" != "xyes"; then
|
||||||
AC_MSG_CHECKING([whether to include in-memory source/destination managers])
|
AC_MSG_CHECKING([whether to include in-memory source/destination managers])
|
||||||
AC_ARG_WITH([mem-srcdst],
|
AC_ARG_WITH([mem-srcdst],
|
||||||
AC_HELP_STRING([--without-mem-srcdst], [Do not include in-memory source/destination manager functions when emulating the libjpeg v6b or v7 API/ABI]))
|
AC_HELP_STRING([--without-mem-srcdst],
|
||||||
|
[Do not include in-memory source/destination manager functions when emulating the libjpeg v6b or v7 API/ABI]))
|
||||||
if test "x$with_mem_srcdst" != "xno"; then
|
if test "x$with_mem_srcdst" != "xno"; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AC_DEFINE([MEM_SRCDST_SUPPORTED], [1], [Support in-memory source/destination managers])
|
AC_DEFINE([MEM_SRCDST_SUPPORTED], [1],
|
||||||
|
[Support in-memory source/destination managers])
|
||||||
SO_AGE=1
|
SO_AGE=1
|
||||||
MEM_SRCDST_FUNCTIONS="global: jpeg_mem_dest; jpeg_mem_src;";
|
MEM_SRCDST_FUNCTIONS="global: jpeg_mem_dest; jpeg_mem_src;";
|
||||||
else
|
else
|
||||||
@@ -182,11 +192,15 @@ VERS_1 {
|
|||||||
};
|
};
|
||||||
EOF
|
EOF
|
||||||
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []),
|
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []),
|
||||||
[VERSION_SCRIPT_FLAG=-Wl,--version-script,; AC_MSG_RESULT([yes (GNU style)])], [])
|
[VERSION_SCRIPT_FLAG=-Wl,--version-script,;
|
||||||
|
AC_MSG_RESULT([yes (GNU style)])],
|
||||||
|
[])
|
||||||
if test "x$VERSION_SCRIPT_FLAG" = "x"; then
|
if test "x$VERSION_SCRIPT_FLAG" = "x"; then
|
||||||
LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
|
LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
|
||||||
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []),
|
AC_LINK_IFELSE(AC_LANG_PROGRAM([], []),
|
||||||
[VERSION_SCRIPT_FLAG=-Wl,-M,; AC_MSG_RESULT([yes (Sun style)])], [])
|
[VERSION_SCRIPT_FLAG=-Wl,-M,;
|
||||||
|
AC_MSG_RESULT([yes (Sun style)])],
|
||||||
|
[])
|
||||||
fi
|
fi
|
||||||
if test "x$VERSION_SCRIPT_FLAG" = "x"; then
|
if test "x$VERSION_SCRIPT_FLAG" = "x"; then
|
||||||
VERSION_SCRIPT=no
|
VERSION_SCRIPT=no
|
||||||
@@ -217,7 +231,8 @@ AC_DEFINE_UNQUOTED([INLINE],[$ljt_cv_inline],[How to obtain function inlining.])
|
|||||||
# Arithmetic coding support
|
# Arithmetic coding support
|
||||||
AC_MSG_CHECKING([whether to include arithmetic encoding support])
|
AC_MSG_CHECKING([whether to include arithmetic encoding support])
|
||||||
AC_ARG_WITH([arith-enc],
|
AC_ARG_WITH([arith-enc],
|
||||||
AC_HELP_STRING([--without-arith-enc], [Do not include arithmetic encoding support]))
|
AC_HELP_STRING([--without-arith-enc],
|
||||||
|
[Do not include arithmetic encoding support]))
|
||||||
if test "x$with_arith_enc" = "xno"; then
|
if test "x$with_arith_enc" = "xno"; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
|
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
|
||||||
@@ -229,7 +244,8 @@ AM_CONDITIONAL([WITH_ARITH_ENC], [test "x$with_arith_enc" != "xno"])
|
|||||||
|
|
||||||
AC_MSG_CHECKING([whether to include arithmetic decoding support])
|
AC_MSG_CHECKING([whether to include arithmetic decoding support])
|
||||||
AC_ARG_WITH([arith-dec],
|
AC_ARG_WITH([arith-dec],
|
||||||
AC_HELP_STRING([--without-arith-dec], [Do not include arithmetic decoding support]))
|
AC_HELP_STRING([--without-arith-dec],
|
||||||
|
[Do not include arithmetic decoding support]))
|
||||||
if test "x$with_arith_dec" = "xno"; then
|
if test "x$with_arith_dec" = "xno"; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
|
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
|
||||||
@@ -239,12 +255,14 @@ else
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"])
|
AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"])
|
||||||
|
|
||||||
AM_CONDITIONAL([WITH_ARITH], [test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"])
|
AM_CONDITIONAL([WITH_ARITH],
|
||||||
|
[test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"])
|
||||||
|
|
||||||
# TurboJPEG support
|
# TurboJPEG support
|
||||||
AC_MSG_CHECKING([whether to build TurboJPEG C wrapper])
|
AC_MSG_CHECKING([whether to build TurboJPEG C wrapper])
|
||||||
AC_ARG_WITH([turbojpeg],
|
AC_ARG_WITH([turbojpeg],
|
||||||
AC_HELP_STRING([--without-turbojpeg],[Do not include the TurboJPEG wrapper library and associated test programs]))
|
AC_HELP_STRING([--without-turbojpeg],
|
||||||
|
[Do not include the TurboJPEG wrapper library and associated test programs]))
|
||||||
if test "x$with_turbojpeg" = "xno"; then
|
if test "x$with_turbojpeg" = "xno"; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
|
RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
|
||||||
@@ -270,11 +288,12 @@ if test "x$JAVA" = "x"; then
|
|||||||
JAVA=java
|
JAVA=java
|
||||||
fi
|
fi
|
||||||
AC_SUBST(JAVA)
|
AC_SUBST(JAVA)
|
||||||
AC_ARG_VAR(JNI_CFLAGS, [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)])
|
AC_ARG_VAR(JNI_CFLAGS,
|
||||||
|
[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)])
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build TurboJPEG Java wrapper])
|
AC_MSG_CHECKING([whether to build TurboJPEG Java wrapper])
|
||||||
AC_ARG_WITH([java],
|
AC_ARG_WITH([java],
|
||||||
AC_HELP_STRING([--with-java],[Build Java wrapper for the TurboJPEG library]))
|
AC_HELP_STRING([--with-java], [Build Java wrapper for the TurboJPEG library]))
|
||||||
if test "x$with_turbojpeg" = "xno"; then
|
if test "x$with_turbojpeg" = "xno"; then
|
||||||
with_java=no
|
with_java=no
|
||||||
fi
|
fi
|
||||||
@@ -319,7 +338,8 @@ AC_SUBST(JAVA_RPM_CONTENTS_2)
|
|||||||
|
|
||||||
# optionally force using gas-preprocessor.pl for compatibility testing
|
# optionally force using gas-preprocessor.pl for compatibility testing
|
||||||
AC_ARG_WITH([gas-preprocessor],
|
AC_ARG_WITH([gas-preprocessor],
|
||||||
AC_HELP_STRING([--with-gas-preprocessor],[Force using gas-preprocessor.pl on ARM.]))
|
AC_HELP_STRING([--with-gas-preprocessor],
|
||||||
|
[Force using gas-preprocessor.pl on ARM.]))
|
||||||
if test "x${with_gas_preprocessor}" = "xyes"; then
|
if test "x${with_gas_preprocessor}" = "xyes"; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
darwin*)
|
darwin*)
|
||||||
@@ -334,7 +354,7 @@ fi
|
|||||||
|
|
||||||
# SIMD is optional
|
# SIMD is optional
|
||||||
AC_ARG_WITH([simd],
|
AC_ARG_WITH([simd],
|
||||||
AC_HELP_STRING([--without-simd],[Do not include SIMD extensions]))
|
AC_HELP_STRING([--without-simd], [Do not include SIMD extensions]))
|
||||||
if test "x${with_simd}" != "xno"; then
|
if test "x${with_simd}" != "xno"; then
|
||||||
# Check if we're on a supported CPU
|
# Check if we're on a supported CPU
|
||||||
AC_MSG_CHECKING([if we have SIMD optimisations for cpu type])
|
AC_MSG_CHECKING([if we have SIMD optimisations for cpu type])
|
||||||
@@ -412,11 +432,11 @@ AC_CONFIG_FILES([pkgscripts/Description.plist:release/Description.plist.in])
|
|||||||
AC_CONFIG_FILES([pkgscripts/Info.plist:release/Info.plist.in])
|
AC_CONFIG_FILES([pkgscripts/Info.plist:release/Info.plist.in])
|
||||||
AC_CONFIG_FILES([pkgscripts/uninstall:release/uninstall.in])
|
AC_CONFIG_FILES([pkgscripts/uninstall:release/uninstall.in])
|
||||||
if test "x$with_turbojpeg" != "xno"; then
|
if test "x$with_turbojpeg" != "xno"; then
|
||||||
AC_CONFIG_FILES([tjbenchtest])
|
AC_CONFIG_FILES([tjbenchtest])
|
||||||
fi
|
fi
|
||||||
if test "x$with_java" = "xyes"; then
|
if test "x$with_java" = "xyes"; then
|
||||||
AC_CONFIG_FILES([tjbenchtest.java])
|
AC_CONFIG_FILES([tjbenchtest.java])
|
||||||
AC_CONFIG_FILES([tjexampletest])
|
AC_CONFIG_FILES([tjexampletest])
|
||||||
fi
|
fi
|
||||||
AC_CONFIG_FILES([libjpeg.map])
|
AC_CONFIG_FILES([libjpeg.map])
|
||||||
AC_CONFIG_FILES([Makefile simd/Makefile])
|
AC_CONFIG_FILES([Makefile simd/Makefile])
|
||||||
|
|||||||
Reference in New Issue
Block a user