ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/configure.ac
Revision: 371
Committed: 2008-08-23T03:29:42-07:00 (14 years, 3 months ago) by douglas
Content type: text/x-m4
File size: 1942 byte(s)
Log Message:
Fun with mime types.

File Contents

# Content
1 # Douglas Thrift's Search Engine Autoconf Script
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 AC_INIT()
8 AC_CONFIG_SRCDIR(Search.cpp)
9 AC_PREFIX_DEFAULT(/usr/local/dtse)
10 AC_PROG_INSTALL
11
12 CHECK_GNU_MAKE
13 if test x$_cv_gnu_make_command = x; then
14 AC_MSG_ERROR(You need GNU Make.)
15 fi
16 AC_PROG_CXX
17 if ! test x$GXX = x; then
18 AC_MSG_CHECKING(if g++ is version 3.1 or higher)
19 dt_gxx_3_x=`$CXX --version 2>&1 | grep ^$CXX`
20 if test "x$dt_gxx_3_x" = "x"; then
21 AC_MSG_RESULT(no)
22 AC_MSG_ERROR(You need g++ 3.1 or higher.)
23 else
24 AC_MSG_RESULT(yes)
25 fi
26 fi
27 AC_PROG_PERL_VERSION(5.00503, , AC_MSG_ERROR(You need a Perl 5.6 or higher.))
28 AC_MSG_CHECKING(perl path)
29 AC_SUBST(which_perl, `which $PERL`)
30 AC_MSG_RESULT($which_perl)
31
32 AC_PROG_PERL_MODULES(File::Temp, , AC_MSG_ERROR(You need File::Temp.))
33 mingw=`$CXX --version 2>&1 | grep mingw\ special`
34 if test "x$mingw" = "x"; then
35 ETR_SOCKET_NSL
36 LIBS="$LIBS $ETR_SOCKET_LIBS"
37 else
38 LIBS="$LIBS -lws2_32"
39 fi
40 AC_MSG_CHECKING(if OpenSSL is wanted)
41 AC_ARG_WITH(openssl, [[ --with-openssl[=DIR] enable OpenSSL [DIR=path]]
42 ], [
43 AC_MSG_RESULT(yes)
44 AC_MSG_CHECKING(for OpenSSL)
45 for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg \
46 /usr/local /usr; do
47 openssl_dir="$dir"
48 if test -f "$dir/include/openssl/ssl.h"; then
49 openssl="yes";
50 break;
51 fi
52 done
53 if ! test x$openssl = x; then
54 AC_MSG_RESULT($openssl_dir);
55 CPPFLAGS="$CPPFLAGS -I$openssl_dir/include";
56 LDFLAGS="$LDFLAGS -L$openssl_dir/lib -Wl,--rpath -Wl,$openssl_dir/lib";
57 if test "x$mingw" = "x"; then
58 LIBS="$LIBS -lssl -lcrypto";
59 else
60 LIBS="$LIBS -lssl32 -leay32";
61 fi
62 AC_SUBST(OpenSSL, -D_OpenSSL_)
63 else
64 AC_MSG_RESULT(not found);
65 AC_MSG_ERROR(couldn't find OpenSSL)
66 fi
67 ], [ AC_MSG_RESULT(no) ])
68 if ! test x$openssl = x; then
69 if test "x$mingw" = "x"; then
70 AC_CHECK_FILE(/dev/urandom, AC_SUBST(urandomdev, -D_urandomdev_),
71 AC_SUBST(urandomdev,))
72 fi
73 fi
74
75 AC_CONFIG_FILES([GNUmakefile search.cgi])
76 AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/x-m4