common/autoconf/generated-configure.sh

Print this page




 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS



 659 USE_EXTERNAL_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 OPENWIN_HOME
 668 X_EXTRA_LIBS
 669 X_LIBS
 670 X_PRE_LIBS
 671 X_CFLAGS
 672 XMKMF
 673 FIXPATH
 674 ZIP_DEBUGINFO_FILES
 675 ENABLE_DEBUG_SYMBOLS
 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 677 ZERO_ARCHFLAG
 678 LDFLAGS_CXX_JDK


1058 with_import_hotspot
1059 with_toolchain_type
1060 with_jtreg
1061 with_extra_cflags
1062 with_extra_cxxflags
1063 with_extra_ldflags
1064 enable_debug_symbols
1065 enable_zip_debug_info
1066 enable_macosx_runtime_support
1067 with_x
1068 with_cups
1069 with_cups_include
1070 with_freetype
1071 with_freetype_include
1072 with_freetype_lib
1073 enable_freetype_bundling
1074 with_alsa
1075 with_alsa_include
1076 with_alsa_lib
1077 with_giflib

1078 with_libpng
1079 with_zlib
1080 with_stdc__lib
1081 with_msvcr_dll
1082 with_dxsdk
1083 with_dxsdk_lib
1084 with_dxsdk_include
1085 with_num_cores
1086 with_memory_size
1087 with_jobs
1088 with_sjavac_server_java
1089 enable_sjavac
1090 enable_precompiled_headers
1091 enable_ccache
1092 with_ccache_dir
1093 '
1094       ac_precious_vars='build_alias
1095 host_alias
1096 target_alias
1097 BASENAME


1171 AS
1172 AR
1173 OBJC
1174 OBJCFLAGS
1175 LIPO
1176 STRIP
1177 NM
1178 GNM
1179 MCS
1180 OBJCOPY
1181 OBJDUMP
1182 BUILD_CC
1183 BUILD_CXX
1184 BUILD_LD
1185 JTREGEXE
1186 XMKMF
1187 FREETYPE_CFLAGS
1188 FREETYPE_LIBS
1189 ALSA_CFLAGS
1190 ALSA_LIBS


1191 PNG_CFLAGS
1192 PNG_LIBS
1193 LIBFFI_CFLAGS
1194 LIBFFI_LIBS
1195 CCACHE'
1196 
1197 
1198 # Initialize some variables set by options.
1199 ac_init_help=
1200 ac_init_version=false
1201 ac_unrecognized_opts=
1202 ac_unrecognized_sep=
1203 # The variables have the same names as the options, with
1204 # dashes changed to underlines.
1205 cache_file=/dev/null
1206 exec_prefix=NONE
1207 no_create=
1208 no_recursion=
1209 prefix=NONE
1210 program_prefix=NONE


1911   --with-jtreg            Regression Test Harness [probed]
1912   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1913   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1914   --with-extra-ldflags    extra flags to be used when linking jdk
1915   --with-x                use the X Window System
1916   --with-cups             specify prefix directory for the cups package
1917                           (expecting the headers under PATH/include)
1918   --with-cups-include     specify directory for the cups include files
1919   --with-freetype         specify prefix directory for the freetype package
1920                           (expecting the libraries under PATH/lib and the
1921                           headers under PATH/include)
1922   --with-freetype-include specify directory for the freetype include files
1923   --with-freetype-lib     specify directory for the freetype library
1924   --with-alsa             specify prefix directory for the alsa package
1925                           (expecting the libraries under PATH/lib and the
1926                           headers under PATH/include)
1927   --with-alsa-include     specify directory for the alsa include files
1928   --with-alsa-lib         specify directory for the alsa library
1929   --with-giflib           use giflib from build system or OpenJDK source
1930                           (system, bundled) [bundled]


