Displaying 2 results from an estimated 2 matches for "lcrypt_flag".
2015 Feb 12
2
[PATCH] macosx: Darwin-specific autoconf macros
...b/configure.ac
index d68190a..295de11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -582,6 +582,19 @@ fi
AC_MSG_RESULT([$DISTRO])
AC_SUBST([DISTRO])
+AC_MSG_CHECKING([whether we're building on Mac OS X])
+if test "x$(uname)" = "xDarwin"; then
+ AC_MSG_RESULT([yes])
+ LCRYPT_FLAG=
+ SHARED_LIBS_PATH="DYLD_LIBRARY_PATH"
+else
+ AC_MSG_RESULT([no])
+ LCRYPT_FLAG="-lcrypt"
+ SHARED_LIBS_PATH="LD_LIBRARY_PATH"
+fi
+AC_SUBST([LCRYPT_FLAG])
+AC_SUBST([SHARED_LIBS_PATH])
+
dnl Add extra packages to the appliance.
AC_ARG_WITH([extra-packages],...
2015 Feb 12
0
Re: [PATCH] macosx: Darwin-specific autoconf macros
...--- a/configure.ac
> +++ b/configure.ac
> @@ -582,6 +582,19 @@ fi
> AC_MSG_RESULT([$DISTRO])
> AC_SUBST([DISTRO])
>
> +AC_MSG_CHECKING([whether we're building on Mac OS X])
> +if test "x$(uname)" = "xDarwin"; then
> + AC_MSG_RESULT([yes])
> + LCRYPT_FLAG=
> + SHARED_LIBS_PATH="DYLD_LIBRARY_PATH"
> +else
> + AC_MSG_RESULT([no])
> + LCRYPT_FLAG="-lcrypt"
> + SHARED_LIBS_PATH="LD_LIBRARY_PATH"
> +fi
> +AC_SUBST([LCRYPT_FLAG])
> +AC_SUBST([SHARED_LIBS_PATH])
We link to libcrypt because it provi...