[Snort-users] Snort with postgresql on OpenBSD2.9 (snapshot)

Mike Johnson mike at ...874...
Sun May 20 23:09:58 EDT 2001


I have an OpenBSD-current (as of Sat, May 19) box and I was having a
little bit of trouble with the configure script.  I've installed 
postgresql from the ports tree and is has a slightly different
directory for the includes.

Anyways, with a scant bit of twiddling, it seems to work now.

Patch attached...

Mike
-- 
If at first you don't succeed, destroy all evidence that you tried -- unknown
-------------- next part --------------
--- configure.in.old	Mon May 21 22:34:29 2001
+++ configure.in	Mon May 21 22:40:13 2001
@@ -405,6 +405,9 @@
     elif test -r $i/include/libpq-fe.h; then
       POSTGRESQL_DIR=$i
       POSTGRESQL_INC_DIR=$i/include
+    elif test -r $i/include/postgresql/libpq-fe.h; then
+      POSTGRESQL_DIR=$i
+      POSTGRESQL_INC_DIR=$i/include
     fi
   done
 
@@ -412,7 +415,7 @@
     if test "$postgresql_fail" != "no"; then
       tmp=""
       for i in $postgesql_directory; do
-        tmp="$tmp $i/include $i/include/pgsql"
+        tmp="$tmp $i/include $i/include/pgsql $i/include/postgresql"
       done
       FAIL_MESSAGE("postgresql header file (libpq-fe.h)", $tmp)
     else


More information about the Snort-users mailing list