1931   --with-libpng           use libpng from build system or OpenJDK source
1932                           (system, bundled) [bundled]
1933   --with-zlib             use zlib from build system or OpenJDK source
1934                           (system, bundled) [bundled]
1935   --with-stdc++lib=<static>,<dynamic>,<default>
1936                           force linking of the C++ runtime on Linux to either
1937                           static or dynamic, default is static with dynamic as
1938                           fallback
1939   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1940                           only) [probed]
1941   --with-dxsdk            Deprecated. Option is kept for backwards
1942                           compatibility and is ignored
1943   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1944                           compatibility and is ignored
1945   --with-dxsdk-include    Deprecated. Option is kept for backwards
1946                           compatibility and is ignored
1947   --with-num-cores        number of cores in the build system, e.g.
1948                           --with-num-cores=8 [probed]
1949   --with-memory-size      memory (in MB) available in the build system, e.g.
1950                           --with-memory-size=1024 [probed]


2037   OBJC        Objective C compiler command
2038   OBJCFLAGS   Objective C compiler flags
2039   LIPO        Override default value for LIPO
2040   STRIP       Override default value for STRIP
2041   NM          Override default value for NM
2042   GNM         Override default value for GNM
2043   MCS         Override default value for MCS
2044   OBJCOPY     Override default value for OBJCOPY
2045   OBJDUMP     Override default value for OBJDUMP
2046   BUILD_CC    Override default value for BUILD_CC
2047   BUILD_CXX   Override default value for BUILD_CXX
2048   BUILD_LD    Override default value for BUILD_LD
2049   JTREGEXE    Override default value for JTREGEXE
2050   XMKMF       Path to xmkmf, Makefile generator for X Window System
2051   FREETYPE_CFLAGS
2052               C compiler flags for FREETYPE, overriding pkg-config
2053   FREETYPE_LIBS
2054               linker flags for FREETYPE, overriding pkg-config
2055   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2056   ALSA_LIBS   linker flags for ALSA, overriding pkg-config


2057   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2058   PNG_LIBS    linker flags for PNG, overriding pkg-config
2059   LIBFFI_CFLAGS
2060               C compiler flags for LIBFFI, overriding pkg-config
2061   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2062   CCACHE      Override default value for CCACHE
2063 
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066 
2067 Report bugs to <build-dev@openjdk.java.net>.
2068 OpenJDK home page: <http://openjdk.java.net>.
2069 _ACEOF
2070 ac_status=$?
2071 fi
2072 
2073 if test "$ac_init_help" = "recursive"; then
2074   # If there are subdirs, report their specific --help.
2075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076     test -d "$ac_dir" ||


4215 
4216 # Check if the VS env variables were setup prior to running configure.
4217 # If not, then find vcvarsall.bat and run it automatically, and integrate
4218 # the set env variables into the spec file.
4219 
4220 
4221 
4222 
4223 
4224 
4225 
4226 
4227 
4228 
4229 # This line needs to be here, verbatim, after all includes and the dummy hook
4230 # definitions. It is replaced with custom functionality when building
4231 # custom sources.
4232 #CUSTOM_AUTOCONF_INCLUDE
4233 
4234 # Do not change or remove the following line, it is needed for consistency checks:
4235 DATE_WHEN_GENERATED=1394794899
4236 
4237 ###############################################################################
4238 #
4239 # Initialization / Boot-strapping
4240 #
4241 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4242 # thus it jumps back and forth, each time gaining something needed later on.
4243 #
4244 ###############################################################################
4245 
4246 # If we are requested to print additional help, do that and then exit.
4247 # This must be the very first call.
4248 
4249   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4250     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4251     $PRINTF "Which are valid to use depends on the build platform.\n"
4252     for toolchain in $VALID_TOOLCHAINS_all; do
4253       # Use indirect variable referencing
4254       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4255       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


46903 LIBS=$ac_check_lib_save_LIBS
46904 fi
46905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
46906 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
46907 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
46908   cat >>confdefs.h <<_ACEOF
46909 #define HAVE_LIBGIF 1
46910 _ACEOF
46911 
46912   LIBS="-lgif $LIBS"
46913 
46914 else
46915    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
46916 fi
46917 
46918 
46919     USE_EXTERNAL_LIBGIF=true
46920   else
46921     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
46922   fi













































































































