@@ -305,110 +305,29 @@ if test $have_tm_gmtoff = "yes" ; then
305
305
fi
306
306
307
307
308
- # raptor is REQUIRED despite the checking here
309
- RAPTOR_MIN_VERSION=1.4.19
310
- RAPTOR_MAX_VERSION=1.8.99
311
- RAPTOR2_MIN_VERSION=1.9.2
308
+ # raptor V2 is REQUIRED; --enable-raptor2 option was removed
309
+ RAPTOR_MIN_VERSION=1.9.2
312
310
313
- raptor2=no
314
- AC_ARG_ENABLE ( raptor2 , [ --enable-raptor2 Enable use of raptor2] , raptor2="$enableval" , raptor2="no" )
315
-
316
- AC_SUBST ( RAPTOR_MIN_VERSION )
317
- AC_SUBST ( RAPTOR_MAX_VERSION )
318
311
319
312
AC_CHECK_PROGS ( PKG_CONFIG , pkg-config )
320
313
if test "X$PKG_CONFIG" = X; then
321
- AC_MSG_WARN ( pkg-config not found. configuring raptor 2.0 will require it. Get it from http://pkg-config.freedesktop.org/ )
314
+ AC_MSG_ERROR ( pkg-config not found. configuring raptor V2 requires it. Get it from http://pkg-config.freedesktop.org/ )
322
315
fi
323
316
324
317
AC_MSG_CHECKING ( for raptor )
325
- RAPTOR_VERSION_DEC=0
326
- if test "X$PKG_CONFIG" != X; then
327
- # When raptor2 is stable, this can be changed to prefer raptor2
328
- # For now an explicit configure --enable-raptor2 is required.
329
- if test "X$raptor2" = "Xyes"; then
330
- RAPTOR_MIN_VERSION=$RAPTOR2_MIN_VERSION
331
-
332
- if $PKG_CONFIG raptor2 --exists; then
333
- RAPTOR_CONFIG="$PKG_CONFIG raptor2"
334
- RAPTOR_PACKAGE="raptor2"
335
- else
336
- AC_MSG_ERROR ( Raptor2 is not installed - see http://librdf.org/raptor/ to get a version newer than $RAPTOR_MIN_VERSION )
337
- fi
338
- else
339
- if $PKG_CONFIG raptor --exists; then
340
- if $PKG_CONFIG raptor --atleast-version=$RAPTOR_MIN_VERSION --max-version=$RAPTOR_MAX_VERSION; then
341
- RAPTOR_CONFIG="$PKG_CONFIG raptor"
342
- RAPTOR_PACKAGE="raptor"
343
- else
344
- AC_MSG_ERROR ( Installed raptor $RAPTOR_VERSION is not in supported range - $RAPTOR_MIN_VERSION to $RAPTOR_MAX_VERSION )
345
- fi
346
- else
347
- AC_MSG_ERROR ( Raptor is not installed - see http://librdf.org/raptor/ to get a version newer than $RAPTOR_MIN_VERSION )
348
- fi
349
- fi
350
318
351
- with_raptor=system
352
- RAPTOR_VERSION=`$RAPTOR_CONFIG --modversion 2>/dev/null`
319
+ if $PKG_CONFIG raptor2 --exists; then
320
+ RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`
353
321
RAPTOR_VERSION_DEC=`echo $RAPTOR_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
322
+ AC_MSG_RESULT ( system $RAPTOR_VERSION )
354
323
else
355
- # otherwise use raptor-config for raptor V1 only
356
- raptor2=no
357
- AC_CHECK_PROG ( RAPTOR_CONFIG , raptor-config , raptor-config )
358
- AC_ARG_WITH ( raptor , [ --with-raptor=SOURCE Pick raptor source - system/internal (default auto)] , with_raptor="$withval" , with_raptor="auto" )
359
-
360
- if test "X$RAPTOR_CONFIG" = X; then
361
- with_raptor=internal
362
- else
363
- RAPTOR_VERSION=`$RAPTOR_CONFIG --version 2>/dev/null`
364
-
365
- RAPTOR_VERSION_DEC=`$RAPTOR_CONFIG --version-decimal 2>/dev/null`
366
- RAPTOR_MIN_VERSION_DEC=`echo $RAPTOR_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
367
- RAPTOR_MAX_VERSION_DEC=`echo $RAPTOR_MAX_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'`
368
-
369
- if test "X$with_raptor" = Xauto; then
370
- if test "X$RAPTOR_VERSION" != X -a $RAPTOR_VERSION_DEC -ge $RAPTOR_MIN_VERSION_DEC -a $RAPTOR_VERSION_DEC -le $RAPTOR_MAX_VERSION_DEC; then
371
- with_raptor=system
372
- else
373
- AC_MSG_WARN ( System raptor $RAPTOR_VERSION is not in supported range - $RAPTOR_MIN_VERSION to $RAPTOR_MAX_VERSION )
374
- with_raptor=internal
375
- fi
376
- elif test $with_raptor = system; then
377
- if test $RAPTOR_VERSION_DEC -lt $RAPTOR_MIN_VERSION_DEC -o $RAPTOR_VERSION_DEC -gt $RAPTOR_MAX_VERSION_DEC; then
378
- AC_MSG_WARN ( System raptor $RAPTOR_VERSION is not in supported range - $RAPTOR_MIN_VERSION to $RAPTOR_MAX_VERSION )
379
- AC_MSG_WARN ( Proceeding anyway since -- with-raptor=system was given )
380
- AC_MSG_WARN ( To use the internal raptor use -- with-raptor=internal )
381
- AC_MSG_WARN ( or omit any -- with-raptor argument. )
382
- fi
383
- fi
324
+ AC_MSG_RESULT ( not found )
384
325
385
- unset RAPTOR_MIN_VERSION_DEC RAPTOR_MAX_VERSION_DEC
386
- fi
387
- RAPTOR_PACKAGE="raptor"
326
+ AC_MSG_ERROR ( Raptor V2 is not installed - see http://librdf.org/raptor/ to get a version newer than $RAPTOR_MIN_VERSION )
388
327
fi
389
- AC_SUBST ( with_raptor )
390
- AC_SUBST ( RAPTOR_PACKAGE )
391
328
392
- if test $with_raptor = system; then
393
- AC_MSG_RESULT ( system $RAPTOR_VERSION )
394
- else
395
- RAPTOR_VERSION=internal
396
- AC_MSG_RESULT ( internal )
397
- if test ! -r $srcdir/../raptor/src/raptor_general.c; then
398
- AC_MSG_ERROR ( Raptor sources missing from $srcdir/../raptor directory - cannot use internal )
399
- fi
400
- fi
401
329
AC_SUBST ( RAPTOR_VERSION_DEC )
402
330
403
- AM_CONDITIONAL(RAPTOR2, test "X$raptor2" = "Xyes")
404
- if test "X$raptor2" = "Xyes"; then
405
- AC_DEFINE ( HAVE_RAPTOR2_API , 1 , [ Raptor2 API is available] )
406
- HAVE_RAPTOR2_API=1
407
- else
408
- HAVE_RAPTOR2_API=0
409
- fi
410
- AC_SUBST ( HAVE_RAPTOR2_API )
411
-
412
331
413
332
AC_CHECK_PROG ( REDLAND_CONFIG , redland-config , redland-config )
414
333
AC_ARG_WITH ( redland-config , [ --with-redland-config=PATH Location of redland redland-config ()] , redland_config="$withval" , redland_config="" )
@@ -750,28 +669,9 @@ AC_MSG_RESULT($query_engine_version)
750
669
AC_DEFINE_UNQUOTED ( RASQAL_QUERY_ENGINE_VERSION , $query_engine_version , [ Query engine version] )
751
670
752
671
753
- if test $with_raptor = internal; then
754
- RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS -I\$(top_srcdir)/../raptor/src"
755
- RASQAL_INTERNAL_LIBS="$RASQAL_INTERNAL_LIBS \$(top_builddir)/../raptor/src/libraptor.la"
756
- RAPPER_PATH=":\$(top_srcdir)/../raptor/utils"
757
- else
758
- RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS `$RAPTOR_CONFIG --cflags`"
759
- RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS `$RAPTOR_CONFIG --libs`"
760
- RAPPER_PATH=""
761
- fi
762
-
763
-
764
- oLIBS="$LIBS"
765
- LIBS="$LIBS $RASQAL_EXTERNAL_LIBS"
766
- # FIXME remove these raptor checks when RAPTOR2_MIN_VERSION increases
767
- # raptor_stringbuffer_append_hexadecimal() is in raptor2 >1.9.0
768
- AC_CHECK_FUNC ( raptor_stringbuffer_append_uri_escaped_counted_string , have_rsauecs=yes , have_rsauecs=no )
769
- LIBS="$oLIBS"
770
-
771
- if test "X$have_rsauecs" = Xyes; then
772
- AC_DEFINE ( RAPTOR_STRINGBUFFER_APPEND_URI_ESCAPED_COUNTED_STRING , 1 , [ Have raptor_stringbuffer_append_uri_escaped_counted_string()] )
773
- fi
774
-
672
+ RASQAL_INTERNAL_CPPFLAGS="$RASQAL_INTERNAL_CPPFLAGS `$PKG_CONFIG raptor2 --cflags`"
673
+ RASQAL_EXTERNAL_LIBS="$RASQAL_EXTERNAL_LIBS `$PKG_CONFIG raptor2 --libs`"
674
+ RAPPER_PATH=""
775
675
776
676
if test $need_regex_pcre = 1; then
777
677
C=`$PCRE_CONFIG --cflags`
0 commit comments