@@ -385,7 +385,10 @@ then
385
385
fi
386
386
fi
387
387
388
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix mysql)/] , [ with_mysql=$(brew --prefix mysql)] )
388
+ AS_IF (
389
+ [ (test "x$with_mysql" = xyes || test "x$with_mysql" = xcheck) \
390
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix mysql)/] ,
391
+ [ with_mysql=$(brew --prefix mysql)] )
389
392
390
393
CF3_WITH_LIBRARY(mysql,
391
394
[ AC_CHECK_LIB ( mysqlclient , mysql_real_connect ,
@@ -450,7 +453,10 @@ AC_ARG_WITH([lmdb],
450
453
AS_IF ( [ test $WITH_TOKYO -eq 0 && test $WITH_QDBM -eq 0 && (! test -n "$with_lmdb" || test "x$with_lmdb" != "xno")] , [ WITH_LMDB=1] , [ WITH_LMDB=0] )
451
454
452
455
if test $WITH_LMDB = 1; then
453
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix lmdb)/] , [ with_lmdb=$(brew --prefix lmdb)] )
456
+ AS_IF (
457
+ [ (test "x$with_lmdb" = xyes || test "x$with_lmdb" = xcheck || test "x$with_lmdb" = x) \
458
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix lmdb)/] ,
459
+ [ with_lmdb=$(brew --prefix lmdb)] )
454
460
455
461
CF3_WITH_LIBRARY(lmdb, [
456
462
AC_CHECK_LIB ( lmdb , mdb_dbi_open , [ ] , [ AC_MSG_ERROR ( Cannot find Lightning MDB ) ] )
@@ -475,7 +481,10 @@ if test x"$with_openssl" = xno ; then
475
481
AC_MSG_ERROR ( [ This release of CFEngine requires OpenSSL >= 0.9.7] )
476
482
fi
477
483
478
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix openssl)/] , [ with_openssl=$(brew --prefix openssl)] )
484
+ AS_IF (
485
+ [ (test "x$with_openssl" = xyes || test "x$with_openssl" = xcheck) \
486
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix openssl)/] ,
487
+ [ with_openssl=$(brew --prefix openssl)] )
479
488
480
489
CF3_WITH_LIBRARY(openssl, [
481
490
AC_CHECK_LIB ( crypto , RSA_generate_key_ex , [ ] , [ ] )
@@ -521,7 +530,10 @@ if test "x$with_pcre2" = "xno"; then
521
530
AC_MSG_ERROR ( [ PCRE2 is required] )
522
531
fi
523
532
524
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix pcre2)/] , [ with_pcre2=$(brew --prefix pcre2)] )
533
+ AS_IF (
534
+ [ (test "x$with_pcre2" = xyes || test "x$with_pcre2" = xcheck) \
535
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix pcre2)/] ,
536
+ [ with_pcre2=$(brew --prefix pcre2)] )
525
537
526
538
CF3_WITH_LIBRARY(pcre2, [
527
539
AC_CHECK_LIB ( pcre2-8 , pcre2_compile_8 , [ ] , [ AC_MSG_ERROR ( Cannot find PCRE2 ) ] )
@@ -541,7 +553,10 @@ if test "x$with_librsync" = "xno"; then
541
553
AC_MSG_ERROR ( [ librsync is required] )
542
554
fi
543
555
544
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix librsync)/] , [ with_librsync=$(brew --prefix librsync)] )
556
+ AS_IF (
557
+ [ (test "x$with_librsync" = xyes || test "x$with_librsync" = xcheck) \
558
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix librsync)/] ,
559
+ [ with_librsync=$(brew --prefix librsync)] )
545
560
546
561
CF3_WITH_LIBRARY(librsync, [
547
562
AC_CHECK_HEADERS ( [ librsync.h] , [ ] , AC_MSG_ERROR ( Cannot find librsync ) )
@@ -562,8 +577,10 @@ AC_ARG_WITH([libvirt],
562
577
563
578
if test "x$with_libvirt" != xno
564
579
then
565
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix libvirt)/] , [ with_libvirt=$(brew --prefix libvirt)] )
566
-
580
+ AS_IF (
581
+ [ (test "x$with_libvirt" = xyes || test "x$with_libvirt" = xcheck) \
582
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix libvirt)/] ,
583
+ [ with_libvirt=$(brew --prefix libvirt)] )
567
584
CF3_WITH_LIBRARY(libvirt, [
568
585
AC_CHECK_LIB ( virt , virConnectOpen , [ ] , [ if test "x$with_libvirt" != xcheck; then AC_MSG_ERROR ( Cannot find libvirt library ) ; fi] )
569
586
AC_CHECK_HEADERS ( libvirt/libvirt.h , [ ] , [ if test "x$with_libvirt" != xcheck; then AC_MSG_ERROR ( Cannot find libvirt library headers ) ; fi] )
@@ -603,8 +620,6 @@ AC_ARG_WITH([libcurl],
603
620
604
621
if test "x$with_libcurl" != xno
605
622
then
606
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix curl)/] , [ with_libcurl=$(brew --prefix curl)] )
607
-
608
623
CF3_WITH_LIBRARY(libcurl, [
609
624
AC_CHECK_LIB ( curl , curl_global_init ,
610
625
[ ] ,
@@ -630,7 +645,10 @@ AC_ARG_WITH([libyaml],
630
645
631
646
if test "x$with_libyaml" != xno
632
647
then
633
- AS_IF ( [ test "x$have_brew" = "xyes" && test -d $(brew --prefix libyaml)/] , [ with_libyaml=$(brew --prefix libyaml)] )
648
+ AS_IF (
649
+ [ (test "x$with_libyaml" = xyes || test "x$with_libyaml" = xcheck) \
650
+ && test "x$have_brew" = "xyes" && test -d $(brew --prefix libyaml)/] ,
651
+ [ with_libyaml=$(brew --prefix libyaml)] )
634
652
635
653
CF3_WITH_LIBRARY(libyaml, [
636
654
AC_CHECK_LIB ( yaml , yaml_parser_initialize ,
@@ -709,7 +727,7 @@ if test "x$with_libxml2" != "xno"; then
709
727
AC_MSG_ERROR ( Cannot find libxml2 ) ; fi]
710
728
) ]
711
729
)
712
-
730
+
713
731
fi
714
732
715
733
AM_CONDITIONAL([ HAVE_LIBXML2] ,
0 commit comments