46923 
46924 
46925   ###############################################################################
46926   #
46927   # Check for the png library
46928   #
46929 
46930 
46931 # Check whether --with-libpng was given.
46932 if test "${with_libpng+set}" = set; then :
46933   withval=$with_libpng;
46934 fi
46935 
46936 
46937 
46938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
46939 $as_echo_n "checking for which libpng to use... " >&6; }
46940 
46941   # default is bundled
46942   DEFAULT_LIBPNG=bundled




 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LCMS
 660 LCMS_LIBS
 661 LCMS_CFLAGS
 662 USE_EXTERNAL_LIBGIF
 663 USE_EXTERNAL_LIBJPEG
 664 ALSA_LIBS
 665 ALSA_CFLAGS
 666 FREETYPE_BUNDLE_LIB_PATH
 667 FREETYPE_LIBS
 668 FREETYPE_CFLAGS
 669 CUPS_CFLAGS
 670 OPENWIN_HOME
 671 X_EXTRA_LIBS
 672 X_LIBS
 673 X_PRE_LIBS
 674 X_CFLAGS
 675 XMKMF
 676 FIXPATH
 677 ZIP_DEBUGINFO_FILES
 678 ENABLE_DEBUG_SYMBOLS
 679 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 680 ZERO_ARCHFLAG
 681 LDFLAGS_CXX_JDK


1061 with_import_hotspot
1062 with_toolchain_type
1063 with_jtreg
1064 with_extra_cflags
1065 with_extra_cxxflags
1066 with_extra_ldflags
1067 enable_debug_symbols
1068 enable_zip_debug_info
1069 enable_macosx_runtime_support
1070 with_x
1071 with_cups
1072 with_cups_include
1073 with_freetype
1074 with_freetype_include
1075 with_freetype_lib
1076 enable_freetype_bundling
1077 with_alsa
1078 with_alsa_include
1079 with_alsa_lib
1080 with_giflib
1081 with_lcms
1082 with_libpng
1083 with_zlib
1084 with_stdc__lib
1085 with_msvcr_dll
1086 with_dxsdk
1087 with_dxsdk_lib
1088 with_dxsdk_include
1089 with_num_cores
1090 with_memory_size
1091 with_jobs
1092 with_sjavac_server_java
1093 enable_sjavac
1094 enable_precompiled_headers
1095 enable_ccache
1096 with_ccache_dir
1097 '
1098       ac_precious_vars='build_alias
1099 host_alias
1100 target_alias
1101 BASENAME


1175 AS
1176 AR
1177 OBJC
1178 OBJCFLAGS
1179 LIPO
1180 STRIP
1181 NM
1182 GNM
1183 MCS
1184 OBJCOPY
1185 OBJDUMP
1186 BUILD_CC
1187 BUILD_CXX
1188 BUILD_LD
1189 JTREGEXE
1190 XMKMF
1191 FREETYPE_CFLAGS
1192 FREETYPE_LIBS
1193 ALSA_CFLAGS
1194 ALSA_LIBS
1195 LCMS_CFLAGS
1196 LCMS_LIBS
1197 PNG_CFLAGS
1198 PNG_LIBS
1199 LIBFFI_CFLAGS
1200 LIBFFI_LIBS
1201 CCACHE'
1202 
1203 
1204 # Initialize some variables set by options.
1205 ac_init_help=
1206 ac_init_version=false
1207 ac_unrecognized_opts=
1208 ac_unrecognized_sep=
1209 # The variables have the same names as the options, with
1210 # dashes changed to underlines.
1211 cache_file=/dev/null
1212 exec_prefix=NONE
1213 no_create=
1214 no_recursion=
1215 prefix=NONE
1216 program_prefix=NONE


