IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 6:13:44 PM (20 years ago)
Author:
Paul Price
Message:

Adding MD5 hash calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r10308 r10309  
    421421dnl ------- openssl ---------
    422422
    423 PKG_CHECK_MODULES([SSL], [openssl >= 0.9.6])
     423dnl save LIBS/CFLAGS/LDFLAGS
     424TMP_LIBS=${LIBS}
     425TMP_CFLAGS=${CFLAGS}
     426TMP_LDFLAGS=${LDFLAGS}
     427TMP_CPPFLAGS=${CPPFLAGS}
     428
     429AC_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"])
     433AC_ARG_WITH(ssl-include,
     434[AS_HELP_STRING(--with-ssl-include=DIR,Specify SSL include directory.)],
     435[SSL_CFLAGS="-I$withval"])
     436AC_ARG_WITH(ssl-lib,
     437[AS_HELP_STRING(--with-ssl-lib=DIR,Specify SSL library directory.)],
     438[SSL_LDFLAGS="-L$withval"])
    424439PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${SSL_CFLAGS}"
    425 PSLIB_LIBS="${PSLIB_LIBS=} ${SSL_LIBS}"
     440PSLIB_LIBS="${PSLIB_LIBS=} $SSL_LDFLAGS -lssl"
     441
     442CFLAGS="${CFLAGS} ${SSL_CFLAGS}"
     443CPPFLAGS=${CFLAGS}
     444LDFLAGS="${LDFLAGS} ${SSL_LIBS}"
     445
     446AC_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)
     449AC_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
     453AC_SUBST([SSL_CFLAGS])
     454
     455dnl restore the CFLAGS/LDFLAGS
     456LIBS=${TMP_LIBS}
     457CFLAGS=${TMP_CFLAGS}
     458LDFLAGS=${TMP_LDFLAGS}
     459CPPFLAGS=${TMP_CPPFLAGS}
    426460
    427461dnl ------- enable -Werror after all of the probes have run ---------
Note: See TracChangeset for help on using the changeset viewer.