X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=configure.ac;h=08685ec02feb765c755afab9f884ac5fb4474398;hp=b540819fe14d54ca08d62a8829e053f333d6d3d8;hb=8364bca5ca92c24061fe222a61e357af8315d151;hpb=d1f814a1e310b5c1e6b32d5bdbf7b7450c221325;ds=inline diff --git a/configure.ac b/configure.ac index b540819..08685ec 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,16 @@ AC_CHECK_LIB([udev], [udev_new], [AC_MSG_FAILURE([The libudev development library is required by petitboot. Try installing the package libudev-dev or libudev-devel.])] ) +AC_ARG_WITH([fdt], + AS_HELP_STRING([--without-fdt], + [Build without libfdt (default: no)])) + +AS_IF([test "x$with_fdt" != "xno"], + AC_CHECK_LIB([fdt], [fdt_check_header], + [FDT_LIBS=-lfdt; have_libfdt=yes])) + +AM_CONDITIONAL([HAVE_LIBFDT], [test x"$have_libfdt" = xyes]) + AC_CHECK_HEADERS([stdarg.h]) AC_CHECK_HEADERS([varargs.h]) @@ -161,6 +171,21 @@ AC_ARG_ENABLE( ) #AM_CONDITIONAL([ENABLE_BUSYBOX], [test "x$enable_busybox" = "xyes"]) +AC_ARG_ENABLE( + [mtd], + [AS_HELP_STRING( + [--enable-mtd], + [Add support for MTD devices on certain platforms [default=no]] + )], + [], + [enable_mtd=no] +) +AM_CONDITIONAL([ENABLE_MTD], [test "x$enable_mtd" = "xyes"]) +AS_IF([test "x$enable_mtd" = "xyes"], + [AC_DEFINE(MTD_SUPPORT, 1, [Enable MTD support])], + [] +) + AC_ARG_ENABLE( [ps3], [AS_HELP_STRING( @@ -260,6 +285,7 @@ AS_IF( ) AC_SUBST([UDEV_LIBS]) +AC_SUBST([FDT_LIBS]) AC_SUBST([LIBTOOL_DEPS]) AC_SUBST([DESTDIR]) AC_SUBST([pkgsysconfdir], ["${sysconfdir}/${package}"])