]> granicus.if.org Git - graphviz/commitdiff
make AC_LIBLTDL_CONVENIENCE v. AC_LIBLTDL_INSTALLABLE depend on platform
authorellson <devnull@localhost>
Thu, 1 May 2008 20:50:27 +0000 (20:50 +0000)
committerellson <devnull@localhost>
Thu, 1 May 2008 20:50:27 +0000 (20:50 +0000)
( AC_LIBLTDL_CONVENIENCE breaks when libgvc is itself dynamically loaded
into , tcldot or other language binding.)

configure.ac

index cad1f9c392e124c511d4af556d49bdc83f087740..d275e2043a91f345430c7981a296b7ef34c0e74c 100644 (file)
@@ -409,7 +409,23 @@ if test "x$enable_ltdl" != "xno"; then
   AC_DEFINE(ENABLE_LTDL,1,[Define if you want on-demand plugin loading])
   AC_CONFIG_SUBDIRS(libltdl)
   AC_LIBTOOL_DLOPEN
-  AC_LIBLTDL_CONVENIENCE
+  case "${host_os}" in
+    *uwin* )
+      AC_LIBLTDL_CONVENIENCE
+       ;;
+    *cygwin* )
+      AC_LIBLTDL_CONVENIENCE
+       ;;
+    *mingw32* )
+      AC_LIBLTDL_CONVENIENCE
+       ;;
+    *darwin* )
+      AC_LIBLTDL_CONVENIENCE
+       ;;
+    * )
+      AC_LIBLTDL_INSTALLABLE
+       ;;
+  esac
 fi
 AM_CONDITIONAL(ENABLE_LTDL, [test "x$enable_ltdl" != "xno"])
 AC_SUBST(INCLTDL)