[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Diff for /dgamelaunch-openbsd/configure.ac between version 1.1 and 1.2

version 1.1, 2021/03/09 14:36:01 version 1.2, 2021/03/09 14:48:42
Line 25  if test -z "$YACC"; then
Line 25  if test -z "$YACC"; then
 fi  fi
   
 case "$(uname -s)" in  case "$(uname -s)" in
     OpenBSD)
       LIBS="-lutil $LIBS"
       AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
     ;;
   Linux | *BSD)    Linux | *BSD)
     MY_LIBS="$MY_LIBS -lutil -lcrypt"      MY_LIBS="$MY_LIBS -lutil -lcrypt"
     AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])      AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
Line 106  AC_ARG_WITH(sqlite-db,
Line 110  AC_ARG_WITH(sqlite-db,
 [dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])  [dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
   
 if test "$enable_sqlite" = yes; then  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_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.])     AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.])
    MY_LIBS="$MY_LIBS -lsqlite3"     MY_LIBS="$MY_LIBS -lsqlite3"
Line 158  if test "$enable_shmem" = yes; then
Line 166  if test "$enable_shmem" = yes; then
    AC_CHECK_HEADERS([sys/shm.h], [], [AC_MSG_ERROR([sys/shm.h not found.])], [])     AC_CHECK_HEADERS([sys/shm.h], [], [AC_MSG_ERROR([sys/shm.h not found.])], [])
    AC_MSG_RESULT([Enabled showing number of watchers.])     AC_MSG_RESULT([Enabled showing number of watchers.])
    AC_DEFINE(USE_SHMEM,1,[Use shared memory block])     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?     # or -pthread?
 fi  fi
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb