diff options
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/ChangeLog | 4 | ||||
-rwxr-xr-x | Build/source/texk/web2c/configure | 57 | ||||
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 2 |
3 files changed, 63 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog index 4910aec90b7..73fe188aa29 100644 --- a/Build/source/texk/web2c/ChangeLog +++ b/Build/source/texk/web2c/ChangeLog @@ -1,3 +1,7 @@ +2010-03-24 Peter Breitenlohner <peb@mppmu.mpg.de> + + * configure.ac: Check if dlopen() requires `-ldl'. + 2010-03-23 Peter Breitenlohner <peb@mppmu.mpg.de> * cpascal.h (BIBXRETALLOCSTRING): New macro to resize BibTeX's diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure index fff2caae3d9..640a68f32c9 100755 --- a/Build/source/texk/web2c/configure +++ b/Build/source/texk/web2c/configure @@ -17232,6 +17232,63 @@ if test "$ac_res" != no; then : fi LIBS=$kpse_save_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 +$as_echo_n "checking for library containing dlopen... " >&6; } +if test "${ac_cv_search_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +for ac_lib in '' dl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_dlopen=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_dlopen+set}" = set; then : + break +fi +done +if test "${ac_cv_search_dlopen+set}" = set; then : + +else + ac_cv_search_dlopen=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 +$as_echo "$ac_cv_search_dlopen" >&6; } +ac_res=$ac_cv_search_dlopen +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + LIBS=$kpse_save_LIBS case $ac_cv_search_inet_aton in #( "none required") : ;; #( diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index 472e0e64b22..e1ea7cca29d 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -100,6 +100,8 @@ if test "x$kpse_cv_have_win32" = xno; then LIBS=$kpse_save_LIBS AC_SEARCH_LIBS([nanosleep], [rt]) LIBS=$kpse_save_LIBS + AC_SEARCH_LIBS([dlopen], [dl]) + LIBS=$kpse_save_LIBS AS_CASE([$ac_cv_search_inet_aton], ["none required"], [], [no], [WEB2C_DISABLE([luatex], [no inet_aton()])], |