Changeset 10309 for trunk/psLib/configure.ac
- Timestamp:
- Nov 29, 2006, 6:13:44 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r10308 r10309 421 421 dnl ------- openssl --------- 422 422 423 PKG_CHECK_MODULES([SSL], [openssl >= 0.9.6]) 423 dnl save LIBS/CFLAGS/LDFLAGS 424 TMP_LIBS=${LIBS} 425 TMP_CFLAGS=${CFLAGS} 426 TMP_LDFLAGS=${LDFLAGS} 427 TMP_CPPFLAGS=${CPPFLAGS} 428 429 AC_ARG_WITH(ssl, 430 [AS_HELP_STRING(--with-ssl=DIR,Specify location of SSL.)], 431 [SSL_CFLAGS="-I$withval/include" 432 SSL_LDFLAGS="-L$withval/lib"]) 433 AC_ARG_WITH(ssl-include, 434 [AS_HELP_STRING(--with-ssl-include=DIR,Specify SSL include directory.)], 435 [SSL_CFLAGS="-I$withval"]) 436 AC_ARG_WITH(ssl-lib, 437 [AS_HELP_STRING(--with-ssl-lib=DIR,Specify SSL library directory.)], 438 [SSL_LDFLAGS="-L$withval"]) 424 439 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${SSL_CFLAGS}" 425 PSLIB_LIBS="${PSLIB_LIBS=} ${SSL_LIBS}" 440 PSLIB_LIBS="${PSLIB_LIBS=} $SSL_LDFLAGS -lssl" 441 442 CFLAGS="${CFLAGS} ${SSL_CFLAGS}" 443 CPPFLAGS=${CFLAGS} 444 LDFLAGS="${LDFLAGS} ${SSL_LIBS}" 445 446 AC_CHECK_HEADERS([openssl/md5.h],[], 447 [AC_MSG_ERROR([SSL headers not found. Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])] 448 ) 449 AC_CHECK_LIB(ssl,MD5,[], 450 [AC_MSG_ERROR([SSL library not found. Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])] 451 ) 452 453 AC_SUBST([SSL_CFLAGS]) 454 455 dnl restore the CFLAGS/LDFLAGS 456 LIBS=${TMP_LIBS} 457 CFLAGS=${TMP_CFLAGS} 458 LDFLAGS=${TMP_LDFLAGS} 459 CPPFLAGS=${TMP_CPPFLAGS} 426 460 427 461 dnl ------- enable -Werror after all of the probes have run ---------
Note:
See TracChangeset
for help on using the changeset viewer.
