"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.in" between
links-1.03.tar.gz and links-1.04.tar.gz

About: Links is a Lynx-like text WWW browser (table support and pop-up dialog boxes).

configure.in  (links-1.03):configure.in  (links-1.04)
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c) AC_INIT(main.c)
AM_INIT_AUTOMAKE(links, 1.03) AM_INIT_AUTOMAKE(links, 1.04)
ACLOCAL="./missing aclocal"
AUTOCONF="./missing autoconf"
AUTOMAKE="./missing automake"
AUTOHEADER="./missing autoheader"
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
dnl Checks for programs. dnl Checks for programs.
AC_PROG_CC AC_PROG_CC
static_link=0
if test -n "`echo "$CC" "$LDFLAGS" "$CFLAGS" "$LIBS" | grep 'static\>'`"; then
static_link=1
fi
AC_HEADER_STDC AC_HEADER_STDC
AC_PROG_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
AC_MSG_CHECKING([for EMX]) AC_MSG_CHECKING([for EMX])
AC_TRY_COMPILE(, [#ifndef __EMX__ AC_TRY_COMPILE(, [#ifndef __EMX__
kill me! kill me!
#endif ], have_emx=yes, have_emx=no) #endif ], have_emx=yes, have_emx=no)
AC_MSG_RESULT($have_emx) AC_MSG_RESULT($have_emx)
test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | s test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | s
ed "s/-Zbin-files//g"` -Zcrtdll" ed "s/-Zbin-files//g"`"
test "$ac_cv_have_emx" = yes && test "$static_link" = 0 && LDFLAGS="$LDFLAGS -Zc
rtdll"
AC_CACHE_CHECK([for OpenWatcom], ac_cv_have_watcom, AC_CACHE_CHECK([for OpenWatcom], ac_cv_have_watcom,
AC_TRY_COMPILE(, [#ifndef __WATCOMC__ AC_TRY_COMPILE(, [#ifndef __WATCOMC__
kill me! kill me!
#endif ], ac_cv_have_watcom=yes, ac_cv_have_watcom=no) #endif ], ac_cv_have_watcom=yes, ac_cv_have_watcom=no)
) )
test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no
AC_MSG_CHECKING([for typeof]) AC_MSG_CHECKING([for typeof])
AC_TRY_COMPILE(, [int a; AC_TRY_COMPILE(, [int a;
typeof(a) b;], have_typeof=yes, have_typeof=no) typeof(a) b;], have_typeof=yes, have_typeof=no)
AC_MSG_RESULT($have_typeof) AC_MSG_RESULT($have_typeof)
test "$have_typeof" = yes && AC_DEFINE(HAVE_TYPEOF) test "$have_typeof" = yes && AC_DEFINE(HAVE_TYPEOF)
AC_CACHE_CHECK([for volatile], ac_cv_have_volatile,
AC_TRY_COMPILE([], [
volatile int a = 0;
return a;
], ac_cv_have_volatile=yes, ac_cv_have_volatile=no)
)
if test "$ac_cv_have_volatile" = yes; then
AC_DEFINE(HAVE_VOLATILE)
fi
AC_MSG_CHECKING([for long long]) AC_MSG_CHECKING([for long long])
AC_TRY_COMPILE(, [unsigned long long a; ], ac_cv_have_long_long=yes, ac_cv_have_ long_long=no) AC_TRY_COMPILE(, [unsigned long long a; ], ac_cv_have_long_long=yes, ac_cv_have_ long_long=no)
AC_MSG_RESULT($ac_cv_have_long_long) AC_MSG_RESULT($ac_cv_have_long_long)
test "$ac_cv_have_long_long" = yes && AC_DEFINE(HAVE_LONG_LONG) test "$ac_cv_have_long_long" = yes && AC_DEFINE(HAVE_LONG_LONG)
AC_CACHE_CHECK([for pointer comparison bug], ac_cv_pointer_comparison_bug, AC_CACHE_CHECK([for pointer comparison bug], ac_cv_pointer_comparison_bug,
AC_TRY_RUN([ AC_TRY_RUN([
int main() int main()
{ {
void *p = (void *)-1L; void *p = (void *)-1L;
skipping to change at line 55 skipping to change at line 77
], ac_cv_pointer_comparison_bug=no, ac_cv_pointer_comparison_bug=yes, ], ac_cv_pointer_comparison_bug=no, ac_cv_pointer_comparison_bug=yes,
[if test -n "`echo "$CC"|grep ^tcc`"; then [if test -n "`echo "$CC"|grep ^tcc`"; then
ac_cv_pointer_comparison_bug=yes ac_cv_pointer_comparison_bug=yes
else else
ac_cv_pointer_comparison_bug=no ac_cv_pointer_comparison_bug=no
fi] fi]
) )
) )
test "$ac_cv_pointer_comparison_bug" = yes && AC_DEFINE(HAVE_POINTER_COMPARISON_ BUG) test "$ac_cv_pointer_comparison_bug" = yes && AC_DEFINE(HAVE_POINTER_COMPARISON_ BUG)
if test "$ac_cv_have_long_long" = yes; then if test "$ac_cv_have_long_long" = yes -a "$ac_cv_have_volatile" = yes; then
AC_CACHE_CHECK([for maxint conversion bug], ac_cv_maxint_conversion_bug, AC_CACHE_CHECK([for maxint conversion bug], ac_cv_maxint_conversion_bug,
AC_TRY_RUN([ AC_TRY_RUN([
int main() int main()
{ {
volatile long long q = 0x7FFFFFEF; volatile long long q = 0x7FFFFFEF;
return q < 0; return q < 0;
} }
], ac_cv_maxint_conversion_bug=no, ac_cv_maxint_conversion_bug=ye s, ], ac_cv_maxint_conversion_bug=no, ac_cv_maxint_conversion_bug=ye s,
[if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP- UX; then [if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP- UX; then
ac_cv_maxint_conversion_bug=yes ac_cv_maxint_conversion_bug=yes
skipping to change at line 87 skipping to change at line 109
dnl #include <stdio.h> dnl #include <stdio.h>
dnl ], [ dnl ], [
dnl return 0; dnl return 0;
dnl ], ac_cv_have_file_offset_bits=yes, ac_cv_have_file_offset_bits=no) dnl ], ac_cv_have_file_offset_bits=yes, ac_cv_have_file_offset_bits=no)
dnl ) dnl )
dnl test "$ac_cv_have_file_offset_bits" = yes && AC_DEFINE(HAVE_FILE_OFFSET_BITS ) dnl test "$ac_cv_have_file_offset_bits" = yes && AC_DEFINE(HAVE_FILE_OFFSET_BITS )
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_DIRENT AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(alloca.h)
AC_CHECK_HEADERS(arpa/inet.h)
AC_CHECK_HEADERS(cygwin/process.h)
AC_CHECK_HEADERS(fcntl.h) AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(grp.h)
AC_CHECK_HEADERS(interix/interix.h)
AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_HEADERS(io.h)
AC_CHECK_HEADERS(limits.h) AC_CHECK_HEADERS(limits.h)
AC_CHECK_HEADERS(malloc.h)
AC_CHECK_HEADERS(net/socket.h)
AC_CHECK_HEADERS(netinet/in_system.h)
AC_CHECK_HEADERS(netinet/in_systm.h)
AC_CHECK_HEADERS(netinet/ip.h)
AC_CHECK_HEADERS(process.h)
AC_CHECK_HEADERS(pwd.h)
AC_CHECK_HEADERS(sgtty.h)
AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(sys/cygwin.h)
AC_CHECK_HEADERS(sys/file.h)
AC_CHECK_HEADERS(sys/fmutex.h)
AC_CHECK_HEADERS(sys/ioctl.h) AC_CHECK_HEADERS(sys/ioctl.h)
AC_CHECK_HEADERS(sys/resource.h)
AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(sys/time.h) AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(sys/un.h)
AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_HEADERS(termios.h)
AC_CHECK_HEADERS(time.h) AC_CHECK_HEADERS(time.h)
AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(sigaction.h) AC_CHECK_HEADERS(unixlib.h)
AC_CHECK_HEADERS(netinet/in_systm.h) AC_CHECK_HEADERS(utime.h)
AC_CHECK_HEADERS(netinet/in_system.h) AC_CHECK_HEADERS(uwin.h)
AC_CHECK_HEADERS(netinet/ip.h)
AC_CHECK_HEADERS(arpa/inet.h)
AC_CHECK_HEADERS(net/socket.h)
AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(sys/resource.h)
AC_CHECK_HEADERS(wait.h) AC_CHECK_HEADERS(wait.h)
AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_HEADERS(sys/un.h) if test "$ac_cv_header_stdarg_h" != yes; then
AC_CHECK_HEADERS(sys/fmutex.h) AC_ERROR([stdarg.h not present])
AC_CHECK_HEADERS(sys/cygwin.h) fi
AC_CHECK_HEADERS(interix/interix.h)
AC_CHECK_HEADERS(io.h)
AC_CHECK_HEADERS(pwd.h)
AC_CHECK_HEADERS(grp.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t,
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
], [ ], [
socklen_t a = 0; socklen_t a = 0;
return a; return a;
], ac_cv_have_socklen_t=yes, ac_cv_have_socklen_t=no) ], ac_cv_have_socklen_t=yes, ac_cv_have_socklen_t=no)
) )
if test "$ac_cv_have_socklen_t" = yes; then if test "$ac_cv_have_socklen_t" = yes; then
AC_DEFINE(HAVE_SOCKLEN_T) AC_DEFINE(HAVE_SOCKLEN_T)
fi fi
AC_CACHE_CHECK([for errno], ac_cv_have_errno,
AC_TRY_COMPILE([
#include <errno.h>
], [
errno = 0;
return errno;
], ac_cv_have_errno=yes, ac_cv_have_errno=no)
)
if test "$ac_cv_have_errno" = yes; then
AC_DEFINE(HAVE_ERRNO)
fi
AC_HEADER_TIME AC_HEADER_TIME
AC_STRUCT_TM AC_STRUCT_TM
AC_CACHE_CHECK([if rename can replace existing files], ac_cv_rename_over_existin g_files, AC_CACHE_CHECK([if rename can replace existing files], ac_cv_rename_over_existin g_files,
AC_TRY_RUN([ AC_TRY_RUN([
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
skipping to change at line 158 skipping to change at line 210
) )
if test "$ac_cv_rename_over_existing_files" = yes; then if test "$ac_cv_rename_over_existing_files" = yes; then
AC_DEFINE(RENAME_OVER_EXISTING_FILES) AC_DEFINE(RENAME_OVER_EXISTING_FILES)
fi fi
dnl Checks for library functions. dnl Checks for library functions.
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_FUNC_STRFTIME AC_FUNC_STRFTIME
AC_FUNC_VPRINTF AC_FUNC_VPRINTF
AC_HAVE_FUNCS(mkdir) AC_HAVE_FUNCS(bcmp)
AC_HAVE_FUNCS(select) AC_HAVE_FUNCS(bcopy)
AC_HAVE_FUNCS(bzero)
AC_HAVE_FUNCS(chmod) AC_HAVE_FUNCS(chmod)
AC_HAVE_FUNCS(getpid) AC_HAVE_FUNCS(getcwd)
AC_HAVE_FUNCS(setpgid) AC_HAVE_FUNCS(getgrgid)
AC_HAVE_FUNCS(popen)
AC_HAVE_FUNCS(uname)
AC_HAVE_FUNCS(getpagesize) AC_HAVE_FUNCS(getpagesize)
AC_HAVE_FUNCS(getpid)
AC_HAVE_FUNCS(getpwuid) AC_HAVE_FUNCS(getpwuid)
AC_HAVE_FUNCS(getgrgid)
AC_HAVE_FUNCS(sigfillset)
AC_HAVE_FUNCS(getrlimit) AC_HAVE_FUNCS(getrlimit)
AC_HAVE_FUNCS(setrlimit)
AC_HAVE_FUNCS(raise)
AC_HAVE_FUNCS(gettimeofday) AC_HAVE_FUNCS(gettimeofday)
AC_HAVE_FUNCS(tempnam) AC_HAVE_FUNCS(mkdir)
AC_HAVE_FUNCS(mktime)
AC_HAVE_FUNCS(popen)
AC_HAVE_FUNCS(pthread_sigmask)
AC_HAVE_FUNCS(raise)
AC_HAVE_FUNCS(select)
AC_HAVE_FUNCS(setpgid)
AC_HAVE_FUNCS(setrlimit)
AC_HAVE_FUNCS(sigaction)
AC_HAVE_FUNCS(sigblock)
AC_HAVE_FUNCS(sigdelset)
AC_HAVE_FUNCS(sigfillset)
AC_HAVE_FUNCS(sigprocmask)
AC_HAVE_FUNCS(sigsetmask)
AC_HAVE_FUNCS(strdup)
AC_HAVE_FUNCS(strtoimax)
AC_HAVE_FUNCS(strtol) AC_HAVE_FUNCS(strtol)
AC_HAVE_FUNCS(strtoul)
AC_HAVE_FUNCS(strtoq)
AC_HAVE_FUNCS(strtoll) AC_HAVE_FUNCS(strtoll)
AC_HAVE_FUNCS(__strtoll)
AC_HAVE_FUNCS(strtoq)
AC_HAVE_FUNCS(strtoul)
AC_HAVE_FUNCS(tempnam)
AC_HAVE_FUNCS(uname)
AC_HAVE_FUNCS(utime)
AC_HAVE_FUNCS(utimes)
dnl AC_HAVE_FUNCS(strlen) AC_HAVE_FUNCS(strlen)
AC_CACHE_CHECK([for strlen], ac_cv_have_strlen, AC_CACHE_CHECK([for strlen], ac_cv_have_strlen,
AC_TRY_LINK([#include <string.h>], [strlen(""); return 0;], ac_cv_have_st rlen=yes, ac_cv_have_strlen=no) AC_TRY_LINK([#include <string.h>], [strlen(""); return 0;], ac_cv_have_st rlen=yes, ac_cv_have_strlen=no)
) )
if test "$ac_cv_have_strlen" = yes; then if test "$ac_cv_have_strlen" = yes; then
AC_DEFINE(HAVE_STRLEN) AC_DEFINE(HAVE_STRLEN)
fi fi
dnl AC_HAVE_FUNCS(strcpy) AC_HAVE_FUNCS(strcpy)
AC_CACHE_CHECK([for strcpy], ac_cv_have_strcpy, AC_CACHE_CHECK([for strcpy], ac_cv_have_strcpy,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; strcpy(a, ""); return 0; ], ac_cv_have_strcpy=yes, ac_cv_have_strcpy=no) AC_TRY_LINK([#include <string.h>], [char a[[1]]; strcpy(a, ""); return 0; ], ac_cv_have_strcpy=yes, ac_cv_have_strcpy=no)
) )
if test "$ac_cv_have_strcpy" = yes; then if test "$ac_cv_have_strcpy" = yes; then
AC_DEFINE(HAVE_STRCPY) AC_DEFINE(HAVE_STRCPY)
fi fi
dnl AC_HAVE_FUNCS(strchr) AC_HAVE_FUNCS(strchr)
AC_CACHE_CHECK([for strchr], ac_cv_have_strchr, AC_CACHE_CHECK([for strchr], ac_cv_have_strchr,
AC_TRY_LINK([#include <string.h>], [strchr("", 0); return 0;], ac_cv_have _strchr=yes, ac_cv_have_strchr=no) AC_TRY_LINK([#include <string.h>], [strchr("", 0); return 0;], ac_cv_have _strchr=yes, ac_cv_have_strchr=no)
) )
if test "$ac_cv_have_strchr" = yes; then if test "$ac_cv_have_strchr" = yes; then
AC_DEFINE(HAVE_STRCHR) AC_DEFINE(HAVE_STRCHR)
fi fi
dnl AC_HAVE_FUNCS(strrchr) AC_HAVE_FUNCS(strrchr)
AC_CACHE_CHECK([for strrchr], ac_cv_have_strrchr, AC_CACHE_CHECK([for strrchr], ac_cv_have_strrchr,
AC_TRY_LINK([#include <string.h>], [strrchr("", 0); return 0;], ac_cv_hav e_strrchr=yes, ac_cv_have_strrchr=no) AC_TRY_LINK([#include <string.h>], [strrchr("", 0); return 0;], ac_cv_hav e_strrchr=yes, ac_cv_have_strrchr=no)
) )
if test "$ac_cv_have_strrchr" = yes; then if test "$ac_cv_have_strrchr" = yes; then
AC_DEFINE(HAVE_STRRCHR) AC_DEFINE(HAVE_STRRCHR)
fi fi
dnl AC_HAVE_FUNCS(strcmp) AC_HAVE_FUNCS(strcmp)
AC_CACHE_CHECK([for strcmp], ac_cv_have_strcmp, AC_CACHE_CHECK([for strcmp], ac_cv_have_strcmp,
AC_TRY_LINK([#include <string.h>], [strcmp("", ""); return 0;], ac_cv_hav e_strcmp=yes, ac_cv_have_strcmp=no) AC_TRY_LINK([#include <string.h>], [strcmp("", ""); return 0;], ac_cv_hav e_strcmp=yes, ac_cv_have_strcmp=no)
) )
if test "$ac_cv_have_strcmp" = yes; then if test "$ac_cv_have_strcmp" = yes; then
AC_DEFINE(HAVE_STRCMP) AC_DEFINE(HAVE_STRCMP)
fi fi
dnl AC_HAVE_FUNCS(strncmp) AC_HAVE_FUNCS(strncmp)
AC_CACHE_CHECK([for strncmp], ac_cv_have_strncmp, AC_CACHE_CHECK([for strncmp], ac_cv_have_strncmp,
AC_TRY_LINK([#include <string.h>], [strncmp("", "", 1); return 0;], ac_cv _have_strncmp=yes, ac_cv_have_strncmp=no) AC_TRY_LINK([#include <string.h>], [strncmp("", "", 1); return 0;], ac_cv _have_strncmp=yes, ac_cv_have_strncmp=no)
) )
if test "$ac_cv_have_strncmp" = yes; then if test "$ac_cv_have_strncmp" = yes; then
AC_DEFINE(HAVE_STRNCMP) AC_DEFINE(HAVE_STRNCMP)
fi fi
dnl AC_HAVE_FUNCS(strcspn) AC_HAVE_FUNCS(strcasecmp)
AC_CACHE_CHECK([for strcasecmp], ac_cv_have_strcasecmp,
AC_TRY_LINK([#include <string.h>], [strcasecmp("", ""); return 0;], ac_cv
_have_strcasecmp=yes, ac_cv_have_strcasecmp=no)
)
if test "$ac_cv_have_strcasecmp" = yes; then
AC_DEFINE(HAVE_STRCASECMP)
fi
AC_HAVE_FUNCS(strncasecmp)
AC_CACHE_CHECK([for strncasecmp], ac_cv_have_strncasecmp,
AC_TRY_LINK([#include <string.h>], [strncasecmp("", "", 1); return 0;], a
c_cv_have_strncasecmp=yes, ac_cv_have_strncasecmp=no)
)
if test "$ac_cv_have_strncasecmp" = yes; then
AC_DEFINE(HAVE_STRNCASECMP)
fi
AC_HAVE_FUNCS(strcspn)
AC_CACHE_CHECK([for strcspn], ac_cv_have_strcspn, AC_CACHE_CHECK([for strcspn], ac_cv_have_strcspn,
AC_TRY_LINK([#include <string.h>], [strcspn("", ""); return 0;], ac_cv_ha ve_strcspn=yes, ac_cv_have_strcspn=no) AC_TRY_LINK([#include <string.h>], [strcspn("", ""); return 0;], ac_cv_ha ve_strcspn=yes, ac_cv_have_strcspn=no)
) )
if test "$ac_cv_have_strcspn" = yes; then if test "$ac_cv_have_strcspn" = yes; then
AC_DEFINE(HAVE_STRCSPN) AC_DEFINE(HAVE_STRCSPN)
fi fi
dnl AC_HAVE_FUNCS(strstr) AC_HAVE_FUNCS(strspn)
AC_CACHE_CHECK([for strspn], ac_cv_have_strspn,
AC_TRY_LINK([#include <string.h>], [strspn("", ""); return 0;], ac_cv_hav
e_strspn=yes, ac_cv_have_strspn=no)
)
if test "$ac_cv_have_strspn" = yes; then
AC_DEFINE(HAVE_STRSPN)
fi
AC_HAVE_FUNCS(strstr)
AC_CACHE_CHECK([for strstr], ac_cv_have_strstr, AC_CACHE_CHECK([for strstr], ac_cv_have_strstr,
AC_TRY_LINK([#include <string.h>], [strstr("", ""); return 0;], ac_cv_hav e_strstr=yes, ac_cv_have_strstr=no) AC_TRY_LINK([#include <string.h>], [strstr("", ""); return 0;], ac_cv_hav e_strstr=yes, ac_cv_have_strstr=no)
) )
if test "$ac_cv_have_strstr" = yes; then if test "$ac_cv_have_strstr" = yes; then
AC_DEFINE(HAVE_STRSTR) AC_DEFINE(HAVE_STRSTR)
fi fi
dnl AC_HAVE_FUNCS(memmove) AC_HAVE_FUNCS(memchr)
AC_CACHE_CHECK([for memchr], ac_cv_have_memchr,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; memchr(a, 0, 1); return
0;], ac_cv_have_memchr=yes, ac_cv_have_memchr=no)
)
if test "$ac_cv_have_memchr" = yes; then
AC_DEFINE(HAVE_MEMCHR)
fi
AC_HAVE_FUNCS(memcmp)
AC_CACHE_CHECK([for memcmp], ac_cv_have_memcmp,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; memcmp(a, a, 1); return
0;], ac_cv_have_memcmp=yes, ac_cv_have_memcmp=no)
)
if test "$ac_cv_have_memcmp" = yes; then
AC_DEFINE(HAVE_MEMCMP)
fi
AC_HAVE_FUNCS(memcpy)
AC_CACHE_CHECK([for memcpy], ac_cv_have_memcpy,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; memcpy(a, a, 1); return
0;], ac_cv_have_memcpy=yes, ac_cv_have_memcpy=no)
)
if test "$ac_cv_have_memcpy" = yes; then
AC_DEFINE(HAVE_MEMCPY)
fi
AC_HAVE_FUNCS(memmove)
AC_CACHE_CHECK([for memmove], ac_cv_have_memmove, AC_CACHE_CHECK([for memmove], ac_cv_have_memmove,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; memmove(a, a, 1); return 0;], ac_cv_have_memmove=yes, ac_cv_have_memmove=no) AC_TRY_LINK([#include <string.h>], [char a[[1]]; memmove(a, a, 1); return 0;], ac_cv_have_memmove=yes, ac_cv_have_memmove=no)
) )
if test "$ac_cv_have_memmove" = yes; then if test "$ac_cv_have_memmove" = yes; then
AC_DEFINE(HAVE_MEMMOVE) AC_DEFINE(HAVE_MEMMOVE)
fi fi
dnl AC_HAVE_FUNCS(strerror) AC_HAVE_FUNCS(memset)
AC_CACHE_CHECK([for memset], ac_cv_have_memset,
AC_TRY_LINK([#include <string.h>], [char a[[1]]; memset(a, 0, 1); return
0;], ac_cv_have_memset=yes, ac_cv_have_memset=no)
)
if test "$ac_cv_have_memset" = yes; then
AC_DEFINE(HAVE_MEMSET)
fi
AC_HAVE_FUNCS(strerror)
AC_CACHE_CHECK([for strerror], ac_cv_have_strerror, AC_CACHE_CHECK([for strerror], ac_cv_have_strerror,
AC_TRY_LINK([#include <string.h>], [char *c = strerror(1); return 0;], ac _cv_have_strerror=yes, ac_cv_have_strerror=no) AC_TRY_LINK([#include <string.h>], [char *c = strerror(1); return 0;], ac _cv_have_strerror=yes, ac_cv_have_strerror=no)
) )
if test "$ac_cv_have_strerror" = yes; then if test "$ac_cv_have_strerror" = yes; then
AC_DEFINE(HAVE_STRERROR) AC_DEFINE(HAVE_STRERROR)
fi fi
if test "$ac_cv_func_select" != yes; then if test "$ac_cv_func_select" != yes; then
AC_ERROR([select function not present]) AC_ERROR([select function not present])
fi fi
if test "$ac_cv_func_strtol" != yes; then
AC_ERROR([strtol function not present])
fi
dnl Checks for libraries. dnl Checks for libraries.
dnl Replace `main' with a function in -lgpm:
AC_CHECK_LIB(gpm, Gpm_Open)
AC_CHECK_HEADERS(gpm.h)
dnl Replace `main' with a function in -lsocket:
AC_CHECK_FUNC(socket, cf_result=yes, cf_result=no) AC_CHECK_FUNC(socket, cf_result=yes, cf_result=no)
if test "$cf_result" = no; then if test "$cf_result" = no; then
AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(socket, socket)
if test "$ac_cv_lib_socket_socket" = no; then if test "$ac_cv_lib_socket_socket" = no; then
AC_CHECK_LIB(network, socket) AC_CHECK_LIB(network, socket)
if test "$ac_cv_lib_network_socket" = no; then if test "$ac_cv_lib_network_socket" = no; then
AC_ERROR([socket function not present]) AC_ERROR([socket function not present])
fi fi
fi fi
fi fi
skipping to change at line 315 skipping to change at line 430
#include <netdb.h> #include <netdb.h>
int main() int main()
{ {
return !gethostbyname("www.gnu.org"); return !gethostbyname("www.gnu.org");
} }
], ac_cv_gethostbyname_bug=no, ac_cv_gethostbyname_bug=yes, ac_cv _gethostbyname_bug="$ac_cv_have_watcom") ], ac_cv_gethostbyname_bug=no, ac_cv_gethostbyname_bug=yes, ac_cv _gethostbyname_bug="$ac_cv_have_watcom")
) )
test "$ac_cv_gethostbyname_bug" = yes && AC_DEFINE(HAVE_GETHOSTBYNAME_BUG ) test "$ac_cv_gethostbyname_bug" = yes && AC_DEFINE(HAVE_GETHOSTBYNAME_BUG )
fi fi
AC_HAVE_FUNCS(gethostbyaddr)
AC_HAVE_FUNCS(herror) AC_HAVE_FUNCS(herror)
AC_HAVE_FUNCS(cfmakeraw) AC_HAVE_FUNCS(cfmakeraw)
AC_HAVE_FUNCS(cygwin_conv_to_full_win32_path) AC_HAVE_FUNCS(cygwin_conv_to_full_win32_path)
AC_HAVE_FUNCS(cygwin_conv_path) AC_HAVE_FUNCS(cygwin_conv_path)
AC_HAVE_FUNCS(uwin_path)
AC_HAVE_FUNCS(unixpath2win) AC_HAVE_FUNCS(unixpath2win)
AC_HAVE_FUNCS(winpath2unix) AC_HAVE_FUNCS(winpath2unix)
AC_CHECK_HEADERS(gpm.h)
AC_CHECK_LIB(gpm, Gpm_Open)
AC_HAVE_FUNCS(Gpm_GetLibVersion)
AC_MSG_CHECKING([for OS/2 threads]) AC_MSG_CHECKING([for OS/2 threads])
CFLAGS_X="$CFLAGS" CFLAGS_X="$CFLAGS"
CFLAGS="$CFLAGS -Zmt" CFLAGS="$CFLAGS -Zmt"
AC_TRY_LINK([#include <stdlib.h>], [_beginthread(NULL, NULL, 0, NULL)], cf_resul t=yes, cf_result=no) AC_TRY_LINK([#include <stdlib.h>], [_beginthread(NULL, NULL, 0, NULL)], cf_resul t=yes, cf_result=no)
AC_MSG_RESULT($cf_result) AC_MSG_RESULT($cf_result)
if test "$cf_result" = yes; then if test "$cf_result" = yes; then
AC_DEFINE(HAVE_BEGINTHREAD) AC_DEFINE(HAVE_BEGINTHREAD)
else else
CFLAGS="$CFLAGS_X" CFLAGS="$CFLAGS_X"
# AC_CHECK_FUNC(pthread_create, cf_result=yes, cf_result=no) # AC_CHECK_FUNC(pthread_create, cf_result=yes, cf_result=no)
skipping to change at line 370 skipping to change at line 490
if test "$cf_result" != yes; then if test "$cf_result" != yes; then
CPPFLAGS="$CPPFLAGS_X" CPPFLAGS="$CPPFLAGS_X"
LIBS="$LIBS_X" LIBS="$LIBS_X"
else else
AC_DEFINE(X2) AC_DEFINE(X2)
fi fi
AC_MSG_RESULT($cf_result) AC_MSG_RESULT($cf_result)
#ifdef HAVE_SSL #ifdef HAVE_SSL
ssld=yes ssld=yes
withval=
AC_ARG_WITH(ssl, [ --with-ssl(=directory) enable SSL support], [if test "$with val" = no; then disable_ssl=yes; else ssld="$withval"; fi]) AC_ARG_WITH(ssl, [ --with-ssl(=directory) enable SSL support], [if test "$with val" = no; then disable_ssl=yes; else ssld="$withval"; fi])
cf_result=no cf_result=no
if test -z "$disable_ssl"; then if test -z "$disable_ssl"; then
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(z, inflate)
CPPFLAGS_X="$CPPFLAGS" CPPFLAGS_X="$CPPFLAGS"
LIBS_X="$LIBS" LIBS_X="$LIBS"
if test "$static_link" != 0; then
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(z, inflate)
fi
CPPFLAGS_XX="$CPPFLAGS"
LIBS_XX="$LIBS"
PKG_CHECK_MODULES(OPENSSL,openssl,pkgconfig_openssl=yes,pkgconfig_openssl =no) PKG_CHECK_MODULES(OPENSSL,openssl,pkgconfig_openssl=yes,pkgconfig_openssl =no)
if test "$pkgconfig_openssl" != yes; then if test "$PKG_CONFIG" != no -a "$pkgconfig_openssl" = no; then
AC_MSG_RESULT($pkgconfig_openssl) AC_MSG_RESULT($pkgconfig_openssl)
fi fi
if test "$pkgconfig_openssl" = yes && test "$ssld" = yes; then if test "$pkgconfig_openssl" = yes && test "$ssld" = yes; then
AC_MSG_CHECKING([for OpenSSL]) AC_MSG_CHECKING([for OpenSSL])
CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS" CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS"
LIBS="$OPENSSL_LIBS $LIBS" LIBS="$OPENSSL_LIBS $LIBS"
AC_TRY_LINK([#include <openssl/ssl.h>], [OpenSSL_add_all_algorith ms()], cf_result=yes, cf_result=no) AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_algorithm s()], cf_result=yes, cf_result=no)
if test "$cf_result" != yes; then if test "$cf_result" != yes; then
AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_a lgorithms()], cf_result=yes, cf_result=no) AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_a lgorithms()], cf_result=yes, cf_result=no)
fi fi
else else
AC_MSG_CHECKING([for OpenSSL]) AC_MSG_CHECKING([for OpenSSL])
if test "$ssld" = yes; then if test "$ssld" = yes; then
ssld=". /usr /usr/local /usr/local/openssl /usr/lib/opens sl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/open ssl" ssld=". /usr /usr/local /usr/local/openssl /usr/lib/opens sl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/open ssl"
fi fi
for ssldir in $ssld; do for ssldir in $ssld; do
if test "$cf_result" = no; then if test "$cf_result" = no; then
if test ! -z "$ssldir" && test "$ssldir" != /usr && test "$ssldir" != .; then if test ! -z "$ssldir" && test "$ssldir" != /usr && test "$ssldir" != .; then
LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_ LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_
X" XX"
CPPFLAGS="$CPPFLAGS_X -I$ssldir/include" CPPFLAGS="$CPPFLAGS_XX -I$ssldir/include"
else else
LIBS="-lssl -lcrypto $LIBS_X" LIBS="-lssl -lcrypto $LIBS_XX"
fi CPPFLAGS="$CPPFLAGS_XX"
AC_TRY_LINK([#include <openssl/ssl.h>], [OpenSSL_
add_all_algorithms()], cf_result=yes, cf_result=no)
if test "$cf_result" != yes; then
AC_TRY_LINK([#include <openssl/ssl.h>], [
SSLeay_add_ssl_algorithms()], cf_result=yes, cf_result=no)
fi fi
AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_a dd_ssl_algorithms()], cf_result=yes, cf_result=no)
fi fi
done done
fi fi
AC_MSG_RESULT($cf_result) AC_MSG_RESULT($cf_result)
if test "$cf_result" != yes; then if test "$cf_result" != yes; then
if test "$withval" = yes; then if test -n "$withval" -a "$withval" != no; then
AC_MSG_ERROR("OpenSSL not found") AC_MSG_ERROR("OpenSSL not found")
fi fi
CPPFLAGS="$CPPFLAGS_X" CPPFLAGS="$CPPFLAGS_X"
LIBS="$LIBS_X" LIBS="$LIBS_X"
else else
AC_DEFINE(HAVE_SSL) AC_DEFINE(HAVE_SSL)
AC_HAVE_FUNCS(RAND_add RAND_egd RAND_file_name RAND_load_file RAN D_write_file)
fi fi
fi fi
#endif #endif
test "$have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe" test "$have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"
AC_OUTPUT(Makefile) AC_OUTPUT(Makefile)
 End of changes. 47 change blocks. 
68 lines changed or deleted 198 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)