aboutsummaryrefslogblamecommitdiff
path: root/net/ntpa/files/patch-configure.ac
blob: 67381e01ed12b0351c4d3e110a6c507757307eeb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
                                               













                                                          
                                                        




                                    
                                                   



                              
--- configure.ac.orig	2016-12-25 16:20:40 UTC
+++ configure.ac
@@ -12,6 +12,12 @@ if test "x$MCS" = "xno"; then
         AC_MSG_ERROR([mcs Not found])
 fi
 
+dnl pkg-config
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+if test "x$PKG_CONFIG" = "xno"; then
+	AC_MSG_ERROR([You need to install pkg-config])
+fi
+
 AC_ARG_ENABLE(debug,
 	AC_HELP_STRING([--enable-debug],
 		[Use 'DEBUG' Configuration [default=NO]]),
@@ -33,6 +39,10 @@ if test -z "$CONFIG_REQUESTED" ; then
 	enable_release=yes
 fi
 
+dnl package checks
+PKG_CHECK_MODULES([NPLOT], [NPlot])
+PKG_CHECK_MODULES([NEWTONSOFT], [Newtonsoft.Json])
+
 AC_CONFIG_FILES([
 Ntp.Analyzer.Objects/Makefile
 Ntp.Common/Makefile