Changeset 12502 for trunk/psLib/configure.ac
- Timestamp:
- Mar 19, 2007, 3:13:54 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r12498 r12502 84 84 dnl check the systems endianness 85 85 AC_C_BIGENDIAN 86 87 dnl set NO_STRCASESTR if we can't find strcasestr 88 AC_CHECK_FUNC([strcasestr], [], [AC_SUBST(NO_STRCASESTR, [1])]) 86 89 87 90 AC_PREFIX_DEFAULT([/usr/local]) … … 409 412 LDFLAGS=${TMP_LDFLAGS} 410 413 CPPFLAGS=${TMP_CPPFLAGS} 411 412 dnl ------- openssl ---------413 414 dnl save LIBS/CFLAGS/LDFLAGS415 TMP_LIBS=${LIBS}416 TMP_CFLAGS=${CFLAGS}417 TMP_LDFLAGS=${LDFLAGS}418 TMP_CPPFLAGS=${CPPFLAGS}419 420 AC_ARG_WITH(ssl,421 [AS_HELP_STRING(--with-ssl=DIR,Specify location of SSL.)],422 [SSL_CFLAGS="-I$withval/include"423 SSL_LDFLAGS="-L$withval/lib"])424 AC_ARG_WITH(ssl-include,425 [AS_HELP_STRING(--with-ssl-include=DIR,Specify SSL include directory.)],426 [SSL_CFLAGS="-I$withval"])427 AC_ARG_WITH(ssl-lib,428 [AS_HELP_STRING(--with-ssl-lib=DIR,Specify SSL library directory.)],429 [SSL_LDFLAGS="-L$withval"])430 431 CFLAGS="${CFLAGS} ${SSL_CFLAGS}"432 CPPFLAGS=${CFLAGS}433 LDFLAGS="${LDFLAGS} ${SSL_LIBS}"434 435 AC_CHECK_HEADERS([openssl/md5.h],[],436 [AC_CHECK_HEADERS([sys/md5.h],[],437 [AC_MSG_ERROR([SSL headers not found. Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]438 )]439 )440 AC_CHECK_LIB(crypto,MD5,[],441 [AC_MSG_ERROR([SSL library not found. Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]442 )443 444 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${SSL_CFLAGS}"445 PSLIB_LIBS="${PSLIB_LIBS=} ${SSL_LDFLAGS=} ${LIBS}"446 447 AC_SUBST([SSL_CFLAGS])448 AC_SUBST([SSL_LDFLAGS])449 450 dnl restore the CFLAGS/LDFLAGS451 LIBS=${TMP_LIBS}452 CFLAGS=${TMP_CFLAGS}453 LDFLAGS=${TMP_LDFLAGS}454 CPPFLAGS=${TMP_CPPFLAGS}455 456 dnl set NO_STRCASESTR if we can't find strcasestr457 AC_CHECK_FUNC([strcasestr], [], [AC_SUBST(NO_STRCASESTR, [1])])458 414 459 415 dnl ------- enable -Werror after all of the probes have run ---------
Note:
See TracChangeset
for help on using the changeset viewer.
