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

Diff of /hydra/configure.in

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

revision 1.2 by nmav, Thu Sep 26 14:02:11 2002 UTC revision 1.16 by nmav, Wed Oct 2 19:26:15 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.5"
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 28  AC_CHECK_HEADERS(getopt.h netinet/tcp.h) Line 30  AC_CHECK_HEADERS(getopt.h netinet/tcp.h)
30    
31  dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
32  AC_C_CONST  AC_C_CONST
33    AC_C_INLINE
34  AC_TYPE_UID_T  AC_TYPE_UID_T
35  AC_TYPE_PID_T  AC_TYPE_PID_T
36  AC_HEADER_TIME  AC_HEADER_TIME
# Line 37  AC_FUNC_SETVBUF_REVERSED Line 40  AC_FUNC_SETVBUF_REVERSED
40  AC_FUNC_MMAP  AC_FUNC_MMAP
41  AC_CHECK_FUNCS(getcwd strdup strstr)  AC_CHECK_FUNCS(getcwd strdup strstr)
42  AC_CHECK_FUNCS(gethostname gethostbyname select socket inet_aton)  AC_CHECK_FUNCS(gethostname gethostbyname select socket inet_aton)
43  AC_CHECK_FUNCS(scandir alphasort)  AC_CHECK_FUNCS(scandir alphasort qsort)
44    AC_CHECK_FUNCS(getrlimit setrlimit)
45    
46  AC_CHECK_STRUCT_FOR([  AC_CHECK_STRUCT_FOR([
47  #if TIME_WITH_SYS_TIME  #if TIME_WITH_SYS_TIME
# Line 105  fi Line 109  fi
109    
110  LIBS="$LIBS $MYLIBS"  LIBS="$LIBS $MYLIBS"
111    
 if test $ac_cv_func_scandir = no; then  
   # scandir not defined, add it  
   SCANDIR="scandir.o"  
 fi  
   
 if test $ac_cv_func_alphasort = no; then  
   # alphasort not defined, add it  
   ALPHASORT="alphasort.o"  
 fi  
   
112  # Try to find TCP_CORK and use it if found.  # Try to find TCP_CORK and use it if found.
113  AC_MSG_CHECKING([whether TCP_CORK is a valid TCP socket option])  AC_MSG_CHECKING([whether TCP_CORK is a valid TCP socket option])
114  AC_TRY_COMPILE(  AC_TRY_COMPILE(
# Line 153  AC_MSG_RESULT($use_ssl) Line 147  AC_MSG_RESULT($use_ssl)
147    
148  if test "$use_ssl" = "yes"; then  if test "$use_ssl" = "yes"; then
149    AM_PATH_LIBGNUTLS( 0.5.8,    AM_PATH_LIBGNUTLS( 0.5.8,
150    AC_DEFINE(HAVE_LIBGNUTLS,1, [Have libgnutls]),     AC_DEFINE(HAVE_LIBGNUTLS, 1, [Have libgnutls])
151       LIBS="$LIBS $LIBGNUTLS_LIBS"
152       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
153       AC_DEFINE( ENABLE_SSL, 1, [whether to enable ssl]),
154    AC_MSG_WARN([[    AC_MSG_WARN([[
155     ***     ***
156     *** libgnutls was not found. You may want to get it from     *** libgnutls was not found. You may want to get it from
157     *** ftp://ftp.gnutls.org/pub/gnutls/     *** ftp://ftp.gnutls.org/pub/gnutls/
158    ]]))    ]]))
159    
   LIBS="$LIBS $LIBGNUTLS_LIBS"  
   CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"  
   AC_DEFINE( ENABLE_SSL, 1, [whether to enable ssl])  
160  fi  fi
161    
162  use_smp=yes  use_smp=yes
# Line 185  if test "$use_smp" = "yes"; then Line 179  if test "$use_smp" = "yes"; then
179      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])      AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code])
180      LIBS="-lpthread $LIBS"      LIBS="-lpthread $LIBS"
181    ])    ])
182      CFLAGS="$CFLAGS -D_REENTRANT"
183  fi  fi
184    
185      if test "$use_smp" = "yes"; then use_hic=yes
186  if test $ac_cv_func_strdup = no -o $ac_cv_func_strstr = no; then  else use_hic = no
187    # strdup or strstr not defined  fi
188    STRUTIL="strutil.o"  
189    AC_MSG_CHECKING(whether to include HIC (internally handled CGIs) support)
190    AC_ARG_ENABLE(hic, [  --disable-hic           Do not include HIC support],
191     [
192      if test "$enableval" = "yes" ; then
193        if test "$use_smp" = "yes"; then use_hic=yes
194        else use_hic = no
195        fi
196      else
197       use_hic=no
198      fi
199     ]
200    )
201    
202    AC_MSG_RESULT($use_hic)
203    
204    if test "$use_hic" = "yes"; then
205      AC_CHECK_LIB(dl, dlopen,
206       LIBS="$LIBS -ldl"
207       AC_DEFINE( ENABLE_HIC, 1, [whether to use HIC code])
208      )
209  fi  fi
210    
211  if test -n "$GCC"; then  if test -n "$GCC"; then
# Line 261  AC_ARG_WITH(efence, Line 276  AC_ARG_WITH(efence,
276    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
277  ])  ])
278    
279  dnl For anything that wasn't found but we have source for  AC_CONFIG_FILES([Makefile src/Makefile contrib/Makefile examples/Makefile docs/Makefile])
280  AC_SUBST(STRUTIL)  
281  AC_SUBST(ALPHASORT)  AC_OUTPUT
 AC_SUBST(SCANDIR)  
282    
283  AC_OUTPUT(Makefile src/Makefile extras/Makefile contrib/Makefile examples/Makefile docs/Makefile)  echo "**********************************************************"
284    echo ""
285    echo "An example configuration file for hydra can be found at"
286    echo "examples/hydra.conf."
287    echo ""
288    echo "**********************************************************"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.16

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26