Restructure autoconf around ./config directory
This commit is contained in:
parent
5b1a72b342
commit
a54f863a14
|
@ -1 +0,0 @@
|
||||||
EXTRA_DIST = zfs-build.m4
|
|
10
autogen.sh
10
autogen.sh
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
find . -type d -name .deps | xargs rm -rf
|
aclocal -I config &&
|
||||||
rm -rf config.guess config.sub ltmain.sh
|
libtoolize --automake --copy
|
||||||
libtoolize --automake
|
|
||||||
aclocal -I autoconf 2>/dev/null &&
|
|
||||||
autoheader &&
|
autoheader &&
|
||||||
automake --add-missing --include-deps # 2>/dev/null &&
|
automake --add-missing --include-deps 2>/dev/null
|
||||||
autoconf
|
autoconf
|
||||||
|
rm -rf autom4te.cache aclocal.m4
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
EXTRA_DIST = zfs-build.m4
|
||||||
|
EXTRA_DIST = kernel user lustre
|
||||||
|
|
|
@ -6,15 +6,15 @@ AC_DEFUN([ZFS_AC_CONFIG], [
|
||||||
[zfsconfig="$withval"])
|
[zfsconfig="$withval"])
|
||||||
|
|
||||||
AC_MSG_CHECKING([zfs config file])
|
AC_MSG_CHECKING([zfs config file])
|
||||||
if test -z "$zfsconfig" || test ! -r configs/$zfsconfig; then
|
if test -z "$zfsconfig" || test ! -r config/$zfsconfig; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([
|
||||||
*** Please specify one of the valid config files located
|
*** Please specify one of the valid config files located
|
||||||
*** in ./configs/ with the '--with-zfs-config=CONFIG' option])
|
*** in ./config/ with the '--with-zfs-config=CONFIG' option])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_RESULT([$zfsconfig]);
|
AC_MSG_RESULT([$zfsconfig]);
|
||||||
. ./configs/$zfsconfig
|
. ./config/$zfsconfig
|
||||||
|
|
||||||
TOPDIR=`/bin/pwd`
|
TOPDIR=`/bin/pwd`
|
||||||
ZFSDIR=${TOPDIR}/$BUILDDIR
|
ZFSDIR=${TOPDIR}/$BUILDDIR
|
|
@ -1 +0,0 @@
|
||||||
EXTRA_DIST=kernel user lustre
|
|
|
@ -138,7 +138,7 @@ AC_SUBST(HOSTCFLAGS)
|
||||||
|
|
||||||
AC_CONFIG_FILES([ Makefile
|
AC_CONFIG_FILES([ Makefile
|
||||||
autoconf/Makefile
|
autoconf/Makefile
|
||||||
configs/Makefile
|
config/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
zfs/Makefile
|
zfs/Makefile
|
||||||
|
|
Loading…
Reference in New Issue