search for: ac_check_lib

Displaying 20 results from an estimated 221 matches for "ac_check_lib".

2001 Sep 29
0
configure.in fixes for 2.9.9p2
...brary with pcre + (optionally in PATH)], [ + case "$withval" in + no) ;; + *) + if test "x$withval" != "xyes"; then + CPPFLAGS="${CPPFLAGS} -I$withval/include" + LDFLAGS="${LDFLAGS} -L$withval/lib" + fi - AC_CHECK_LIB(pcre, pcre_info, - [ - AC_DEFINE(HAVE_LIBPCRE) - LIBS="$LIBS -lpcreposix -lpcre" - no_comp_check="yes" - ], - [ AC_MSG_ERROR([*** Can not locate pcre libraries.]) ] - ) + AC_CHECK_HEADER(pcreposix.h, + AC_CHECK_LIB(pcre, pcre_info,[ + AC_DEFINE(HAVE_...
2001 May 21
1
2.9p1 patches
...wo libraries are needed. The solution is not to hack in the value with a case statement but to figure out the proper autoconf way of solving the problem, independent of the hardcoding the solution for every platform. A solution proposed below is: AC_CHECK_FUNC(yp_match, , AC_CHECK_LIB(nsl, yp_match)) AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt)) We could probably also add: AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent)) 2. Checks such as the following are wrong: AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")...
2001 Feb 13
1
configure.in reorder patch
...sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stdarg.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h) + +saved_LIBS="$LIBS" # Checks for libraries. -if test -z "$no_libsocket" ; then - AC_CHECK_LIB(nsl, yp_match, , ) -fi if test -z "$no_libnsl" ; then - AC_CHECK_LIB(socket, main, , ) + AC_CHECK_LIB(nsl, yp_match, LIBS="$LIBS -lnsl") fi +if test -z "$no_libsocket" ; then + AC_CHECK_LIB(socket, main, + [ + if test "$saved_LIBS" = "$LIBS" ;...
1998 Nov 24
0
Additional autoconf test for linuxppc/mklinux
I am attaching a patch to R-0.63's configure.in file which will enable R to detect and use some special math libraries on linuxppc and mklinux. The patch provides tests for these libraries and enable/disable switches for them as well. One library is the libmoto math library which must be used in conjunction with libm (it only replaces some of libm's functions). The other is a RISC
1998 Nov 24
0
Additional autoconf test for linuxppc/mklinux
I am attaching a patch to R-0.63's configure.in file which will enable R to detect and use some special math libraries on linuxppc and mklinux. The patch provides tests for these libraries and enable/disable switches for them as well. One library is the libmoto math library which must be used in conjunction with libm (it only replaces some of libm's functions). The other is a RISC
2001 Apr 07
1
samba on NetBSD - some patches
...uot;smbclient"; #endif $NetBSD: patch-ae,v 1.3 2000/09/03 09:17:00 kei Exp $ --- configure.in.orig Tue Jul 11 02:37:45 2000 +++ configure.in Sun Sep 3 06:23:09 2000 @@ -237,9 +237,6 @@ AC_CHECK_TYPE(offset_t,loff_t) AC_CHECK_TYPE(ssize_t, int) -# we need libcups for CUPS support... -AC_CHECK_LIB(cups,httpConnect) - # we need libdl for PAM and the new VFS code AC_CHECK_LIB(dl,main) @@ -315,7 +312,14 @@ # test for where we get readline() from if test "$ac_cv_header_readline_h" = "yes" || test "$ac_cv_header_readline_readline_h" = "yes"; then...
2014 Nov 05
2
[PATCH] Use -ltinfo instead of -lncurses.
...gure.ac b/configure.ac index 3165e96..8916ebd 100644 --- a/configure.ac +++ b/configure.ac @@ -355,14 +355,14 @@ struct sockaddr_un myaddr; dnl tgetent, tputs and UP [sic] are all required. They come from libtinfo dnl which is pulled in as a dependency of libncurses. old_LIBS="$LIBS" -AC_CHECK_LIB([ncurses], [tgetent], [], [ - AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'tgetent']) +AC_CHECK_LIB([tinfo], [tgetent], [], [ + AC_MSG_ERROR(['libtinfo' library (usually part of ncurses) not found, or it doesn't contain 'tgetent'])...
2012 Jun 29
4
[PATCH libguestfs 0/3] Fix configure script detection of Ruby.
These three patches ought to fix configure script detection of Ruby, especially on Debian where the Ruby C extensions library can be something like '-lruby1.8'. Rich.
2002 Jun 25
1
use libcrypt before libcrypto
...stance, MD5 in freebsd/openbsd/netbsd, bcrypt in openbsd/netbsd). we need to use crypt() in libcrypt, not in licrypto, as much as possible. itojun --- configure.ac.orig Tue Jun 25 10:56:47 2002 +++ configure.ac Tue Jun 25 10:57:25 2002 @@ -697,6 +702,9 @@ ) fi +# use libcrypt if there is +AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") + # Search for OpenSSL saved_CPPFLAGS="$CPPFLAGS" saved_LDFLAGS="$LDFLAGS" @@ -761,12 +769,6 @@ ] ) -# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the -# version in OpenSSL. Skip this for PAM -if test &q...
2014 Nov 04
1
Re: [PATCH 7/9] python: fix detection of libpython features
...for some optional symbols in libpython. > - old_LIBS="$LIBS" > - > - PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ > - print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` > AC_CHECK_LIB([c],[PyCapsule_New], > [AC_DEFINE([HAVE_PYCAPSULE_NEW],1, > [Found PyCapsule_New in libpython.])], > - [],[$PYTHON_BLDLIBRARY]) > + [],[$PYTHON_LIBS]) > AC_CHECK_LIB([c],[PyString_...
2001 Oct 07
3
Using -lssh as shared library
...2.9.9p2/configure.in --- openssh-2.9.9p2.orig/configure.in Wed Sep 26 02:39:38 2001 +++ openssh-2.9.9p2/configure.in Mon Oct 8 02:15:29 2001 @@ -337,2 +337,3 @@ # Checks for libraries. +AUTH_LIBS= if test -z "$no_libnsl" ; then @@ -344,8 +345,5 @@ -dnl SCO OS3 needs this for libwrap -AC_CHECK_LIB(rpc, innetgr, LIBS="-lrpc -lyp -lrpc $LIBS" , , -lyp -lrpc) - -AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen") AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first or check config.log ***])) -AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIB...
2004 Aug 06
1
patch for compiling on IRIX
...================================================================== RCS file: /usr/local/cvsroot/speex/configure.in,v retrieving revision 1.62 diff -u -r1.62 configure.in --- configure.in 12 Feb 2004 08:30:15 -0000 1.62 +++ configure.in 17 Feb 2004 08:59:58 -0000 @@ -52,7 +52,15 @@ AC_SUBST(src) AC_CHECK_LIB(m, sin) -AC_CHECK_LIB(gnugetopt, getopt_long) + +# Check for getopt_long; if not found, use included source. +AC_CHECK_FUNCS([getopt_long],, +[# FreeBSD has a gnugetopt library. + AC_CHECK_LIB([gnugetopt],[getopt_long], +[AC_DEFINE([HAVE_GETOPT_LONG])], +[# Use the GNU replacement. +AC_LIBOBJ(geto...
2005 Nov 24
1
[PATCH] Fix typos and an error
...======================== RCS file: /cvs/openssh/configure.ac,v retrieving revision 1.307 diff -u -r1.307 configure.ac --- configure.ac 12 Nov 2005 07:42:37 -0000 1.307 +++ configure.ac 24 Nov 2005 09:00:16 -0000 @@ -410,8 +410,8 @@ *-sni-sysv*) # /usr/ucblib MUST NOT be searched on ReliantUNIX AC_CHECK_LIB(dl, dlsym, ,) - # -lresolv needs to be at then end of LIBS or DNS lookups break - AC_CHECK_LIB(res_query, resolv, [ LIBS="$LIBS -lresolv" ]) + # -lresolv needs to be at the end of LIBS or DNS lookups break + AC_CHECK_LIB(resolv, res_query, [ LIBS="$LIBS -lresolv" ]) IPADDR_IN_...
2000 Jun 01
1
tinc1.0pre2 configure fails on libgmp3.0.1
Hi. configure fails because on my machine, mpz_powm is a macro in gmp.h, so the check doesn't work... Marc - Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://ftp.nl.linux.org/pub/linux/tinc/
2000 Oct 02
1
state of cvs
if you're going to compile vorbis you'll need the following modules ogg vorbis if you're goin to compile the plugins you'll also need vorbis-plugins if you're going to compile the tools you'll need ao vorbis-tools all of these should build with exception of ao and vorbis-plugins. There were some problems from the merge that I didn't catch before leaving for
2001 Mar 27
0
Kerberos4 / AFS library issues
...thval}/lib" - fi - if test ! -z "$blibpath" ; then - blibpath="$blibpath:${withval}/lib" - fi - else - if test -d /usr/include/kerberosIV ; then - CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" - fi - fi - - AC_CHECK_HEADERS(krb.h) - AC_CHECK_LIB(krb, main) - if test "$ac_cv_header_krb_h" != yes; then - AC_MSG_WARN([Cannot find krb.h, build may fail]) - fi - if test "$ac_cv_lib_krb_main" != yes; then - AC_MSG_WARN([Cannot find libkrb, build may fail]) - fi - - KLIBS="-lkrb -ldes" - AC_CHECK_LI...
2001 Oct 31
1
OpenSSH-3.0p1-pre-CVS: configure.ac checks for login in -lutil and -lbsd?
OpenSSH-3.0p1-pre, from CVS as of about 2001-10-30 23:45 UTC. Any particular reason why configure is checking for login() in -lutil, finds it, then checks for it again in -lbsd? Here's the relevant excerpts (Red Hat Linux 6.2, , kernel-2.2.19, glibc-2.1.3, egcs-1.1.2, autoconf-2.52): $ CFLAGS='-O2 -mpentium -Wall'; export CFLAGS $ ./configure
2003 Feb 22
1
rsync ported to BeOS-bone
...o, which we _must_ link to if they exist. AC_CHECK_FUNCS(connect) -if test x"$ac_cv_func_connect" = x"no"; then +if test x"$ac_cv_func_connect" = x"no" -o x"$host_os" = x"beos"; then case "$LIBS" in *-lnsl*) ;; *) AC_CHECK_LIB(nsl_s, printf) ;; @@ -330,6 +333,13 @@ fi AC_CHECK_LIB(resolv, inet_ntop) +if test x"$ac_cv_lib_resolv_inet_ntop" = x"no"; then + # BeOS versions featuring BONE have new network libs + # which contains them, but in a mangled form. + # FIXME: do a cleaner check (don't kno...
2008 Feb 04
0
configure/makefile cleanup: remove LIBSELINUX, LIBWRAP and LIBPAM
...quot; != "xno" ; then > + save_LIBS="$LIBS" > AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) > SELINUX_MSG="yes" > AC_CHECK_HEADER([selinux/selinux.h], , > AC_MSG_ERROR(SELinux support requires selinux.h header)) > AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ], > AC_MSG_ERROR(SELinux support requires libselinux library)) > - save_LIBS="$LIBS" > - LIBS="$LIBS $LIBSELINUX" > + SSHDLIBS="$SSHDLIBS $LIBSELINUX" > AC_CHECK_FUNCS(getseuserbyname...
2011 Dec 10
1
[PATCH] Fixed checks for libpython features
...ot;x$PYTHON_VERSION_MAJOR" = "x3"; then - dnl libpython3 is called "libpython3.Xmu.so" - LIBPYTHON="python${PYTHON_VERSION}mu" - else - LIBPYTHON="python$PYTHON_VERSION" - fi - AC_CHECK_LIB([$LIBPYTHON], [PyList_Size], [], - [AC_MSG_FAILURE([$LIBPYTHON is not installed])]) - AC_CHECK_FUNCS([PyCapsule_New \ - PyString_AsString]) + PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ +...