]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/configure.in: add a DESCRIPTION argument to AC_DEFINEs
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 13 Feb 1999 19:55:58 +0000 (19:55 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 13 Feb 1999 19:55:58 +0000 (19:55 +0000)
where appropriate, so as to get rid of acconfig.h
* libltdl/acconfig.h: removed

ChangeLog
libltdl/acconfig.h [deleted file]
libltdl/configure.in

index 44442fb6747d7924d859c0cfe785909db34c5773..abc980fa62555785bbb88e26d2fe151dbc6e49ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-02-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * libltdl/configure.in: add a DESCRIPTION argument to AC_DEFINEs
+       where appropriate, so as to get rid of acconfig.h
+       * libltdl/acconfig.h: removed
+
 1999-02-13  Thomas Tanner  <tanner@gmx.de>
 
        * *demo/Makefile.am: use $(MATHLIB)
diff --git a/libltdl/acconfig.h b/libltdl/acconfig.h
deleted file mode 100644 (file)
index 78007e0..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#undef LTDL_SHLIB_EXT
-
-#undef LTDL_SHLIBPATH_VAR
-
-#undef LTDL_OBJDIR
-
-#undef HAVE_PRELOADED_SYMBOLS
-
-#undef HAVE_LIBDL
-
-#undef HAVE_DLD
-
-#undef HAVE_SHL_LOAD
-
-#undef NEED_USCORE
index 39aa2051779a5ea490b33956310cdd6967ff7cbb..391367d967824829ceeba57585300208ed1f2522 100644 (file)
@@ -44,7 +44,8 @@ libltdl_cv_shlibext=`cat conftest`
 rm -f conftest
 ])
 if test -n "$libltdl_cv_shlibext"; then
-  AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext")
+  AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",
+    [Define to the extension used for shared libraries, say, ".so". ])
 fi
 
 AC_CACHE_CHECK([which variable specifies run-time library path],
@@ -60,7 +61,8 @@ libltdl_cv_shlibpath_var=`cat conftest`
 rm -f conftest
 ])
 if test -n "$libltdl_cv_shlibpath_var"; then
-  AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var")
+  AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var",
+    [Define to the name of the environment variable that determines the dynamic library search path. ])
 fi
 
 AC_CACHE_CHECK([for objdir],
@@ -76,7 +78,8 @@ libltdl_cv_objdir=`cat conftest`
 rm -f conftest
 ])
 test -z "$libltdl_cv_objdir" && libltdl_cv_objdir=".libs"
-AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/")
+AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/",
+  [Define to the sub-directory in which libtool stores uninstalled libraries. ])
 
 AC_HEADER_STDC
 AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h)
@@ -100,15 +103,22 @@ AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
   rm -f conftest
 ])
 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
-  AC_DEFINE(HAVE_PRELOADED_SYMBOLS)
+  AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1,
+    [Define if libtool can extract symbol lists from object files. ])
 fi
 
 test_dlerror=no
 LIBADD_DL=
-AC_CHECK_FUNCS(dlopen, [AC_DEFINE(HAVE_LIBDL) test_dlerror=yes],
-  [AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL) LIBADD_DL="-ldl" test_dlerror=yes],
-    [AC_CHECK_LIB(dld, dld_link, [AC_DEFINE(HAVE_DLD) LIBADD_DL="-ldld"],
-      [AC_CHECK_FUNCS(shl_load, AC_DEFINE(HAVE_SHL_LOAD))]
+AC_CHECK_FUNCS(dlopen, [AC_DEFINE(HAVE_LIBDL, 1,
+                         [Define if you have the libdl library or equivalent. ]) test_dlerror=yes],
+  [AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL, 1,
+                              [Define if you have the libdl library. ]) dnl
+                            LIBADD_DL="-ldl" test_dlerror=yes],
+    [AC_CHECK_LIB(dld, dld_link, [AC_DEFINE(HAVE_DLD, 1,
+                                   [Define if you have the GNU dld library. ]) dnl
+                                 LIBADD_DL="-ldld"],
+      [AC_CHECK_FUNCS(shl_load, [AC_DEFINE(HAVE_SHL_LOAD, 1,
+                                  [Define if you have the shl_load function. ])])]
     )]
   )]
 )
@@ -141,7 +151,8 @@ main() { void *self, *ptr1, *ptr2; self=dlopen(0,RTLD_LAZY);
 fi
 
 if test x"$libltdl_cv_need_uscore" = xyes; then
-  AC_DEFINE(NEED_USCORE)
+  AC_DEFINE(NEED_USCORE, 1,
+    [Define if dlsym() requires a leading underscode in symbol names. ])
 fi
 
 dnl Output the makefile