ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/configure.ac
Revision: 232
Committed: 2003-08-07T15:58:21-07:00 (21 years, 10 months ago) by douglas
File size: 1016 byte(s)
Log Message:
Made search.cgi.in the automake way. And added some better error checking to it.
Added a check for which perl to configure.ac.

File Contents

# Content
1 # Douglas Thrift's Search Engine
2 #
3 # Douglas Thrift
4 #
5 # $Id: configure.ac,v 1.13 2003/08/07 22:58:21 douglas Exp $
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 Fill::Temp.))
33 ETR_SOCKET_NSL
34 CHECK_SSL
35 if ! test x$HAVE_SSL = x; then
36 AC_CHECK_FILE(/dev/urandom, AC_SUBST(urandomdev, -D_urandomdev_),
37 AC_SUBST(urandomdev,))
38 fi
39
40 AC_CONFIG_FILES([GNUmakefile search.cgi])
41 AC_OUTPUT