mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
4ec1a59c35
PR: 27856 Submitted by: Anders Nordby <anders@fix.no>
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
--- configure.in.orig Wed May 30 02:08:44 2001
|
|
+++ configure.in Sun Jun 3 19:50:11 2001
|
|
@@ -57,7 +57,7 @@
|
|
AC_DEFINE_UNQUOTED(MSYSLOG_VERSION_STR, "$MSYSLOG_VERSION")dnl
|
|
echo msyslog version... $MSYSLOG_VERSION
|
|
|
|
-MLIBNAME="libmsyslog.so.$MSYSLOG_VERSION" ;
|
|
+MLIBNAME="libmsyslog.so.4" ;
|
|
AC_DEFINE_UNQUOTED(MLIBNAME_STR, "$MLIBNAME")dnl
|
|
|
|
MANPAGES="syslog.conf.5 syslogd.8"
|
|
@@ -66,12 +66,12 @@
|
|
then
|
|
prefix=$ac_default_prefix
|
|
fi
|
|
-AC_DEFINE_UNQUOTED(INSTALL_LIBDIR, "$prefix/lib/alat")
|
|
+AC_DEFINE_UNQUOTED(INSTALL_LIBDIR, "$prefix/lib")
|
|
|
|
dnl
|
|
dnl Check needed libs for daemon
|
|
dnl
|
|
-AC_CHECK_LIB(dl, dlopen, SYSLOGD_LIBS="$SYSLOGD_LIBS -ldl")dnl
|
|
+AC_CHECK_LIB(c, dlopen)dnl
|
|
AC_CHECK_LIB(socket, connect, SYSLOGD_LIBS="$SYSLOGD_LIBS -lsocket")dnl
|
|
AC_CHECK_LIB(nsl, gethostbyname, SYSLOGD_LIBS="$SYSLOGD_LIBS -lnsl")dnl
|
|
AC_DEFINE(SYSLOGD_LIBS, $SYSLOGD_LIBS)dnl
|
|
@@ -153,6 +153,12 @@
|
|
AC_DEFINE_UNQUOTED(SYMBOL_PREFIX, "_")dnl
|
|
SHARED_PARAMS="-Bshareable"
|
|
DCCFLAGS="-fPIC"
|
|
+elif test "$UNAME" = "FreeBSD" ; then
|
|
+ AC_DEFINE(DLOPEN_FLAGS, RTLD_LAZY)dnl
|
|
+ AC_DEFINE_UNQUOTED(SYMBOL_PREFIX, "")dnl
|
|
+ SHARED_PARAMS="-Bshareable"
|
|
+ DCCFLAGS="-fPIC"
|
|
+ SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-E"
|
|
elif test "$UNAME" = "Linux" ; then
|
|
AC_DEFINE(DLOPEN_FLAGS, RTLD_LAZY | RTLD_GLOBAL)dnl
|
|
AC_DEFINE_UNQUOTED(SYMBOL_PREFIX, "")dnl
|