/[svn]/ircd-hybrid-7.2/tools/rsa_respond/configure.ac
ViewVC logotype

Contents of /ircd-hybrid-7.2/tools/rsa_respond/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (show annotations)
Sun Oct 2 21:05:51 2005 UTC (14 years, 11 months ago) by lusky
File size: 803 byte(s)
create 7.2 branch, we can move/rename it as needed.


1 # $Id$
2 # This file is by Joshua Kwan, and the source is in the public domain.
3
4 AC_INIT
5 AC_CONFIG_FILES(Makefile)
6
7 AC_COPYRIGHT([$Id$])
8
9 AC_PROG_CC
10
11 AC_CHECK_LIB(crypto, RSA_private_decrypt, [LIBS="-lcrypto"],
12 [
13 LIBS="$LIBS -L/usr/local/lib"
14 AC_CHECK_LIB(crypto, RSA_private_decrypt, [LIBS="$LIBS -lcrypto"],
15 [AC_MSG_ERROR([Could not find libcrypto.])])
16 ])
17
18 AC_MSG_CHECKING([for location of OpenSSL includes])
19
20 for dirs in /usr /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl ; do
21 if test -f "${dirs}/include/openssl/opensslv.h" ; then
22 INCLUDES="${dirs}/include"
23 break
24 fi
25 done
26
27 AC_MSG_RESULT($INCLUDES)
28 AC_SUBST(INCLUDES)
29
30 if test "$ac_cv_c_compiler_gnu" = yes; then
31 CFLAGS="$CFLAGS -Wall"
32 fi
33
34 if test "$ac_cv_prog_cc_g" = yes; then
35 CFLAGS="$CFLAGS -g"
36 fi
37
38 AC_SUBST(CFLAGS)
39
40 AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28