Index: auto.def
==================================================================
--- auto.def
+++ auto.def
@@ -167,13 +167,16 @@
         }
     }
     if {$found} {
         define FOSSIL_ENABLE_SSL
         define-append EXTRA_CFLAGS $cflags
+        if {[opt-bool static]} {
+            define-append EXTRA_CFLAGS -Dpqueue_insert=pqueue_insert_fossil
+        }
         define-append EXTRA_LDFLAGS $ldflags
         define-append LIBS -lssl -lcrypto
-        msg-result "HTTP support enabled"
+        msg-result "HTTPS support enabled"
 
         # Silence OpenSSL deprecation warnings on Mac OS X 10.7.
         if {[string match *-darwin* [get-define host]]} {
             if {[cctest -cflags {-Wdeprecated-declarations}]} {
                 define-append EXTRA_CFLAGS -Wdeprecated-declarations