suzuki toshiya pushed to branch master at FreeType / FreeType
Commits:
-
bccf1cd6
by suzuki toshiya at 2022-11-08T14:31:23+09:00
1 changed file:
Changes:
... | ... | @@ -406,16 +406,12 @@ if test x"$with_png" = xyes -o x"$with_png" = xauto; then |
406 | 406 | have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
|
407 | 407 | else
|
408 | 408 | # fall back to config script
|
409 | - AC_MSG_CHECKING([for libpng-config])
|
|
410 | - if which libpng-config > /dev/null 2>&1; then
|
|
409 | + AC_CHECK_PROG(have_libpng, [libpng-config], [yes (libpng-config)], [no])
|
|
410 | + if test "$have_libpng" != no; then
|
|
411 | 411 | LIBPNG_CFLAGS=`libpng-config --cflags`
|
412 | 412 | LIBPNG_LIBS=`libpng-config --ldflags`
|
413 | 413 | libpng_libspriv=`libpng-config --static --ldflags`
|
414 | 414 | libpng_libsstaticconf="$libpng_libspriv"
|
415 | - have_libpng="yes (libpng-config)"
|
|
416 | - AC_MSG_RESULT([yes])
|
|
417 | - else
|
|
418 | - AC_MSG_RESULT([no])
|
|
419 | 415 | fi
|
420 | 416 | fi
|
421 | 417 | fi
|