/[hydra]/hydra/configure.in
ViewVC logotype

Diff of /hydra/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by nmav, Thu Sep 26 13:46:42 2002 UTC revision 1.6 by nmav, Fri Sep 27 23:40:28 2002 UTC
# Line 1  Line 1 
1  dnl $Id$  dnl $Id$
2  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
3  AC_PREREQ(2.50)  AC_PREREQ(2.50)
 AC_INIT(src/boa.c)  
4    
5  AC_DEFINE_UNQUOTED(SERVER_VERSION, "0.0.2-cvs", [Version of Hydra])  AC_INIT
6    
7    SERVER_VERSION="0.0.2"
8    AC_DEFINE_UNQUOTED(SERVER_VERSION, "$SERVER_VERSION", [Version of Hydra])
9  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])  AC_DEFINE_UNQUOTED(SERVER_NAME, "Hydra", [Name of the server])
10    
11  AM_INIT_AUTOMAKE($SERVER_NAME, $SERVER_VERSION, [])  AM_INIT_AUTOMAKE(hydra, $SERVER_VERSION, [nothing here])
12    
13  dnl Make config.h  dnl Make config.h
14  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
15    
16    AM_MAINTAINER_MODE
17    
18  dnl Checks for programs.  dnl Checks for programs.
19  AM_PROG_LEX  AM_PROG_LEX
20  AC_PROG_YACC  AC_PROG_YACC
21  AC_PROG_CC  AC_PROG_CC
22  AC_PROG_CPP  AC_PROG_CPP
 AC_PROG_MAKE_SET  
   
23    
24  dnl Checks for header files.  dnl Checks for header files.
25  AC_HEADER_DIRENT  AC_HEADER_DIRENT
# Line 185  if test "$use_smp" = "yes"; then Line 187  if test "$use_smp" = "yes"; then
187      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])
188      LIBS="-lpthread $LIBS"      LIBS="-lpthread $LIBS"
189    ])    ])
190      CFLAGS="$CFLAGS -D_REENTRANT"
191    fi
192    
193    use_hic=yes
194    
195    AC_MSG_CHECKING(whether to include HIC (internally handled CGIs) support)
196    AC_ARG_ENABLE(hic, [  --disable-hic           Do not include HIC support],
197     [
198      if test "$enableval" = "yes" ; then
199       use_hic=yes
200      else
201       use_hic=no
202      fi
203     ]
204    )
205    
206    AC_MSG_RESULT($use_hic)
207    
208    if test "$use_hic" = "yes"; then
209      AC_CHECK_LIB(dl, dlopen,
210       LIBS="$LIBS -ldl"
211       AC_DEFINE( ENABLE_HIC, 1, [whether to use HIC code])
212      )
213  fi  fi
214    
215        
# Line 266  AC_SUBST(STRUTIL) Line 291  AC_SUBST(STRUTIL)
291  AC_SUBST(ALPHASORT)  AC_SUBST(ALPHASORT)
292  AC_SUBST(SCANDIR)  AC_SUBST(SCANDIR)
293    
294  AC_OUTPUT(Makefile src/Makefile extras/Makefile contrib/Makefile examples/Makefile)  AC_CONFIG_FILES([Makefile src/Makefile extras/Makefile contrib/Makefile examples/Makefile docs/Makefile])
295    
296    AC_OUTPUT
297    
298    echo "**********************************************************"
299    echo ""
300    echo "An example configuration file for hydra can be found at"
301    echo "examples/hydra.conf."
302    echo ""
303    echo "**********************************************************"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26