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

Diff of /hydra/configure.in

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

revision 1.29 by nmav, Fri Oct 25 10:42:02 2002 UTC revision 1.30 by nmav, Sat Oct 26 20:58:48 2002 UTC
# Line 41  AC_CHECK_TYPE( off_t, Line 41  AC_CHECK_TYPE( off_t,
41    AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),,    AC_DEFINE( HAVE_OFF_T, 1, [have off_t type]),,
42  )  )
43    
44  dnl GNU Libc needs this.  use_long_offsets=no
45  CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"  AC_MSG_CHECKING([whether to enable long offsets usage])
46  AC_CHECK_TYPE( off64_t,  AC_ARG_ENABLE(long-offsets,
47    AC_DEFINE( HAVE_OFF64_T, 1, [have off64_t type]),,   [  --enable-long-offsets   enable the use of long (64bit) offsets in 32 bit systems],
48     [
49       if test "$enableval" = "no" ; then
50         use_long_offsets=no
51       else
52         use_long_offsets=yes
53       fi
54     ]
55  )  )
56    
57    AC_MSG_RESULT($use_long_offsets)
58    
59    if test $use_long_offsets = yes; then
60    
61     dnl GNU Libc needs this.
62     CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
63     AC_CHECK_TYPE( off64_t,
64       AC_DEFINE( HAVE_OFF64_T, 1, [have off64_t type]),,
65     )
66    
67     AC_CHECK_FUNCS(stat64 atoll,,)
68     AC_CHECK_FUNCS(open64 read64 write64 lseek64,,)
69     AC_DEFINE(USE_LONG_OFFSETS,1, [whether to enable long offset support])
70    
71    fi
72    
73  dnl Checks for library functions.  dnl Checks for library functions.
74  AC_FUNC_SETVBUF_REVERSED  AC_FUNC_SETVBUF_REVERSED
75  AC_FUNC_MMAP  AC_FUNC_MMAP
# Line 54  AC_CHECK_FUNCS(getcwd strdup strstr gmti Line 77  AC_CHECK_FUNCS(getcwd strdup strstr gmti
77  AC_CHECK_FUNCS(gethostname gethostbyname select socket inet_aton)  AC_CHECK_FUNCS(gethostname gethostbyname select socket inet_aton)
78  AC_CHECK_FUNCS(scandir alphasort qsort)  AC_CHECK_FUNCS(scandir alphasort qsort)
79  AC_CHECK_FUNCS(getrlimit setrlimit)  AC_CHECK_FUNCS(getrlimit setrlimit)
80  AC_CHECK_FUNCS(stat stat64 atoll,,)  AC_CHECK_FUNCS(stat)
 AC_CHECK_FUNCS(open64 read64 write64 lseek64,,)  
81    
82  AC_CHECK_STRUCT_FOR([  AC_CHECK_STRUCT_FOR([
83  #if TIME_WITH_SYS_TIME  #if TIME_WITH_SYS_TIME
# Line 70  AC_CHECK_STRUCT_FOR([ Line 92  AC_CHECK_STRUCT_FOR([
92  #endif  #endif
93  ],tm,tm_gmtoff)  ],tm,tm_gmtoff)
94    
95  if test "$ac_cv_struct_tm_has_tm_gmtoff" = "yes"; then  if test $ac_cv_struct_tm_has_tm_gmtoff = yes; then
96    AC_DEFINE(HAVE_TM_GMTOFF, 1, [Have tm_gmtoff])    AC_DEFINE(HAVE_TM_GMTOFF, 1, [Have tm_gmtoff])
97  fi  fi
98    
# Line 151  AC_ARG_ENABLE(sendfile, Line 173  AC_ARG_ENABLE(sendfile,
173   [   [
174     if test "$enableval" = "no" ; then     if test "$enableval" = "no" ; then
175       use_sendfile=no       use_sendfile=no
      AC_MSG_RESULT(no)  
176     else     else
177       use_sendfile=yes       use_sendfile=yes
      AC_MSG_RESULT(yes)  
178     fi     fi
179   ]   ]
180  )  )
181    
182    AC_MSG_RESULT($use_sendfile)
183    
184  if test "$use_sendfile" = "yes"; then  if test "$use_sendfile" = "yes"; then
185  case $host_os in  case $host_os in
186   *linux*)   *linux*)
# Line 285  if test -n "$GCC"; then Line 307  if test -n "$GCC"; then
307  *** You must install libfc in order to enable profiling. http://www710.univ-lyon1.fr/~yperret/fnccheck/profiler.html  *** You must install libfc in order to enable profiling. http://www710.univ-lyon1.fr/~yperret/fnccheck/profiler.html
308  )  )
309        fi        fi
310    
311      else      else
312        AC_MSG_RESULT(no)        AC_MSG_RESULT(no)
313      fi      fi

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26