X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=configure.ac;h=5d541fb4260909168d8c30c4087610857e3958e7;hp=38fe3419b21a9d658b8feb4d214d0905568fd52c;hb=d61806e79788d996581311d2eb25bc043c37435a;hpb=77f337931a96c33ff0ba66fb7f05891d520e8132 diff --git a/configure.ac b/configure.ac index 38fe341..5d541fb 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,27 @@ AC_CHECK_LIB([devmapper], [dm_task_create], [AC_MSG_FAILURE([The libdevmapper development library is required by petitboot. Try installing the package libdevmapper-dev or device-mapper-devel.])] ) +AC_ARG_ENABLE( + [crypt], + [AS_HELP_STRING( + [--enable-crypt], + [Include crypt support to enable password use [default=no]] + )], + [], + [enable_crypt=no] +) +AM_CONDITIONAL([ENABLE_CRYPT], [test "x$enable_crypt" = "xyes"]) +AS_IF([test "x$enable_crypt" = "xyes"], + [AC_DEFINE(CRYPT_SUPPORT, 1, [Enable crypt/password support])], + [] +) +AS_IF([test "x$enable_crypt" = "xyes"], + AC_CHECK_LIB([crypt], [crypt], + [CRYPT_LIBS=-lcrypt], + [AC_MSG_FAILURE([shadow/crypt libs required])] + ) +) + AC_ARG_WITH([fdt], AS_HELP_STRING([--without-fdt], [Build without libfdt (default: no)])) @@ -313,7 +334,7 @@ AC_ARG_ENABLE( ) AS_IF( [test "x$enable_platform_all" = "xyes"], - [enable_platform_powerpc="yes"; enable_platform_ps3="yes"] + [enable_platform_arm64="yes"; enable_platform_powerpc="yes"; enable_platform_ps3="yes"] ) AC_ARG_ENABLE( @@ -328,10 +349,20 @@ AC_ARG_ENABLE( AS_IF( [test "x$enable_platform_auto" = "xyes"], [AS_CASE([$host], + [aarch64-*-*], [enable_platform_arm64="yes"], [powerpc*-*-*], [enable_platform_powerpc="yes"], )] ) +AC_ARG_ENABLE( + [platform-arm64], + [AS_HELP_STRING( + [--enable-platform-arm64], + [build support for arm64 platforms [default=no]] + )] +) +AM_CONDITIONAL([PLATFORM_ARM64], [test "x$enable_platform_arm64" = "xyes"]) + AC_ARG_ENABLE( [platform-powerpc], [AS_HELP_STRING( @@ -394,6 +425,8 @@ DEFINE_HOST_PROG(PB_PLUGIN, pb-plugin, [/usr/sbin/pb-plugin]) DEFINE_HOST_PROG(PB_EXEC, pb-exec, [/usr/sbin/pb-exec]) DEFINE_HOST_PROG(SH, sh, [/bin/sh]) DEFINE_HOST_PROG(SCSI_RESCAN, scsi-rescan, [/usr/sbin/scsi-rescan]) +DEFINE_HOST_PROG(DMIDECODE, dmidecode, [/sbin/dmidecode]) +DEFINE_HOST_PROG(CRYPTSETUP, CRYPTSETUP, [/usr/sbin/cryptsetup]) AC_ARG_WITH( [tftp], @@ -444,6 +477,7 @@ AS_IF( AC_SUBST([UDEV_LIBS]) AC_SUBST([DEVMAPPER_LIBS]) +AC_SUBST([CRYPT_LIBS]) AC_SUBST([FDT_LIBS]) AC_SUBST([LIBFLASH_LIBS]) AC_SUBST([LIBTOOL_DEPS])