projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b6e4404
)
Fail configure script when OpenSSL/PolarSSL header files and libraries not found.
author
Martin Johansson
<martin@fatbob.nu>
Wed, 13 Apr 2011 21:17:19 +0000
(23:17 +0200)
committer
Martin Johansson
<martin@fatbob.nu>
Wed, 13 Apr 2011 21:17:19 +0000
(23:17 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index c45c6d8d51b2b266e1ae1b97175b9a2813b5e24e..a5173bc28138a2d05621597aa1d3ddfb3e4aac1a 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-44,16
+44,16
@@
AC_PROG_CC
AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], [], [AC_MSG_ERROR([could not find google/protobuf-c/protobuf-c.h])])
AC_CHECK_LIB([protobuf-c], [protobuf_c_data_buffer_init], [], [AC_MSG_ERROR([could not find protobuf-c library])])
AC_CHECK_HEADERS([libconfig.h], [], [AC_MSG_ERROR([could not find libconfig.h])])
AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], [], [AC_MSG_ERROR([could not find google/protobuf-c/protobuf-c.h])])
AC_CHECK_LIB([protobuf-c], [protobuf_c_data_buffer_init], [], [AC_MSG_ERROR([could not find protobuf-c library])])
AC_CHECK_HEADERS([libconfig.h], [], [AC_MSG_ERROR([could not find libconfig.h])])
-AC_CHECK_LIB([config], [config_init], [], [AC_MSG_ERROR([could not find config])])
+AC_CHECK_LIB([config], [config_init], [], [AC_MSG_ERROR([could not find
lib
config])])
AS_IF([test "x$with_ssl" == xpolarssl], [
AS_IF([test "x$with_ssl" == xpolarssl], [
- AC_CHECK_HEADERS([polarssl/ssl.h])
- AC_CHECK_LIB([polarssl], [ssl_init])
+ AC_CHECK_HEADERS([polarssl/ssl.h]
, [], [AC_MSG_ERROR([could not find polarssl/ssl.h])]
)
+ AC_CHECK_LIB([polarssl], [ssl_init]
, [], [AC_MSG_ERROR([could not find libpolarssl])]
)
AC_DEFINE([USE_POLARSSL], [], [Use PolarSSL])
])
AS_IF([test "x$with_ssl" == xopenssl], [
AC_DEFINE([USE_POLARSSL], [], [Use PolarSSL])
])
AS_IF([test "x$with_ssl" == xopenssl], [
- AC_CHECK_HEADERS([openssl/ssl.h])
- AC_CHECK_LIB([crypto], [BN_init])
- AC_CHECK_LIB([ssl], [SSL_library_init])
+ AC_CHECK_HEADERS([openssl/ssl.h]
, [], [AC_MSG_ERROR([could not find openssl/ssl.h])]
)
+ AC_CHECK_LIB([crypto], [BN_init]
, [], [AC_MSG_ERROR([could not find libcrypto])]
)
+ AC_CHECK_LIB([ssl], [SSL_library_init]
, [], [AC_MSG_ERROR([could not find libssl])]
)
])
# Checks for header files.
])
# Checks for header files.