2085 |
# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
2086 |
# ----------------------------------- |
# ----------------------------------- |
2087 |
# sets LIBLTDL to the link flags for the libltdl convenience library and |
# sets LIBLTDL to the link flags for the libltdl convenience library and |
2088 |
# INCLTDL to the include flags for the libltdl header and adds |
# LTDLINCL to the include flags for the libltdl header and adds |
2089 |
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
2090 |
# and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2091 |
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
2092 |
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed with |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
2093 |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
# '${top_srcdir}/' (note the single quotes!). If your package is not |
2094 |
# flat and you're not using automake, define top_builddir and |
# flat and you're not using automake, define top_builddir and |
2095 |
# top_srcdir appropriately in the Makefiles. |
# top_srcdir appropriately in the Makefiles. |
2101 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
2102 |
esac |
esac |
2103 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
2104 |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
2105 |
|
# For backwards non-gettext consistent compatibility... |
2106 |
|
INCLTDL="$LTDLINCL" |
2107 |
])# AC_LIBLTDL_CONVENIENCE |
])# AC_LIBLTDL_CONVENIENCE |
2108 |
|
|
2109 |
|
|
2110 |
# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
2111 |
# ----------------------------------- |
# ----------------------------------- |
2112 |
# sets LIBLTDL to the link flags for the libltdl installable library and |
# sets LIBLTDL to the link flags for the libltdl installable library and |
2113 |
# INCLTDL to the include flags for the libltdl header and adds |
# LTDLINCL to the include flags for the libltdl header and adds |
2114 |
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
2115 |
# and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2116 |
# DIRECTORY is not provided and an installed libltdl is not found, it is |
# DIRECTORY is not provided and an installed libltdl is not found, it is |
2117 |
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
2118 |
# and INCLTDL will be prefixed with '${top_srcdir}/' (note the single |
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
2119 |
# quotes!). If your package is not flat and you're not using automake, |
# quotes!). If your package is not flat and you're not using automake, |
2120 |
# define top_builddir and top_srcdir appropriately in the Makefiles. |
# define top_builddir and top_srcdir appropriately in the Makefiles. |
2121 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2132 |
if test x"$enable_ltdl_install" = x"yes"; then |
if test x"$enable_ltdl_install" = x"yes"; then |
2133 |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
ac_configure_args="$ac_configure_args --enable-ltdl-install" |
2134 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
2135 |
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
2136 |
else |
else |
2137 |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
2138 |
LIBLTDL="-lltdl" |
LIBLTDL="-lltdl" |
2139 |
INCLTDL= |
LTDLINCL= |
2140 |
fi |
fi |
2141 |
|
# For backwards non-gettext consistent compatibility... |
2142 |
|
INCLTDL="$LTDLINCL" |
2143 |
])# AC_LIBLTDL_INSTALLABLE |
])# AC_LIBLTDL_INSTALLABLE |
2144 |
|
|
2145 |
|
|