]> git.proxmox.com Git - mirror_corosync.git/commitdiff
configure: move exec_prefix sanitize
authorFabio M. Di Nitto <fdinitto@redhat.com>
Tue, 9 Mar 2021 10:04:30 +0000 (11:04 +0100)
committerJan Friesse <jfriesse@redhat.com>
Tue, 9 Mar 2021 10:55:02 +0000 (11:55 +0100)
Move exec_prefix sanitize closer to prefix. This is not
functional change, just group functional tests together.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
configure.ac

index 08428ba984e47bbb25263b9b3a99739e719edbf4..c5aa7e7e95da7299f6021580f709a2a98e8a8371 100644 (file)
@@ -69,6 +69,13 @@ if test "$prefix" = "NONE"; then
        fi
 fi
 
+AC_MSG_NOTICE(Sanitizing exec_prefix: ${exec_prefix})
+case $exec_prefix in
+  dnl For consistency with Corosync, map NONE->$prefix
+  NONE)   exec_prefix=$prefix;;
+  prefix) exec_prefix=$prefix;;
+esac
+
 if test "$srcdir" = "."; then
        AC_MSG_NOTICE([building in place srcdir:$srcdir])
        AC_DEFINE([BUILDING_IN_PLACE], 1, [building in place])
@@ -288,14 +295,6 @@ cc_supports_flag() {
        return $RC
 }
 
-## cleanup
-AC_MSG_NOTICE(Sanitizing exec_prefix: ${exec_prefix})
-case $exec_prefix in
-  dnl For consistency with Corosync, map NONE->$prefix
-  NONE)   exec_prefix=$prefix;;
-  prefix) exec_prefix=$prefix;;
-esac
-
 ## local defines
 PACKAGE_FEATURES=""