1917   --with-jtreg            Regression Test Harness [probed]
1918   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1919   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1920   --with-extra-ldflags    extra flags to be used when linking jdk
1921   --with-x                use the X Window System
1922   --with-cups             specify prefix directory for the cups package
1923                           (expecting the headers under PATH/include)
1924   --with-cups-include     specify directory for the cups include files
1925   --with-freetype         specify prefix directory for the freetype package
1926                           (expecting the libraries under PATH/lib and the
1927                           headers under PATH/include)
1928   --with-freetype-include specify directory for the freetype include files
1929   --with-freetype-lib     specify directory for the freetype library
1930   --with-alsa             specify prefix directory for the alsa package
1931                           (expecting the libraries under PATH/lib and the
1932                           headers under PATH/include)
1933   --with-alsa-include     specify directory for the alsa include files
1934   --with-alsa-lib         specify directory for the alsa library
1935   --with-giflib           use giflib from build system or OpenJDK source
1936                           (system, bundled) [bundled]
1937   --with-lcms             use lcms2 from build system or OpenJDK source
1938                           (system, bundled) [bundled]
1939   --with-libpng           use libpng from build system or OpenJDK source
1940                           (system, bundled) [bundled]
1941   --with-zlib             use zlib from build system or OpenJDK source
1942                           (system, bundled) [bundled]
1943   --with-stdc++lib=<static>,<dynamic>,<default>
1944                           force linking of the C++ runtime on Linux to either
1945                           static or dynamic, default is static with dynamic as
1946                           fallback
1947   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1948                           only) [probed]
1949   --with-dxsdk            Deprecated. Option is kept for backwards
1950                           compatibility and is ignored
1951   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1952                           compatibility and is ignored
1953   --with-dxsdk-include    Deprecated. Option is kept for backwards
1954                           compatibility and is ignored
1955   --with-num-cores        number of cores in the build system, e.g.
1956                           --with-num-cores=8 [probed]
1957   --with-memory-size      memory (in MB) available in the build system, e.g.
1958                           --with-memory-size=1024 [probed]


