summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:27 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:27 +0000
commitabb9b874c5d1573a42c8c5519a38ac0575ef77ba (patch)
tree2bbc3ca2975de0ba328acb6b1061cce6b83ba71e
parent97db00570a3aab46d88db0f9d1efbcd4d2fd8131 (diff)
More solaris support
Author: jgg Date: 1999-12-10 04:48:05 GMT More solaris support
-rw-r--r--buildlib/environment.mak.in3
-rw-r--r--configure.in69
-rw-r--r--methods/makefile4
3 files changed, 44 insertions, 32 deletions
diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in
index 6a1d77a41..83c52394e 100644
--- a/buildlib/environment.mak.in
+++ b/buildlib/environment.mak.in
@@ -12,7 +12,8 @@ NUM_PROCS = @NUM_PROCS@
PICFLAGS+= -fPIC -DPIC
LFLAGS+= @LDFLAGS@
LEFLAGS+=
-XLIBS:=@X_LIBS@ @X_PRE_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
+XLIBS:= @X_LIBS@ @X_PRE_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
+SOCKETLIBS:= @SOCKETLIBS@
# Dep generation - this only works for gnu stuff
INLINEDEPFLAG = -MD
diff --git a/configure.in b/configure.in
index 609c1643e..7387a48bd 100644
--- a/configure.in
+++ b/configure.in
@@ -20,10 +20,8 @@ dnl -- SET THIS TO THE RELEASE VERSION --
AC_DEFINE_UNQUOTED(VERSION,"0.3.15")
AC_DEFINE_UNQUOTED(PACKAGE,"apt")
-dnl Tom's host stuff
-AC_CHECK_TOOL_PREFIX dnl Initial guess
-
dnl Check our C compiler
+AC_CHECK_TOOL_PREFIX
AC_PROG_CC
AC_ISC_POSIX
@@ -33,32 +31,45 @@ AC_CHECK_TOOL_PREFIX dnl recheck, in case the initial guess was wrong
dnl Check for other programs
AC_PROG_CXX
-AC_LANG_CPLUSPLUS
-dnl Checks for X11
-AC_PATH_X
-AC_PATH_XTRA
-AC_SUBST(X11LIB)
-X11LIB=
-if test "$no_x" != "yes"; then
- X11LIB="-lX11"
- AC_DEFINE(HAVE_X11)
- dnl Checks for ZPM
- AC_CHECK_LIB(Xpm, XpmLibraryVersion,[AC_DEFINE(HAVE_LIBXPM) XPMLIB="-lXpm"],,$X_LIBS $X_PRE_LIBS $X11LIB $X_EXTRA_LIBS)
- AC_SUBST(XPMLIB)
- if test "$XPMLIB" != "-lXpm"; then
- AC_MSG_ERROR(failed: I need xpm if you are building for X)
- fi
-fi
-
-dnl Checks for Slang
-AC_CHECK_LIB(slang, SLang_Version,[AC_DEFINE(HAVE_LIBSLANG) SLANGLIB="-lslang"])
-AC_SUBST(SLANGLIB)
-
-dnl Checks for GPM
-AC_ARG_WITH(gpm,[ --without-gpm do not use GPM mouse support])
-if test "$with_gpm" != "no"; then
- AC_CHECK_LIB(gpm, Gpm_Open,[AC_DEFINE(HAVE_LIBGPM) GPMLIB="-lgpm"])
- AC_SUBST(GPMLIB)
+#AC_LANG_CPLUSPLUS
+
+dnl Checks for sockets
+SAVE_LIBS="$LIBS"
+LIBS=""
+AC_SEARCH_LIBS(gethostbyname,nsl)
+AC_SEARCH_LIBS(connect,socket)
+SOCKETLIBS="$LIBS"
+AC_SUBST(SOCKETLIBS)
+LIBS="$SAVE_LIBS"
+
+dnl Section Disabled pending removal of deity widget library -- jgg
+if test "yes" != "yes"; then
+ dnl Checks for X11
+ AC_PATH_X
+ AC_PATH_XTRA
+ AC_SUBST(X11LIB)
+ X11LIB=
+ if test "$no_x" != "yes"; then
+ X11LIB="-lX11"
+ AC_DEFINE(HAVE_X11)
+ dnl Checks for ZPM
+ AC_CHECK_LIB(Xpm, XpmLibraryVersion,[AC_DEFINE(HAVE_LIBXPM) XPMLIB="-lXpm"],,$X_LIBS $X_PRE_LIBS $X11LIB $X_EXTRA_LIBS)
+ AC_SUBST(XPMLIB)
+ if test "$XPMLIB" != "-lXpm"; then
+ AC_MSG_ERROR(failed: I need xpm if you are building for X)
+ fi
+ fi
+
+ dnl Checks for Slang
+ AC_CHECK_LIB(slang, SLang_Version,[AC_DEFINE(HAVE_LIBSLANG) SLANGLIB="-lslang"])
+ AC_SUBST(SLANGLIB)
+
+ dnl Checks for GPM
+ AC_ARG_WITH(gpm,[ --without-gpm do not use GPM mouse support])
+ if test "$with_gpm" != "no"; then
+ AC_CHECK_LIB(gpm, Gpm_Open,[AC_DEFINE(HAVE_LIBGPM) GPMLIB="-lgpm"])
+ AC_SUBST(GPMLIB)
+ fi
fi
dnl Checks for pthread
diff --git a/methods/makefile b/methods/makefile
index 32ec3464d..addaf23c9 100644
--- a/methods/makefile
+++ b/methods/makefile
@@ -36,14 +36,14 @@ include $(PROGRAM_H)
# The http method
PROGRAM=http
-SLIBS = -lapt-pkg
+SLIBS = -lapt-pkg $SOCKETLIBS
LIB_MAKES = apt-pkg/makefile
SOURCE = http.cc rfc2553emu.cc connect.cc
include $(PROGRAM_H)
# The ftp method
PROGRAM=ftp
-SLIBS = -lapt-pkg
+SLIBS = -lapt-pkg $SOCKETLIBS
LIB_MAKES = apt-pkg/makefile
SOURCE = ftp.cc rfc2553emu.cc connect.cc
include $(PROGRAM_H)