@@ -132,6 +132,12 @@ AC_ARG_WITH([bdj-bootclasspath],
132
132
AC_ARG_WITH ( [ java9] ,
133
133
[ AS_HELP_STRING ( [ --with-java9] , [ build with Java 9+ (drop support for Java <1.6) @<:@ default=without@:>@ ] ) ] )
134
134
135
+ AC_ARG_WITH ( [ external-libudfread] ,
136
+ [ AS_HELP_STRING ( [ --without-external-libudfread] ,
137
+ [ build without external libudfread @<:@ default=with@:>@ ] ) ] ,
138
+ [ with_external_libudfread=$withwal] ,
139
+ [ with_external_libudfread=yes] )
140
+
135
141
dnl required programs
136
142
AC_PROG_CC
137
143
AM_PROG_CC_C_O
@@ -310,11 +316,14 @@ AM_CONDITIONAL([BDJ_J2SE], [ test x"$BDJ_TYPE" != x"j2me" ])
310
316
dnl bootclasspath
311
317
AC_SUBST ( BDJ_BOOTCLASSPATH )
312
318
313
- PKG_CHECK_MODULES([ LIBUDFREAD] , [ libudfread >= 1.1.0] ,
314
- [ with_libudfread=yes
315
- AC_DEFINE ( [ HAVE_LIBUDFREAD] , [ 1] , [ Define to 1 if external libudfread is to be used] )
316
- PACKAGES="$PACKAGES libudfread >= 1.1.0"
317
- ] ,[
319
+ AS_IF ( [ test "x$with_external_libudfread" = "xyes"] , [
320
+ PKG_CHECK_MODULES([ LIBUDFREAD] , [ libudfread >= 1.1.0] ,
321
+ [ with_libudfread=yes
322
+ AC_DEFINE ( [ HAVE_LIBUDFREAD] , [ 1] , [ Define to 1 if external libudfread is to be used] )
323
+ PACKAGES="$PACKAGES libudfread >= 1.1.0"
324
+ ] ,[ break;] )
325
+ ] )
326
+ AS_IF ( [ test "x$with_libudfread" != "xyes"] , [
318
327
dnl udf support (using git submodule)
319
328
with_libudfread=no
320
329
AS_IF ( [ test ! -f "${srcdir}/contrib/libudfread/src/udfread.h"] , [ AC_MSG_ERROR ( "libudfread source tree not found" ) ] )
0 commit comments