diff --git a/ChangeLog.new-variables b/ChangeLog.new-variables new file mode 100644 index 0000000..3b94cc2 --- /dev/null +++ b/ChangeLog.new-variables @@ -0,0 +1,3 @@ +Define some useful variables + + * configure.ac: Define some useful variables. diff --git a/configure.ac b/configure.ac index d362f68..49761af 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,18 @@ AC_SUBST(host_kernel) AC_SUBST(target_cpu) AC_SUBST(platform) +# Define default variables +case "$host_os" in + netbsd* | openbsd*) + # Because /boot is used for the boot block in NetBSD and OpenBSD, + bootdirname='' ;; + *) bootdirname='boot' ;; +esac +AC_SUBST(bootdirname) + +grubdirname="$PACKAGE" +AC_SUBST(grubdirname) + # # Checks for build programs. #