From 4d892a8a3d98ab37c7910753e3f436dc84a19f77 Mon Sep 17 00:00:00 2001 From: didg Date: Sat, 9 Sep 2006 04:30:01 +0000 Subject: [PATCH] try to get the libs dep a bit better --- configure.in | 13 +++++++------ etc/afpd/Makefile.am | 2 +- etc/papd/Makefile.am | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index 324f8e11..8aaec6bd 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.204 2006-09-09 04:07:25 didg Exp $ +dnl $Id: configure.in,v 1.205 2006-09-09 04:30:01 didg Exp $ dnl configure.in for netatalk AC_INIT(etc/afpd/main.c) @@ -46,7 +46,7 @@ dnl AC_CHECK_LIB(crypt, main) dnl Replace `main' with a function in -ld: dnl AC_CHECK_LIB(d, main) dnl Replace `main' with a function in -ldl: -# AC_CHECK_LIB(dl, dlopen) +dnl AC_CHECK_LIB(dl, dlopen) dnl Replace `main' with a function in -lkauth: dnl AC_CHECK_LIB(kauth, main) dnl Replace `main' with a function in -lkrb: @@ -55,16 +55,17 @@ dnl Replace `main' with a function in -llwp: dnl AC_CHECK_LIB(lwp, main) dnl Replace `main' with a function in -ln: dnl AC_CHECK_LIB(n, main) -dnl Replace `main' with a function in -lnsl: -# AC_CHECK_LIB(nsl, main) + +dnl not the right stuff but should be enough for now +AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) +AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)]) + dnl Replace `main' with a function in -lprot: dnl AC_CHECK_LIB(prot, main) dnl Replace `main' with a function in -lrx: dnl AC_CHECK_LIB(rx, main) dnl Replace `main' with a function in -lrxkad: dnl AC_CHECK_LIB(rxkad, main) -dnl Replace `main' with a function in -lsocket: -AC_CHECK_LIB(socket, socket) dnl Replace `main' with a function in -lsys: dnl AC_CHECK_LIB(sys, main) dnl Replace `main' with a function in -lubik: diff --git a/etc/afpd/Makefile.am b/etc/afpd/Makefile.am index 1de6782c..7da1ad06 100644 --- a/etc/afpd/Makefile.am +++ b/etc/afpd/Makefile.am @@ -17,7 +17,7 @@ noinst_HEADERS = auth.h afp_config.h desktop.h directory.h file.h \ filedir.h fork.h globals.h icon.h mangle.h misc.h status.h switch.h \ uam_auth.h uid.h unix.h volume.h afp_vfs.h hash.h -LIBS = @LIBS@ @PAM_LIBS@ @QUOTA_LIBS@ @SLP_LIBS@ @WRAP_LIBS@ @LIBADD_DL@ +LIBS = @LIBS@ @QUOTA_LIBS@ @SLP_LIBS@ @WRAP_LIBS@ @LIBADD_DL@ CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/sys \ @CFLAGS@ @SLP_CFLAGS@ \ diff --git a/etc/papd/Makefile.am b/etc/papd/Makefile.am index 66929b0d..8f5c5697 100644 --- a/etc/papd/Makefile.am +++ b/etc/papd/Makefile.am @@ -9,7 +9,7 @@ bin_PROGRAMS = showppd papd_SOURCES = main.c printcap.c session.c file.c comment.c lp.c ppd.c \ magics.c headers.c queries.c auth.c uam.c print_cups.c -papd_LDADD = $(top_builddir)/libatalk/libatalk.la @PAM_LIBS@ @CUPS_LIBS@ @LIBADD_DL@ +papd_LDADD = $(top_builddir)/libatalk/libatalk.la @CUPS_LIBS@ @LIBADD_DL@ papd_LDFLAGS = -export-dynamic @CUPS_LDFLAGS@ showppd_SOURCES = showppd.c ppd.c -- 2.39.2