34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From da40eed219ad53bcbf1a2de351bf38e507f67717 Mon Sep 17 00:00:00 2001
|
|
From: root <root@localhost.localdomain>
|
|
Date: Sun, 25 Jun 2023 16:10:11 +0800
|
|
Subject: [PATCH] fix the synctex path error
|
|
|
|
---
|
|
configure.ac | 10 ++++++----
|
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 10ec0f3..2ba0b23 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -54,10 +54,12 @@ PKG_CHECK_MODULES(gtkspell3, [gtkspell3-3.0],,
|
|
GUI_CFLAGS="$GUI_CFLAGS $gtkspell3_CFLAGS"
|
|
GUI_LIBS="$GUI_LIBS $gtkspell3_LIBS"
|
|
|
|
-PKG_CHECK_MODULES(synctex, [synctex >= 1.16],,
|
|
- [AC_MSG_ERROR([You need synctex to build $PACKAGE])])
|
|
-GUI_CFLAGS="$GUI_CFLAGS $synctex_CFLAGS"
|
|
-GUI_LIBS="$GUI_LIBS $synctex_LIBS"
|
|
+AC_ARG_WITH([synctex-libs],
|
|
+ [AS_HELP_STRING([--with-synctex-libs],[synctex libs directory])],
|
|
+ [GUI_LIBS="$GUI_LIBS -$withval"])
|
|
+AC_ARG_WITH([synctex-cflags],
|
|
+ [AS_HELP_STRING([--with-synctex-cflags],[synctex cflags directory])],
|
|
+ [GUI_CFLAGS="$GUI_CFLAGS -I$withval"])
|
|
|
|
# Set USE_SYNCTEX1 for synctex (< 2.00) compatibility
|
|
if $PKG_CONFIG --max-version 1.99 synctex; then
|
|
--
|
|
2.33.0
|
|
|