6530
as_fn_error $? "FreeType2 is required by FTGL. Please see INSTALL" "$LINENO" 5
6521
as_fn_error $? "FreeType2 is required. Please see INSTALL" "$LINENO" 5
6535
6526
CXXFLAGS="$CXXFLAGS $FT2_CFLAGS"
6536
6527
CPPFLAGS="$CPPFLAGS $FT2_CFLAGS"
6541
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6542
if test -n "$ac_tool_prefix"; then
6543
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6544
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546
$as_echo_n "checking for $ac_word... " >&6; }
6547
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6548
$as_echo_n "(cached) " >&6
6552
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559
test -z "$as_dir" && as_dir=.
6560
for ac_exec_ext in '' $ac_executable_extensions; do
6561
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6563
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6574
if test -n "$PKG_CONFIG"; then
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6576
$as_echo "$PKG_CONFIG" >&6; }
6578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579
$as_echo "no" >&6; }
6584
if test -z "$ac_cv_path_PKG_CONFIG"; then
6585
ac_pt_PKG_CONFIG=$PKG_CONFIG
6586
# Extract the first word of "pkg-config", so it can be a program name with args.
6587
set dummy pkg-config; ac_word=$2
6588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589
$as_echo_n "checking for $ac_word... " >&6; }
6590
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6591
$as_echo_n "(cached) " >&6
6593
case $ac_pt_PKG_CONFIG in
6595
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602
test -z "$as_dir" && as_dir=.
6603
for ac_exec_ext in '' $ac_executable_extensions; do
6604
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6606
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6617
if test -n "$ac_pt_PKG_CONFIG"; then
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6619
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622
$as_echo "no" >&6; }
6625
if test "x$ac_pt_PKG_CONFIG" = x; then
6628
case $cross_compiling:$ac_tool_warned in
6630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632
ac_tool_warned=yes ;;
6634
PKG_CONFIG=$ac_pt_PKG_CONFIG
6637
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6641
if test -n "$PKG_CONFIG"; then
6642
_pkg_min_version=0.9.0
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6644
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6645
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6647
$as_echo "yes" >&6; }
6649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650
$as_echo "no" >&6; }
6657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTGL" >&5
6658
$as_echo_n "checking for FTGL... " >&6; }
6660
if test -n "$PKG_CONFIG"; then
6661
if test -n "$FTGL_CFLAGS"; then
6662
pkg_cv_FTGL_CFLAGS="$FTGL_CFLAGS"
6664
if test -n "$PKG_CONFIG" && \
6665
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ftgl >= 2.1.3\""; } >&5
6666
($PKG_CONFIG --exists --print-errors "ftgl >= 2.1.3") 2>&5
6668
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669
test $ac_status = 0; }; then
6670
pkg_cv_FTGL_CFLAGS=`$PKG_CONFIG --cflags "ftgl >= 2.1.3" 2>/dev/null`
6678
if test -n "$PKG_CONFIG"; then
6679
if test -n "$FTGL_LIBS"; then
6680
pkg_cv_FTGL_LIBS="$FTGL_LIBS"
6682
if test -n "$PKG_CONFIG" && \
6683
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ftgl >= 2.1.3\""; } >&5
6684
($PKG_CONFIG --exists --print-errors "ftgl >= 2.1.3") 2>&5
6686
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687
test $ac_status = 0; }; then
6688
pkg_cv_FTGL_LIBS=`$PKG_CONFIG --libs "ftgl >= 2.1.3" 2>/dev/null`
6699
if test $pkg_failed = yes; then
6701
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6702
_pkg_short_errors_supported=yes
6704
_pkg_short_errors_supported=no
6706
if test $_pkg_short_errors_supported = yes; then
6707
FTGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ftgl >= 2.1.3"`
6709
FTGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ftgl >= 2.1.3"`
6711
# Put the nasty error message in config.log where it belongs
6712
echo "$FTGL_PKG_ERRORS" >&5
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715
$as_echo "no" >&6; }
6716
as_fn_error $? "FTGL 2.1.3 or greater is required. Please see INSTALL" "$LINENO" 5
6717
elif test $pkg_failed = untried; then
6718
as_fn_error $? "FTGL 2.1.3 or greater is required. Please see INSTALL" "$LINENO" 5
6720
FTGL_CFLAGS=$pkg_cv_FTGL_CFLAGS
6721
FTGL_LIBS=$pkg_cv_FTGL_LIBS
6722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723
$as_echo "yes" >&6; }
6726
CXXFLAGS="$CXXFLAGS $FTGL_CFLAGS"
6727
CPPFLAGS="$CPPFLAGS $FTGL_CFLAGS"
6728
LIBS="$LIBS $FTGL_LIBS"
6731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5
6732
$as_echo_n "checking for png_read_info in -lpng... " >&6; }
6733
if test "${ac_cv_lib_png_png_read_info+set}" = set; then :
6734
$as_echo_n "(cached) " >&6
6736
ac_check_lib_save_LIBS=$LIBS
6738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739
/* end confdefs.h. */
6741
/* Override any GCC internal prototype to avoid an error.
6742
Use char because int might match the return type of a GCC
6743
builtin and then its argument prototype would still apply. */
6747
char png_read_info ();
6751
return png_read_info ();
6756
if ac_fn_cxx_try_link "$LINENO"; then :
6757
ac_cv_lib_png_png_read_info=yes
6759
ac_cv_lib_png_png_read_info=no
6761
rm -f core conftest.err conftest.$ac_objext \
6762
conftest$ac_exeext conftest.$ac_ext
6763
LIBS=$ac_check_lib_save_LIBS
6765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5
6766
$as_echo "$ac_cv_lib_png_png_read_info" >&6; }
6767
if test "x$ac_cv_lib_png_png_read_info" = x""yes; then :
6768
cat >>confdefs.h <<_ACEOF
6769
#define HAVE_LIBPNG 1
6775
as_fn_error $? "PNG library required. Please see INSTALL" "$LINENO" 5
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
6781
$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
6782
if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
6783
$as_echo_n "(cached) " >&6
6785
ac_check_lib_save_LIBS=$LIBS
6787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788
/* end confdefs.h. */
6790
/* Override any GCC internal prototype to avoid an error.
6791
Use char because int might match the return type of a GCC
6792
builtin and then its argument prototype would still apply. */
6796
char jpeg_read_header ();
6800
return jpeg_read_header ();
6805
if ac_fn_cxx_try_link "$LINENO"; then :
6806
ac_cv_lib_jpeg_jpeg_read_header=yes
6808
ac_cv_lib_jpeg_jpeg_read_header=no
6810
rm -f core conftest.err conftest.$ac_objext \
6811
conftest$ac_exeext conftest.$ac_ext
6812
LIBS=$ac_check_lib_save_LIBS
6814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
6815
$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
6816
if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
6817
cat >>confdefs.h <<_ACEOF
6818
#define HAVE_LIBJPEG 1
6824
as_fn_error $? "JPEG library required. Please see INSTALL" "$LINENO" 5
6528
LIBS="$LIBS $FT2_LIBS"
6828
6530
#SDL_image library with PNG support
6829
6531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
6863
6565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&5
6864
6566
$as_echo "$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&6; }
6865
6567
if test "x$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" = x""yes; then :
6866
LIBS="$LIBS -lSDL_image"
6868
as_fn_error $? "SDL_image required. Please see INSTALL" "$LINENO" 5
6570
as_fn_error $? "SDL_image with PNG support required. Please see INSTALL" "$LINENO" 5
6574
#SDL_image library with JPG support
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadJPG_RW in -lSDL_image" >&5
6576
$as_echo_n "checking for IMG_LoadJPG_RW in -lSDL_image... " >&6; }
6577
if test "${ac_cv_lib_SDL_image_IMG_LoadJPG_RW+set}" = set; then :
6578
$as_echo_n "(cached) " >&6
6580
ac_check_lib_save_LIBS=$LIBS
6581
LIBS="-lSDL_image $LIBS"
6582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583
/* end confdefs.h. */
6585
/* Override any GCC internal prototype to avoid an error.
6586
Use char because int might match the return type of a GCC
6587
builtin and then its argument prototype would still apply. */
6591
char IMG_LoadJPG_RW ();
6595
return IMG_LoadJPG_RW ();
6600
if ac_fn_cxx_try_link "$LINENO"; then :
6601
ac_cv_lib_SDL_image_IMG_LoadJPG_RW=yes
6603
ac_cv_lib_SDL_image_IMG_LoadJPG_RW=no
6605
rm -f core conftest.err conftest.$ac_objext \
6606
conftest$ac_exeext conftest.$ac_ext
6607
LIBS=$ac_check_lib_save_LIBS
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_LoadJPG_RW" >&5
6610
$as_echo "$ac_cv_lib_SDL_image_IMG_LoadJPG_RW" >&6; }
6611
if test "x$ac_cv_lib_SDL_image_IMG_LoadJPG_RW" = x""yes; then :
6614
as_fn_error $? "SDL_image with JPG support required. Please see INSTALL" "$LINENO" 5
6618
LIBS="$LIBS -lSDL_image"
6873
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5