From c9fa9cd040bbc617a2e0df3748cede8c2890d12d Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Sun, 21 Oct 2001 15:25:45 +0000 Subject: [PATCH] Fix lib handling. svn path=/trunk/icecast/; revision=2235 --- configure.in | 12 ++++++++---- src/Makefile.am | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 49c104bc..d1d5fe37 100644 --- a/configure.in +++ b/configure.in @@ -9,6 +9,8 @@ AM_PROG_LIBTOOL dnl Set some options based on environment +SOCKET_LIBS= + if test -z "$GCC"; then case $host in *-*-irix*) @@ -20,7 +22,7 @@ if test -z "$GCC"; then DEBUG="-v -g -D_REENTRANT" CFLAGS="-xO4 -fast -w -fsimple -native -xcg92 -D_REENTRANT" PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc -D_REENTRANT" - SUN_LIBS="-lnsl -lsocket -lresolv" + SOCKET_LIBS="-lnsl -lsocket -lresolv" ;; *) DEBUG="-g -D_REENTRANT" @@ -39,7 +41,7 @@ else DEBUG="-g -Wall -fsigned-char -mv8 -D_REENTRANT" CFLAGS="-O20 -ffast-math -fsigned-char -mv8 -D_REENTRANT" PROFILE="-pg -g -O20 -fsigned-char -mv8 -D_REENTRANT" - SUN_LIBS="-lnsl -lsocket -lresolv" + SOCKET_LIBS="-lnsl -lsocket -lresolv" ;; *) DEBUG="-g -Wall -fsigned-char -D_REENTRANT" @@ -104,8 +106,10 @@ AM_PATH_VORBIS(, AC_MSG_ERROR(must have Vorbis installed!)) dnl Make substitutions -LIBS="$LIBS $SUN_LIBS $XML_LIBS $OGG_LIBS $VORBIS_LIBS" - +AC_SUBST(XML_LIBS) +AC_SUBST(OGG_LIBS) +AC_SUBST(VORBIS_LIBS) +AC_SUBST(SOCKET_LIBS) AC_SUBST(LIBTOOL_DEPS) AC_SUBST(OPT) AC_SUBST(LIBS) diff --git a/src/Makefile.am b/src/Makefile.am index e2a92027..18a01ca6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -14,7 +14,8 @@ icecast_SOURCES = config.c main.c logging.c sighandler.c connection.c global.c\ icecast_LDADD = net/libicenet.la thread/libicethread.la httpp/libicehttpp.la\ log/libicelog.la avl/libiceavl.la timing/libicetiming.la -LIBS = -lpthread + +LIBS = -lpthread @SOCKET_LIBS@ @XML_LIBS@ @OGG_LIBS@ @VORBIS_LIBS@ INCLUDES = -I$(srcdir)/net -I$(srcdir)/thread -I$(srcdir)/avl -I$(srcdir)/httpp \ -I$(srcdir)/log -I$(srcdir)/timing