octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: changeset: dlopen for cygwin


From: Marco Atzeri
Subject: R: changeset: dlopen for cygwin
Date: Mon, 21 Dec 2009 12:55:14 +0000 (GMT)

--- Mar 15/12/09, John W. Eaton <address@hidden> ha scritto:

> On 15-Dec-2009, Marco Atzeri wrote:
> 
> | finally I found the solution for the "extra F on function
> names"
> | that blocked the building on cygwin for some time.
> | 
> | Basically on cygwin I need dlopen
> | 
> | -      *-*-cygwin* | *-*-mingw* |
> *-*-msdosmsvc)
> | +      *-*-mingw* | *-*-msdosmsvc)
> |     
>    loadlibrary_api=true;
> |        ;;
> | +      *-*-cygwin*)
> | +       dlopen_api=true;
> 
> OK, I agree that *-*-cygwin* should not appear in this list
> since it
> should be using dlopen, not LoadLibrary.
> 
> The context for this code snippet is:
> 
>   if $dlopen_api || $shl_load_api || $loadlibrary_api
> || $dyld_api; then
>     true
>   else
>     case "$canonical_host_type" in
>       *-*-cygwin* | *-*-mingw* |
> *-*-msdosmsvc)
>        loadlibrary_api=true;
>       ;;
>     esac
>   fi
> 
> so I still don't understand why the test for dlopen_api is
> failing for
> you.  Can you please post the relevant parts of the
> config.log file
> that show the results of the checks for the dlopen,
> dlclose, dlerror,
> and dlsym functions?
> 
> jwe
> 

What about a change like this ? 

*******************************************
diff -r 2441327485a3 configure.ac
--- a/configure.ac      Sun Dec 20 20:07:43 2009 -0800
+++ b/configure.ac      Mon Dec 21 13:38:44 2009 +0100
@@ -1578,6 +1578,10 @@
            esac
           fi
        fi
+       ## alternative method. Cygwin specific ?
+       if test "x$lt_cv_dlopen" = xdlopen ; then
+            dlopen_api=true
+       fi
       fi
     fi
   fi
@@ -1589,7 +1593,7 @@
     true
   else
     case "$canonical_host_type" in
-      *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc)
+      *-*-mingw* | *-*-msdosmsvc)
        loadlibrary_api=true;
       ;;
     esac
**********************************************


on cygwin libtool define several dlopen variables

$ grep dlopen config.log

lt_cv_dlopen=dlopen
lt_cv_dlopen_libs=
lt_cv_dlopen_self=yes
lt_cv_dlopen_self_static=yes

but none of the ac_cv* ones used on

        if test "x$ac_cv_func_dlopen" = xyes \
          || test "x$ac_cv_lib_dl_dlopen" = xyes; then
          AC_CHECK_FUNCS(dlsym dlerror dlclose)
          if test "x$ac_cv_func_dlclose" = xyes \
            && test "x$ac_cv_func_dlerror" = xyes \
            && test "x$ac_cv_func_dlsym" = xyes; then
            dlopen_api=true

so a different (additional) test is needed

Regards
Marco



      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]