bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

have-lib: support for libraries with dots in their name


From: Bruno Haible
Subject: have-lib: support for libraries with dots in their name
Date: Tue, 14 Nov 2006 11:09:48 +0100
User-agent: KMail/1.9.1

This adds support for libraries with dots in their name (seen frequently
in GNOME libraries).

2006-11-12  Bruno Haible  <address@hidden>

        * m4/lib-link.m4: Require at least autoconf-2.54.
        (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
        name to underscores for the --with option.

*** m4/lib-link.m4      24 Oct 2006 20:59:59 -0000      1.13
--- m4/lib-link.m4      14 Nov 2006 10:02:12 -0000      1.14
***************
*** 6,12 ****
  
  dnl From Bruno Haible.
  
! AC_PREREQ(2.50)
  
  dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  dnl the libraries corresponding to explicit and implicit dependencies.
--- 6,12 ----
  
  dnl From Bruno Haible.
  
! AC_PREREQ(2.54)
  
  dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  dnl the libraries corresponding to explicit and implicit dependencies.
***************
*** 129,143 ****
    AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
    define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
                                 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
    dnl By default, look in $includedir and $libdir.
    use_additional=yes
    AC_LIB_WITH_FINAL_PREFIX([
      eval additional_includedir=\"$includedir\"
      eval additional_libdir=\"$libdir\"
    ])
!   AC_LIB_ARG_WITH([lib$1-prefix],
! [  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
!   --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
  [
      if test "X$withval" = "Xno"; then
        use_additional=no
--- 129,145 ----
    AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
    define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
                                 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
+   dnl Autoconf >= 2.61 supports dots in --with options.
+   
define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
    dnl By default, look in $includedir and $libdir.
    use_additional=yes
    AC_LIB_WITH_FINAL_PREFIX([
      eval additional_includedir=\"$includedir\"
      eval additional_libdir=\"$libdir\"
    ])
!   AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
! [  --with-lib]N_A_M_E[-prefix[=DIR]  search for lib$1 in DIR/include and 
DIR/lib
!   --without-lib]N_A_M_E[-prefix     don't search for lib$1 in includedir and 
libdir],
  [
      if test "X$withval" = "Xno"; then
        use_additional=no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]