mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Check which network libraries (socket, nsl, resolv) are needed. configure
will set the variable LIBS to the correct value. Setting this in prefix.XXX should no longer be neccessary. If it doesn't work for you, please extend the tests in configure.in, rather than defining this in prefix.your_system. Another autoconf cleanup: o check for the existence of the function strcasecmp and stricmp o replaced STRICMP
This commit is contained in:
parent
87aa5bde06
commit
478e55ec3f
17
configure.in
17
configure.in
@ -1,4 +1,4 @@
|
||||
# $Id: configure.in,v 1.36 2002-08-26 11:59:01 eku Exp $
|
||||
# $Id: configure.in,v 1.37 2002-08-28 07:03:07 eku Exp $
|
||||
|
||||
################################# INITIALISATION ###############################
|
||||
|
||||
@ -140,6 +140,21 @@ if test "$ac_cv_func_gettimeofday" = "yes"; then
|
||||
esac
|
||||
fi
|
||||
AC_CHECK_FUNCS(time times)
|
||||
AC_CHECK_FUNCS(gethostname connect)
|
||||
if test "$ac_cv_func_gethostname" = "no"; then
|
||||
AC_CHECK_LIB(nsl, gethostname, XE_APPEND(-lnsl,LIBS))
|
||||
fi
|
||||
if test "$ac_cv_func_connect" = "no"; then
|
||||
AC_CHECK_LIB(socket, connect, XE_APPEND(-lsocket,LIBS),, $LIBS)
|
||||
fi
|
||||
AC_CHECK_FUNC(strcasecmp stricmp)
|
||||
if test "$ac_cv_func_strcasecmp" = "no"; then
|
||||
# EKU: On SINIX-Z strcasecmp is in libresolv.
|
||||
AC_CHECK_LIB(gen, dirname,
|
||||
[XE_APPEND(-lresolv,LIBS)
|
||||
unset ac_cv_func_strcasecmp
|
||||
AC_CHECK_FUNCS(strcasecmp)],, $LIBS)
|
||||
fi
|
||||
AC_CHECK_FUNCS(dirname)
|
||||
if test "$ac_cv_func_dirname" = "no"; then
|
||||
# EKU: On SINIX-Z dirname is in libgen.
|
||||
|
Loading…
Reference in New Issue
Block a user