diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-12-27 20:55:29 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-12-27 20:55:29 -0700 |
commit | eefde42da7da15b305a56b443c166bfd96ba7432 (patch) | |
tree | 26b71938274ce79d1f7ae79a359e7daddcd7f48b /configure.ac | |
parent | 054440ecce3a1ea1292cc52f37a84ad21d04cd6d (diff) | |
download | alpine-eefde42da7da15b305a56b443c166bfd96ba7432.tar.xz |
* crypto.h is installed in /usr/include in cygwin, but everyone else
installs it in /usr/include/openssl. Also other systems seem to
install crypto.h when they install openssl, so we only check for the
existence of crypto.h in Cygwin.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 174ca89..8dfd5fa 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ dnl */ AC_PREREQ([2.69]) -AC_REVISION([Rev:20 by chappa@washington.edu]) +AC_REVISION([Rev:21 by chappa@washington.edu]) dnl Alpine Version Number is in $srcdir/VERSION AC_INIT([alpine],[m4_normalize(m4_include(VERSION))],[chappa@washington.edu]) @@ -134,6 +134,7 @@ case $host in localedir="\${datadir}/locale" ;; esac + AC_ARG_WITH(localedir, AS_HELP_STRING([--with-localedir=DIR],[Name of gettext locale directory]), [ @@ -1458,11 +1459,16 @@ if test "x$alpine_SSLTYPE" != "xnone" ; then AC_MSG_ERROR(crypto library NOT found) exit 1 fi - AC_CHECK_HEADER(crypto.h, , [ alpine_CRYPTO_DEVEL="none" ]) - if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then - AC_MSG_ERROR(crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package) - exit 1 - fi + case $host in + *-*-cygwin) + AC_CHECK_HEADER(crypto.h, , [ alpine_CRYPTO_DEVEL="none" ]) + if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then + AC_MSG_ERROR(crypto library file crypto.h NOT found. Install correspoding libcrypt-devel package) + exit 1 + fi + ;; + *) ;; + esac fi if test "x$alpine_SSLTYPE" != "xnone" ; then |