$NetBSD: patch-ac,v 1.5 2009/05/08 12:30:47 hasso Exp $

--- samples/runConfigure.orig	2009-05-08 14:24:05 +0300
+++ samples/runConfigure	2009-05-08 14:26:54 +0300
@@ -35,7 +35,7 @@ usage()
     echo "Usage: runConfigure \"options\""
     echo "       where options may be any of the following:"
     echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'solaris',
-            'hp-10', 'hp-11', 'irix', 'tru64', 'macosx')"
+            'hp-10', 'hp-11', 'irix', 'tru64', 'macosx', 'dragonfly')"
     echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
     echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
     echo "       -d (specifies that you want to build debug version)"
@@ -156,7 +156,7 @@ echo "Extra configure options: $configur
 #
 
 case $platform in
-   aix | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | irix | tru64 | macosx)
+   aix | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | irix | tru64 | macosx | dragonfly)
        # platform has been recognized
        ;;
    *)
@@ -193,7 +193,7 @@ fi
 
 #
 #  aix | linux | hp-11 | solaris |
-#  hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
+#  hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx | dragonfly
 #
 if test $bitsToBuild = 64; then
     bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
@@ -304,6 +304,8 @@ elif test $platform = "netbsd"; then
 elif test $platform = "hp-10"; then
     threadingLibs="-lcma"
     threadingDefines="-DXML_USE_DCE"
+elif test $platform = "dragonfly"; then
+    threadingLibs="-lpthread"
 fi
 
 
