diff options
| author | msheby <msheby@cinecert.com> | 2008-10-23 23:10:12 +0000 |
|---|---|---|
| committer | msheby <> | 2008-10-23 23:10:12 +0000 |
| commit | 6348cd1e99ad49c13c8cc0fc944cc8e57a28292b (patch) | |
| tree | bd4043b6fd54692cf9f1a6e7e8ee78d369ef5b6d | |
| parent | 924ebef758b5d8e7d296aab70c65387109795c63 (diff) | |
Limit OpenBSD hack to OpenBSD.
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | src/Makefile.am | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8fb1ffc..b8597a0 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,11 @@ AM_INIT_AUTOMAKE([1.9 foreign]) # Checks for programs. AC_CANONICAL_BUILD AC_CANONICAL_HOST +case $host_os in + openbsd*) openbsd_host=true ;; + *) openbsd_host=false ;; +esac +AM_CONDITIONAL([OPENBSD_HOST], [test x$openbsd_host = xtrue]) AC_PROG_CC AC_PROG_CXX AC_PROG_LIBTOOL diff --git a/src/Makefile.am b/src/Makefile.am index 45f86bf..96581b0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,8 +25,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +if OPENBSD_HOST AM_CPPFLAGS = -I/var/local/include -I/usr/local/include AM_LDFLAGS = -L./.libs -L/var/local/lib -L/usr/local/lib +endif # list of all the header files that should be installed include_HEADERS = KM_error.h KM_fileio.h KM_log.h KM_memio.h KM_mutex.h \ |
