made the check for needed underscore in module's func-names work on
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 20 Oct 1998 14:39:55 +0000 (14:39 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 20 Oct 1998 14:39:55 +0000 (14:39 +0000)
1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: made the check for needed underscore in module's
func-names work on solaris. (G_MODULE_NEED_USCORE must be set
outside AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 9bde88d..f751e60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 9bde88d..f751e60 100644 (file)
@@ -1,3 +1,9 @@
+1998-10-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: made the check for needed _ in module's func-names
+       work on solaris. (G_MODULE_NEED_USCORE must be set outside
+       AC_CACHE_VAL, dlopen(0,0) refused to work on solaris).
+
 Tue Oct 20 03:32:58 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * configure.in
index 4ee4d47..d4235c2 100644 (file)
@@ -433,25 +433,30 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
 dnl *** check whether we need preceeding underscores
        AC_MSG_CHECKING(for preceeding underscore in symbols)
        AC_CACHE_VAL(glib_cv_uscore,[
+               echo "int glib_underscore_test (void) { return 42; }" >plugin.c
+               ./libtool --mode=compile $CC -c plugin.c >/dev/null 2>&1
                AC_TRY_RUN([
                #include <dlfcn.h>
-               int glib_underscore_test (void) { return 42; }
                int main() {
                  void *f1 = (void*)0, *f2 = (void*)0, *handle;
-                 handle = dlopen ((void*)0, 0);
+                 handle = dlopen ("./plugin.lo", RTLD_NOW );
                  if (handle) {
                    f1 = dlsym (handle, "glib_underscore_test");
                    f2 = dlsym (handle, "_glib_underscore_test");
-                 } return (f2 && !f1);
-               }],
-                       glib_cv_uscore=yes
-                       G_MODULE_NEED_USCORE=1
-               ,
-                       glib_cv_uscore=no
-                       G_MODULE_NEED_USCORE=0
-               ,)
+                 } return (!f2 && f1);
+               }],     
+                       glib_cv_uscore=yes,     
+                       glib_cv_uscore=no,
+               )
+               rm -f plugin.c plugin.o plugin.lo
        ])
-       AC_MSG_RESULT($glib_cv_uscore)
+       AC_MSG_RESULT($glib_cv_uscore)  
+       if test "x$glib_cv_uscore" = "xyes"; then
+               G_MODULE_NEED_USCORE=1
+       else
+               G_MODULE_NEED_USCORE=0
+       fi      
+       
        LDFLAGS="$LDFLAGS_orig"
 dnl *** check for having dlerror()
        AC_CHECK_FUNC(dlerror,