diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2022-08-22 21:33:05 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2022-08-22 21:33:05 +0000 |
commit | bf1717d383aa30df85c1981587f04b53ccbaf608 (patch) | |
tree | 7aef294a0dec56a1cea52e6e88b3c90b3cab757f /Build/source/configure | |
parent | 7754712818064ff1f642a248ab9817ef4e2d7a90 (diff) |
Potrace under libs (again) for dvisvgm and mflua/mfluajit.
git-svn-id: svn://tug.org/texlive/trunk@64168 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/configure')
-rwxr-xr-x | Build/source/configure | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/Build/source/configure b/Build/source/configure index 933dda35c13..1213d4ce2d3 100755 --- a/Build/source/configure +++ b/Build/source/configure @@ -947,6 +947,9 @@ with_system_pixman with_system_gd with_gd_includes with_gd_libdir +with_system_potrace +with_potrace_includes +with_potrace_libdir with_system_freetype2 with_system_libpng with_system_libpaper @@ -1817,6 +1820,11 @@ Optional Packages: --with-system-gd use installed gd headers and library --with-gd-includes=DIR gd headers installed in DIR --with-gd-libdir=DIR gd library installed in DIR + --with-system-potrace use installed potrace headers and library + --with-potrace-includes=DIR + potrace headers installed in DIR + --with-potrace-libdir=DIR + potrace library installed in DIR --with-system-freetype2 use installed freetype2 headers and library (requires freetype-config) --with-system-libpng use installed libpng headers and library (requires @@ -5730,6 +5738,7 @@ esac test "x$enable_web2c:$enable_mflua" = xyes:yes && { need_lua53=yes + need_potrace=yes } # Check whether --enable-mfluajit was given. if test ${enable_mfluajit+y} @@ -5757,6 +5766,7 @@ esac test "x$enable_web2c:$enable_mfluajit" = xyes:yes && { need_luajit=yes + need_potrace=yes } # Check whether --with-mf-x-toolkit was given. @@ -7178,6 +7188,49 @@ test "x$need_gd" = xyes && { need_freetype2=yes } +## libs/potrace/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/potrace/ +## configure options and TL libraries required for potrace + +# Check whether --with-system-potrace was given. +if test ${with_system_potrace+y} +then : + withval=$with_system_potrace; +fi + +# Check whether --with-potrace-includes was given. +if test ${with_potrace_includes+y} +then : + withval=$with_potrace_includes; +fi + +# Check whether --with-potrace-libdir was given. +if test ${with_potrace_libdir+y} +then : + withval=$with_potrace_libdir; +fi +if test "x$with_system_potrace" = x; then + if test -f $srcdir/libs/potrace/configure; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming \`potrace' headers and library from TL tree" >&5 +printf "%s\n" "$as_me: Assuming \`potrace' headers and library from TL tree" >&6;} + with_system_potrace=no + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Assuming installed \`potrace' headers and library" >&5 +printf "%s\n" "$as_me: Assuming installed \`potrace' headers and library" >&6;} + with_system_potrace=yes + fi + ac_configure_args="$ac_configure_args '--with-system-potrace=$with_system_potrace'" +elif test "x$with_system_potrace" = xyes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using installed \`potrace' headers and library" >&5 +printf "%s\n" "$as_me: Using installed \`potrace' headers and library" >&6;} +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using \`potrace' headers and library from TL tree" >&5 +printf "%s\n" "$as_me: Using \`potrace' headers and library from TL tree" >&6;} + if test "x$with_system_potrace" != xno; then + with_system_potrace=no + ac_configure_args="$ac_configure_args '--without-system-potrace'" + fi +fi + ## libs/freetype2/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/freetype2/ ## configure options and TL libraries required for freetype2 @@ -22652,6 +22705,13 @@ elif test "x$need_PPLIB:$with_system_PPLIB" = xyes:yes; then as_fn_error $? "did not find PPLIB" "$LINENO" 5 fi +if $PKG_CONFIG POTRACE; then + POTRACE_INCLUDES=`$PKG_CONFIG POTRACE --cflags` + POTRACE_LIBS=`$PKG_CONFIG POTRACE --libs` +elif test "x$need_POTRACE:$with_system_POTRACE" = xyes:yes; then + as_fn_error $? "did not find POTRACE" "$LINENO" 5 +fi + ##tldbg _KPSE_LIB_FLAGS_SYSTEM: libpaper (paper). if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then LIBPAPER_INCLUDES="-I$with_libpaper_includes" @@ -23356,6 +23416,38 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ printf "%s\n" "$kpse_res" >&6; } fi +## libs/potrace/ac/potrace.ac: configure.ac fragment for the TeX Live subdirectory libs/potrace/ +## basic check of system potrace +if test "x$need_potrace:$with_system_potrace" = xyes:yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking requested system \`potrace' library" >&5 +printf %s "checking requested system \`potrace' library... " >&6; } + CPPFLAGS="$POTRACE_INCLUDES $CPPFLAGS" + LIBS="$POTRACE_LIBS $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <potracelib.h> +int +main (void) +{ +potrace_state_t st; +const char *version = potrace_version(); +potrace_state_free(&st); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + syslib_used=yes kpse_res=ok +else $as_nop + syslib_status=no kpse_res=failed +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5 +printf "%s\n" "$kpse_res" >&6; } +fi + ## libs/gd/ac/gd.ac: configure.ac fragment for the TeX Live subdirectory libs/gd/ ## basic check of system gd if test "x$need_gd:$with_system_gd" = xyes:yes; then |