]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
build: Update configure.in.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Fri, 19 Feb 2021 13:46:58 +0000 (14:46 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
bacula/autoconf/configure.in

index d001177e4d3b2f7dae2ff0101bcef5a6e64d651e..c8ce0f10a6d588c6cdef2a006d29ec8f65ceafe5 100644 (file)
@@ -3230,40 +3230,6 @@ AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
    ]
 )
 
-dnl
-dnl Enable/Disable plugin support
-dnl
-
-dnl Docker Plugin
-support_docker=auto
-AC_ARG_ENABLE(docker-plugin,
-   AC_HELP_STRING([--disable-docker-plugin], [disable Docker plugin support @<:@default=auto@:>@]),
-   [
-      if test x$enableval = xyes; then
-         support_docker=yes
-      elif test x$enableval = xno; then
-         support_docker=disabled
-      fi
-   ]
-)
-if test x$support_docker = xyes -o x$support_docker = xauto; then
-   AC_CHECK_PROG(docker_bin, docker, yes, no, "/usr/bin/")
-   if test x$docker_bin = xyes; then
-      support_docker=yes
-      FD_PLUGIN_DIR="${FD_PLUGIN_DIR} src/plugins/fd/docker"
-   else
-      if test x$support_docker = xyes; then
-         echo " "
-         echo "You enabled a Docker Plugin build but 'docker' command not found."
-         echo " "
-         exit 1
-      fi
-      support_docker=no
-   fi
-fi
-
-AC_SUBST(FD_PLUGIN_DIR)
-
 dnl
 dnl Check for LDAP libraries
 dnl
@@ -3322,6 +3288,40 @@ AC_SUBST(LDAP_LDFLAGS)
 AC_SUBST(LDAP_INC)
 AC_SUBST(LDAP_LIBS)
 
+dnl
+dnl Enable/Disable plugin support
+dnl
+
+dnl Docker Plugin
+support_docker=auto
+AC_ARG_ENABLE(docker-plugin,
+   AC_HELP_STRING([--disable-docker-plugin], [disable Docker plugin support @<:@default=auto@:>@]),
+   [
+      if test x$enableval = xyes; then
+         support_docker=yes
+      elif test x$enableval = xno; then
+         support_docker=disabled
+      fi
+   ]
+)
+if test x$support_docker = xyes -o x$support_docker = xauto; then
+   AC_CHECK_PROG(docker_bin, docker, yes, no, "/usr/bin/")
+   if test x$docker_bin = xyes; then
+      support_docker=yes
+      FD_PLUGIN_DIR="${FD_PLUGIN_DIR} src/plugins/fd/docker"
+   else
+      if test x$support_docker = xyes; then
+         echo " "
+         echo "You enabled a Docker Plugin build but 'docker' command not found."
+         echo " "
+         exit 1
+      fi
+      support_docker=no
+   fi
+fi
+
+AC_SUBST(FD_PLUGIN_DIR)
+
 dnl
 dnl Bacula Pluggable Authentication Modules - Director Plugins
 dnl