2045   OBJC        Objective C compiler command
2046   OBJCFLAGS   Objective C compiler flags
2047   LIPO        Override default value for LIPO
2048   STRIP       Override default value for STRIP
2049   NM          Override default value for NM
2050   GNM         Override default value for GNM
2051   MCS         Override default value for MCS
2052   OBJCOPY     Override default value for OBJCOPY
2053   OBJDUMP     Override default value for OBJDUMP
2054   BUILD_CC    Override default value for BUILD_CC
2055   BUILD_CXX   Override default value for BUILD_CXX
2056   BUILD_LD    Override default value for BUILD_LD
2057   JTREGEXE    Override default value for JTREGEXE
2058   XMKMF       Path to xmkmf, Makefile generator for X Window System
2059   FREETYPE_CFLAGS
2060               C compiler flags for FREETYPE, overriding pkg-config
2061   FREETYPE_LIBS
2062               linker flags for FREETYPE, overriding pkg-config
2063   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2064   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2065   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2066   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2067   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2068   PNG_LIBS    linker flags for PNG, overriding pkg-config
2069   LIBFFI_CFLAGS
2070               C compiler flags for LIBFFI, overriding pkg-config
2071   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2072   CCACHE      Override default value for CCACHE
2073 
2074 Use these variables to override the choices made by `configure' or to help
2075 it to find libraries and programs with nonstandard names/locations.
2076 
2077 Report bugs to <build-dev@openjdk.java.net>.
2078 OpenJDK home page: <http://openjdk.java.net>.
2079 _ACEOF
2080 ac_status=$?
2081 fi
2082 
2083 if test "$ac_init_help" = "recursive"; then
2084   # If there are subdirs, report their specific --help.
2085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2086     test -d "$ac_dir" ||


4225 
4226 # Check if the VS env variables were setup prior to running configure.
4227 # If not, then find vcvarsall.bat and run it automatically, and integrate
4228 # the set env variables into the spec file.
4229 
4230 
4231 
4232 
4233 
4234 
4235 
4236 
4237 
4238 
4239 # This line needs to be here, verbatim, after all includes and the dummy hook
4240 # definitions. It is replaced with custom functionality when building
4241 # custom sources.
4242 #CUSTOM_AUTOCONF_INCLUDE
4243 
4244 # Do not change or remove the following line, it is needed for consistency checks:
4245 DATE_WHEN_GENERATED=1395265893
4246 
4247 ###############################################################################
4248 #
4249 # Initialization / Boot-strapping
4250 #
4251 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4252 # thus it jumps back and forth, each time gaining something needed later on.
4253 #
4254 ###############################################################################
4255 
4256 # If we are requested to print additional help, do that and then exit.
4257 # This must be the very first call.
4258 
4259   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4260     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4261     $PRINTF "Which are valid to use depends on the build platform.\n"
4262     for toolchain in $VALID_TOOLCHAINS_all; do
4263       # Use indirect variable referencing
4264       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4265       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


46913 LIBS=$ac_check_lib_save_LIBS
46914 fi
46915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
46916 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
46917 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
46918   cat >>confdefs.h <<_ACEOF
46919 #define HAVE_LIBGIF 1
46920 _ACEOF
46921 
46922   LIBS="-lgif $LIBS"
46923 
46924 else
46925    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
46926 fi
46927 
46928 
46929     USE_EXTERNAL_LIBGIF=true
46930   else
46931     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
46932   fi
46933 
46934 
46935   ###############################################################################
46936   #
46937   # Check for the lcms2 library
46938   #
46939 
46940 
46941 # Check whether --with-lcms was given.
46942 if test "${with_lcms+set}" = set; then :
46943   withval=$with_lcms;
46944 fi
46945 
46946 
46947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5
46948 $as_echo_n "checking for which lcms to use... " >&6; }
46949 
46950   DEFAULT_LCMS=bundled
46951 
46952   #
46953   # If user didn't specify, use DEFAULT_LCMS
46954   #
46955   if test "x${with_lcms}" = "x"; then
46956       with_lcms=${DEFAULT_LCMS}
46957   fi
46958 
46959   if test "x${with_lcms}" = "xbundled"; then
46960     USE_EXTERNAL_LCMS=false
46961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
46962 $as_echo "bundled" >&6; }
46963   elif test "x${with_lcms}" = "xsystem"; then
46964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
46965 $as_echo "system" >&6; }
46966 
46967 pkg_failed=no
46968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
46969 $as_echo_n "checking for LCMS... " >&6; }
46970 
46971 if test -n "$LCMS_CFLAGS"; then
46972     pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
46973  elif test -n "$PKG_CONFIG"; then
46974     if test -n "$PKG_CONFIG" && \
46975     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
46976   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
46977   ac_status=$?
46978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46979   test $ac_status = 0; }; then
46980   pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
46981 else
46982   pkg_failed=yes
46983 fi
46984  else
46985     pkg_failed=untried
46986 fi
46987 if test -n "$LCMS_LIBS"; then
46988     pkg_cv_LCMS_LIBS="$LCMS_LIBS"
46989  elif test -n "$PKG_CONFIG"; then
46990     if test -n "$PKG_CONFIG" && \
46991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
46992   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
46993   ac_status=$?
46994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46995   test $ac_status = 0; }; then
46996   pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
46997 else
46998   pkg_failed=yes
46999 fi
47000  else
47001     pkg_failed=untried
47002 fi
47003 
47004 
47005 
47006 if test $pkg_failed = yes; then
47007 
47008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47009         _pkg_short_errors_supported=yes
47010 else
47011         _pkg_short_errors_supported=no
47012 fi
47013         if test $_pkg_short_errors_supported = yes; then
47014                 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
47015         else
47016                 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
47017         fi
47018         # Put the nasty error message in config.log where it belongs
47019         echo "$LCMS_PKG_ERRORS" >&5
47020 
47021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47022 $as_echo "no" >&6; }
47023                 LCMS_FOUND=no
47024 elif test $pkg_failed = untried; then
47025         LCMS_FOUND=no
47026 else
47027         LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
47028         LCMS_LIBS=$pkg_cv_LCMS_LIBS
47029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47030 $as_echo "yes" >&6; }
47031         LCMS_FOUND=yes
47032 fi
47033     if test "x${LCMS_FOUND}" = "xyes"; then
47034       USE_EXTERNAL_LCMS=true
47035     else
47036       as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5
47037     fi
47038   else
47039     as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5
47040   fi
47041 
47042 
47043 
47044   ###############################################################################
47045   #
47046   # Check for the png library
47047   #
47048 
47049 
47050 # Check whether --with-libpng was given.
47051 if test "${with_libpng+set}" = set; then :
47052   withval=$with_libpng;
47053 fi
47054 
47055 
47056 
47057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47058 $as_echo_n "checking for which libpng to use... " >&6; }
47059 
47060   # default is bundled
47061   DEFAULT_LIBPNG=bundled