Browse Source

Add NSPR detection to get path to includes directory.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 10 months ago
parent
commit
09b0af1392
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
4 changed files with 9 additions and 3 deletions
  1. +6
    -0
      configure.in
  2. +1
    -1
      src/Makefile.am
  3. +1
    -1
      src/jni_md.h
  4. +1
    -1
      src/jri_md.h

+ 6
- 0
configure.in View File

@@ -18,5 +18,11 @@ dnl ---------------------------------------------
AC_CHECK_HEADER(X11/Xaw/Form.h,,
[AC_MSG_ERROR([you need to install libxaw header files (-dev package)])])

dnl ---------------------------------------------
dnl Check for NSPR include directory
dnl ---------------------------------------------
AC_CHECK_PROG(PKGCONFIGFOUND, pkg-config,[yes])
PKG_CHECK_MODULES(NSPR, nspr, have_nspr=yes,
[ AC_MSG_ERROR([nspr library not found on your system]) ])

AC_OUTPUT(Makefile src/Makefile)

+ 1
- 1
src/Makefile.am View File

@@ -1,7 +1,7 @@

EXTRA_DIST = npapi.h npunix.c npupp.h plugin.c plugin.h

AM_CFLAGS = @CFLAGS@ $(X_CFLAGS)
AM_CFLAGS = @CFLAGS@ $(X_CFLAGS) $(NSPR_CFLAGS)


lib_LTLIBRARIES = kaffeineplugin.la


+ 1
- 1
src/jni_md.h View File

@@ -40,7 +40,7 @@
#ifndef JNI_MD_H
#define JNI_MD_H

#include <nspr/prtypes.h> /* needed for _declspec */
#include <prtypes.h> /* needed for _declspec */

/*******************************************************************************
* WHAT'S UP WITH THIS FILE?


+ 1
- 1
src/jri_md.h View File

@@ -43,7 +43,7 @@
#define JRI_MD_H

#include <assert.h>
#include <nspr/prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */
#include <prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */

#ifdef __cplusplus
extern "C" {


Loading…
Cancel
Save