summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-02-24 14:29:00 +0100
committerSlávek Banko <[email protected]>2019-02-24 15:25:02 +0100
commit66db0a23d76e988b27d4f19cfcf476c3b2bf0df7 (patch)
treeadb56d064ecc2fafd43b8c2565b3916937898281 /configure.in.in
parent67fdd9491221c3a55785ec0184364ef2ddfd3780 (diff)
downloadkbarcode-66db0a23d76e988b27d4f19cfcf476c3b2bf0df7.tar.gz
kbarcode-66db0a23d76e988b27d4f19cfcf476c3b2bf0df7.zip
automake: add WITH_NATIVE_GNU_BARCODE and WITH_JAVASCRIPT build options
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 62481690071ce35abc780ba582a292b82b35b350)
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index 3448a6e..70485d4 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -5,3 +5,37 @@ AM_INIT_AUTOMAKE(kbarcode, 2.0.7)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
+AC_ARG_WITH(native-gnu-barcode,
+ AC_HELP_STRING([--without-native-gnu-barcode],[disable build with GNU Barcode [default=auto]]),
+ [with_native_gnu_barcode=$withval],
+ [with_native_gnu_barcode=auto]
+)
+if test "$with_native_gnu_barcode" != "no"; then
+ KDE_CHECK_HEADERS([barcode.h], [have_gnu_barcode="yes"], [have_gnu_barcode=no])
+ if test "$have_gnu_barcode" = "yes"; then
+ AC_DEFINE(_ENABLE_NATIVE_GNU_BARCODE, 1, [Define to 1 if you have <barcode.h> header file.])
+ else
+ if test "$with_native_gnu_barcode" = "yes"; then
+ echo "Barcode is requested, but GNU Barcode header was not found on your system"
+ exit
+ fi
+ fi
+fi
+
+AC_ARG_WITH(javascript,
+ AC_HELP_STRING([--without-javascript],[build KBarcode without javascript interpreter [default=auto]]),
+ [with_javascript=$withval],
+ [with_javascript=auto]
+)
+if test "$with_javascript" != "no"; then
+ KDE_CHECK_HEADERS([kjs/interpreter.h], [have_javascript="yes"], [have_javascript=no])
+ if test "$have_javascript" = "yes"; then
+ AC_DEFINE(USE_JAVASCRIPT, 1, [Define to 1 if you have <kjs/interpreter.h> header file.])
+ AC_DEFINE(NO_KJS_EMBED, 1, [Define to 1 for use tdelibs javascript interpreter])
+ else
+ if test "$with_javascript" = "yes"; then
+ echo "Javascript interpreter is requested, but tdelibs Javascript header (kjs) was not found on your system"
+ exit
+ fi
+ fi
+fi