=================================================================== RCS file: /cvs2/dgamelaunch-openbsd/configure.ac,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- dgamelaunch-openbsd/configure.ac 2021/03/09 14:36:01 1.1 +++ dgamelaunch-openbsd/configure.ac 2021/03/09 14:48:42 1.2 @@ -25,6 +25,10 @@ if test -z "$YACC"; then fi case "$(uname -s)" in + OpenBSD) + LIBS="-lutil $LIBS" + AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.]) + ;; Linux | *BSD) MY_LIBS="$MY_LIBS -lutil -lcrypt" AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.]) @@ -106,6 +110,10 @@ AC_ARG_WITH(sqlite-db, [dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"]) if test "$enable_sqlite" = yes; then + AC_CHECK_HEADERS([sqlite3.h], + [mypj_found_sqlite3_headers=yes; break;]) + AS_IF([test "x$mypj_found_sqlite3_headers" != "xyes"], + [AC_MSG_ERROR([Unable to find sqlite3 headers])]) AC_MSG_RESULT([Using SQLite for the database, located at $dgl_sqlite_db]) AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.]) MY_LIBS="$MY_LIBS -lsqlite3" @@ -158,7 +166,8 @@ if test "$enable_shmem" = yes; then AC_CHECK_HEADERS([sys/shm.h], [], [AC_MSG_ERROR([sys/shm.h not found.])], []) AC_MSG_RESULT([Enabled showing number of watchers.]) AC_DEFINE(USE_SHMEM,1,[Use shared memory block]) - MY_LIBS="$MY_LIBS -lrt" + AS_IF([ test "$(uname -s)" != "OpenBSD"], + [MY_LIBS="$MY_LIBS -lrt"]) # or -pthread? fi