]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Utilizzo di pkg-config per l'individuazione di python.
authorAndrea Zagli <azagli@libero.it>
Sat, 8 Apr 2017 07:47:27 +0000 (09:47 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 8 Apr 2017 07:47:27 +0000 (09:47 +0200)
configure.ac
libsolipaooo.pc.in

index c6862538584388a784fee02333c5bbcc2c90f693..4d18dad7d713f972e8faa404eaeba10b711e633e 100644 (file)
@@ -85,8 +85,7 @@ AM_CONDITIONAL(HAVE_CAMEL3, test $camel3_found = yes)
 
 AC_SUBST(CAMEL_PKGCONFIG)
 
-AC_CHECK_PROG(PYTHON_CFLAGS, [python-config], `python-config --cflags`, [-I/c/Python26/include])
-AC_CHECK_PROG(PYTHON_LIBS, [python-config], `python-config --libs`, [-lpthread -lm -L/c/Python26/libs -lpython26])
+PKG_CHECK_MODULES(PYTHON, [python])
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)
 
index 064931b15ecf3680697d2e51df72d558688377ea..0b99ca0e7c0e2e3b5a50b425470a3d3a3b2b2c19 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: @PACKAGE_NAME@
 Description: Classe con funzioni varie di utilità - Supporto per l'interfacciamento a OpenOffice.org.
 Version: @PACKAGE_VERSION@
-Requires: libsolipa
+Requires: libsolipa python
 Libs: -L${libdir} -lsolipaooo
 Cflags: -I${includedir}