Added this to CVS and hacked it to use `$CC -shared' to create shared
2000-02-22 Martin Baulig <martin@home-of-linux.org> * ltconfig: Added this to CVS and hacked it to use `$CC -shared' to create shared libraries on Solaris. * automake.sh: Don't run libtoolize on Solaris but use the CVS version instead.
This commit is contained in:
committed by
Martin Baulig
parent
0a3a0c1a34
commit
00d9dd7065
@@ -20,7 +20,6 @@ libgtop-1.*.*
|
||||
libgtop-mirror.sh.swp
|
||||
libgtopConf.sh
|
||||
libtool
|
||||
ltconfig
|
||||
ltmain.sh
|
||||
macros
|
||||
stamp-h
|
||||
|
@@ -1,3 +1,11 @@
|
||||
2000-02-22 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* ltconfig: Added this to CVS and hacked it to use `$CC -shared'
|
||||
to create shared libraries on Solaris.
|
||||
|
||||
* automake.sh: Don't run libtoolize on Solaris but use the CVS
|
||||
version instead.
|
||||
|
||||
2000-02-16 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* configure.in (LIBGTOP_LIBS): Add `-lgtop_backend_sysdeps' and
|
||||
|
@@ -14,7 +14,12 @@ PKG_NAME="Gnome Top Library"
|
||||
exit 1
|
||||
}
|
||||
|
||||
. $srcdir/macros/autogen.sh
|
||||
if test `uname` = 'SunOS' ; then
|
||||
NO_LIBTOOLIZE=yes . $srcdir/macros/autogen.sh
|
||||
else
|
||||
. $srcdir/macros/autogen.sh
|
||||
fi
|
||||
|
||||
cp -f $srcdir/po/Makefile.in.in.in $srcdir/po/Makefile.in.in
|
||||
|
||||
echo ""
|
||||
|
@@ -157,7 +157,7 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
|
||||
else
|
||||
with_modules=no
|
||||
fi
|
||||
])
|
||||
],[with_modules=auto])
|
||||
|
||||
dynworks=false
|
||||
deps=
|
||||
@@ -167,8 +167,8 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
|
||||
if test x$with_modules = xyes; then
|
||||
AC_MSG_CHECKING(whether dynamic modules work)
|
||||
AC_MSG_CHECKING(whether dynamic modules work)
|
||||
if test x$with_modules = xauto; then
|
||||
oLIBS="$LIBS"
|
||||
oCFLAGS="$CFLAGS"
|
||||
LIBS="`glib-config --libs gmodule`"
|
||||
@@ -186,20 +186,24 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
|
||||
], dynworks=true, dynworks=false, dynworks=true)
|
||||
LIBS="$oLIBS"
|
||||
CFLAGS="$oCFLAGS"
|
||||
fi
|
||||
|
||||
dnl Now we check to see if our libtool supports shared lib deps
|
||||
dnl (in a rather ugly way even)
|
||||
if $dynworks; then
|
||||
libgtop_libtool_config="${CONFIG_SHELL-/bin/sh} libtool --config"
|
||||
libgtop_deplibs_check=`$libgtop_libtool_config | \
|
||||
grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''\"]]' | \
|
||||
sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
|
||||
if test "x$libgtop_deplibs_check" = "xnone" || \
|
||||
test "x$libgtop_deplibs_check" = "xunknown" || \
|
||||
test "x$libgtop_deplibs_check" = "x"; then
|
||||
dynworks=false
|
||||
dnl Now we check to see if our libtool supports shared lib deps
|
||||
dnl (in a rather ugly way even)
|
||||
if $dynworks; then
|
||||
libgtop_libtool_config="${CONFIG_SHELL-/bin/sh} libtool --config"
|
||||
libgtop_deplibs_check=`$libgtop_libtool_config | \
|
||||
grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''\"]]' | \
|
||||
sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
|
||||
if test "x$libgtop_deplibs_check" = "xnone" || \
|
||||
test "x$libgtop_deplibs_check" = "xunknown" || \
|
||||
test "x$libgtop_deplibs_check" = "x"; then
|
||||
dynworks=false
|
||||
fi
|
||||
fi
|
||||
elif test x$with_modules = xyes; then
|
||||
dynworks=true
|
||||
else
|
||||
dynworks=false
|
||||
fi
|
||||
|
||||
if $dynworks; then
|
||||
@@ -215,9 +219,9 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
|
||||
libgtop_dynamic_ldflags=
|
||||
fi
|
||||
|
||||
AC_SUBST(libgtop_dynamic_ldflags)
|
||||
|
||||
AC_MSG_RESULT($libgtop_use_gmodule)
|
||||
|
||||
AC_SUBST(libgtop_dynamic_ldflags)
|
||||
])
|
||||
|
||||
AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
||||
|
@@ -2,7 +2,11 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
INCLUDES = @INCLUDES@
|
||||
|
||||
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
|
||||
dynamic_ldflags = @libgtop_dynamic_ldflags@
|
||||
|
||||
backenddir = @LIBGTOP_BACKEND_DIR@
|
||||
|
||||
backend_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
|
||||
|
||||
libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c \
|
||||
safeio.c swap.c uptime.c loadavg.c \
|
||||
@@ -12,14 +16,12 @@ libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c \
|
||||
procmap.c netload.c netinfo.c ppp.c \
|
||||
procdata.c interfaces.c
|
||||
|
||||
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) -module -export-dynamic
|
||||
|
||||
libgtop_sysdeps_la_LIBADD = @DL_LIB@
|
||||
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) $(dynamic_ldflags)
|
||||
|
||||
libgtop_sysdeps_suid_la_SOURCES = open_suid.c close_suid.c \
|
||||
shm_limits.c msg_limits.c sem_limits.c
|
||||
|
||||
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO) -module -export-dynamic
|
||||
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO) $(dynamic_ldflags)
|
||||
|
||||
|
||||
include_HEADERS = glibtop_server.h glibtop_machine.h
|
||||
|
Reference in New Issue
Block a user