/[libtool]/libtool/ltdl.m4
ViewVC logotype

Diff of /libtool/ltdl.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21.2.6 by gary, Sat Sep 22 16:53:56 2001 UTC revision 1.21.2.7 by gary, Sat Oct 27 23:52:57 2001 UTC
# Line 20  Line 20 
20  ## configuration script generated by Autoconf, you may include it under  ## configuration script generated by Autoconf, you may include it under
21  ## the same distribution terms that you use for the rest of that program.  ## the same distribution terms that you use for the rest of that program.
22    
23  # serial 2 AC_LIB_LTDL  # serial 5 AC_LIB_LTDL
24    
25    # AC_WITH_LTDL
26    # ------------
27    # Clients of libltdl can use this macro to allow the installer to
28    # choose between a shipped copy of the ltdl sources or a preinstalled
29    # version of the library.
30    AC_DEFUN([AC_WITH_LTDL],
31    [AC_REQUIRE([AC_LIB_LTDL])
32    AC_SUBST([LIBLTDL])
33    AC_SUBST([INCLTDL])
34    
35    # Unless the user asks us to check, assume no installed ltdl exists.
36    use_installed_libltdl=no
37    
38    AC_ARG_WITH([included_ltdl],
39        [  --with-included-ltdl    use the GNU ltdl sources included here])
40    
41    if test "x$with_included_ltdl" != xyes; then
42      # We are not being forced to use the included libltdl sources, so
43      # decide whether there is a useful installed version we can use.
44      AC_CHECK_HEADER([ltdl.h],
45          [AC_CHECK_LIB([ltdl], [lt_dlcaller_register],
46              [with_included_ltdl=no],
47              [with_included_ltdl=yes])
48      ])
49    fi
50    
51    if test "x$enable_ltdl_install" != xyes; then
52      # If the user did not specify an installable libltdl, then default
53      # to a convenience lib.
54      AC_LIBLTDL_CONVENIENCE
55    fi
56    
57    if test "x$with_included_ltdl" = xno; then
58      # If the included ltdl is not to be used. then Use the
59      # preinstalled libltdl we found.
60      AC_DEFINE([HAVE_LTDL], 1,
61        [Define this if a modern libltdl is already installed])
62      LIBLTDL=-lltdl
63    fi
64    
65    # Report our decision...
66    AC_MSG_CHECKING([whether to use included libltdl])
67    AC_MSG_RESULT([$with_included_ltdl])
68    
69    AC_CONFIG_SUBDIRS([libltdl])
70    ])# AC_WITH_LTDL
71    
72    
73  # AC_LIB_LTDL  # AC_LIB_LTDL
74  # -----------  # -----------

Legend:
Removed from v.1.21.2.6  
changed lines
  Added in v.1.21.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26