Commits

Palmer, 2E0EOL  committed 6ef7d4c

Fix missing missing dlstdinc.h at compile time.

  • Participants
  • Parent commits e341c1b
  • Branches debpkg

Comments (0)

Files changed (2)

File configure.ac

 # Checks for libraries
 
 
-# Checks for header files
+# Checks for standard header files
 AC_HEADER_STDC
 AC_HEADER_STDBOOL
 AC_CHECK_HEADERS([limits.h stddef.h stdlib.h string.h])
 fi
 AC_MSG_RESULT($debug_enabled)
 
+dnl --with-dlstds-prefix
+dlstds_prefix=/usr/local/share/daybo_logic/stds/
+AC_ARG_WITH(dlstds-prefix,
+  [AC_HELP_STRING([--with-dlstds-prefix=DIR],
+    [Daybo Logic Standards Package (dlstds) installation prefix]
+  )],
+  [dlstds_prefix=${withval}]
+)
+if test "$dlstds_prefix" != ""; then
+  CFLAGS="${CFLAGS} -I${dlstds_prefix}"
+fi
+
+dns Checks for Daybo Logic headers
+AC_CHECK_HEADER(
+  ${dlstds_prefix}dlstdinc.h,
+  AC_DEFINE(HAVE_DLSTDINC_H,1,""),
+  AC_MSG_ERROR(
+    dlstdinc.h 38.5 or later is not installed or cannot be found.
+    You need the dlstds package from http://www.daybologic.co.uk/
+    Or you may need to use the flag --with-dlstds-prefix=<path> if you have
+    installed dlstds in a non-standard location.
+  )
+)
 
 AC_OUTPUT(Makefile lib/Makefile test/Makefile)
 

File debian/control

 Section: libs
 Priority: extra
 Maintainer: David Palmer <palmer@overchat.org>
-Build-Depends: debhelper (>= 7), autoconf, autotools-dev, automake, libtool
+Build-Depends: debhelper (>= 7), autoconf, autotools-dev, automake, libtool, libdlstds-dev
 Standards-Version: 3.7.3
 Homepage: http://www.daybologic.co.uk/
 Vcs-Browser: https://bitbucket.org/daybologic/dlstr