<commit_before>AC_DEFUN([GP_DYNAMIC_LIBRARIES],[dnl
AC_REQUIRE([AC_PROG_LIBTOOL])
dnl ---------------------------------------------------------------------------
dnl Check for libtool: lt_dlforeachfile has been introduced in 
dnl                    libtool-1.4. However, there are still systems out
dnl                    there running libtool-1.3. For those, we will need
dnl                    dlopen. Note that on some systems (e.g. FreeBSD)
dnl                    -ldl isn't needed.
dnl ---------------------------------------------------------------------------
# $0
have_ltdl=false
ltdl_msg="no"
try_ltdl=false
AC_ARG_WITH([ltdl],
[AS_HELP_STRING([--with-ltdl],[use libtool ltdl])],
[
        if test x$withval = xyes; then
                try_ltdl=:
        fi
])
if $try_ltdl; then
        AC_CHECK_LIB([ltdl], [lt_dlforeachfile],[
                AC_CHECK_HEADER([ltdl.h],[
                        AC_DEFINE([HAVE_LTDL],1,[whether we use libltdl])
                        LTDL_LIBS="-lltdl"
                        ltdl_msg="yes"
                        have_ltdl=true
		])
	])
fi
GP_CONFIG_MSG([Use ltdl],[${ltdl_msg}])
if $have_ltdl; then :; else
        AC_CHECK_FUNC([dlopen],[],[
                AC_CHECK_LIB([dl], [dlopen], 
			[LTDL_LIBS="-ldl"],
			[AC_ERROR([
*** Could not determine how to handle
*** shared libraries:
***  - no libltdl
***  - no dlopen()
])
		])
	])
fi
AC_SUBST([LTDL_LIBS])
])dnl
dnl
dnl ####################################################################
dnl
dnl Please do not remove this:
dnl filetype: 2b993145-3256-47b4-84fd-ec4dcdf4fdf9
dnl I use this to find all the different instances of this file which 
dnl are supposed to be synchronized.
dnl
dnl Local Variables:
dnl mode: autoconf
dnl End:<commit_msg>dynamic loading stuff still is in flux<commit_after>AC_DEFUN([GP_DYNAMIC_LIBRARIES],[dnl
dnl We require either of those
dnl AC_REQUIRE([AC_LIBTTDL_INSTALLABLE])dnl
dnl AC_REQUIRE([AC_LIBLTDL_CONVENIENCE])dnl
AC_REQUIRE([AC_LIBTOOL_DLOPEN])dnl
AC_REQUIRE([AC_PROG_LIBTOOL])dnl
dnl ---------------------------------------------------------------------------
dnl Check for libtool: lt_dlforeachfile has been introduced in 
dnl                    libtool-1.4. However, there are still systems out
dnl                    there running libtool-1.3. For those, we will need
dnl                    dlopen. Note that on some systems (e.g. FreeBSD)
dnl                    -ldl isn't needed.
dnl ---------------------------------------------------------------------------
# $0
LDFLAGS_save="$LDFLAGS"
LDFLAGS="$LIBLTDL"
ltdl_msg="no (probably using built-in)"
AC_CHECK_LIB([ltdl], [lt_dlforeachfile],[
	CPPFLAGS_save="$CPPFLAGS"
	CPPFLAGS="$LTDLINCL"
	AC_CHECK_HEADER([ltdl.h],[
		AC_DEFINE([HAVE_LTDL],1,[whether we use libltdl])
		ltdl_msg="yes"
		have_ltdl=true
	])
	CPPFLAGS="$CPPFLAGS_save"
])
LDFLAGS="$LDFLAGS_save"
GP_CONFIG_MSG([Use ltdl (???)],[${ltdl_msg}])
])dnl
dnl
dnl ####################################################################
dnl
dnl Please do not remove this:
dnl filetype: 2b993145-3256-47b4-84fd-ec4dcdf4fdf9
dnl I use this to find all the different instances of this file which 
dnl are supposed to be synchronized.
dnl
dnl Local Variables:
dnl mode: autoconf
dnl End:
{'fraction_non_alphanumeric': 0.22870370370370371, 'fraction_numerical': 0.015432098765432098, 'mean_word_length': 2.2803643724696356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3301752', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1053, 'n_words': 263}