[En-Nut-Discussion] lua5.1 vs lua in PKG_CHECK_MODULES

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Apr 5 11:51:07 CEST 2012


>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:

...
    Harald> May be we can re-implement something like this again?

How aboout appended patch?

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: nut/tools/nutconf/configure.ac
===================================================================
--- nut/tools/nutconf/configure.ac	(Revision 4091)
+++ nut/tools/nutconf/configure.ac	(Arbeitskopie)
@@ -58,7 +58,7 @@
 
 AM_PROG_LIBTOOL
 
-PKG_CHECK_MODULES(NUTCONF, [lua5.1])
+PKG_CHECK_MODULES(NUTCONF, [lua5.1],,[PKG_CHECK_MODULES(NUTCONF, [lua])])
 
 if test x$nutconf_gui_ok = xyes; then
 	AC_MSG_NOTICE([nutconfgui is enabled])
Index: nut/tools/qnutconf/configure.ac
===================================================================
--- nut/tools/qnutconf/configure.ac	(Revision 4091)
+++ nut/tools/qnutconf/configure.ac	(Arbeitskopie)
@@ -22,7 +22,9 @@
 
 
 
-PKG_CHECK_MODULES(QNUTCONF, [QtCore lua5.1 QtGui ])
+PKG_CHECK_MODULES(QNUTCONF, [QtCore lua5.1 QtGui ],,
+                            [PKG_CHECK_MODULES(NUTCONF, [QtCore lua QtGui ])
+])
 
 
 



More information about the En-Nut-Discussion mailing list