From 84e81bbb3fa9825c9bf12630c7408fd79bafcb04 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 9 Aug 2010 09:30:06 +0000 Subject: [PATCH] * Try again to fix (or rather work around) pkg-config lua detection. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1566 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Makefile b/src/Makefile index ccbc64a9..44468fdf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -202,13 +202,8 @@ else LUACOPT = LUALOPT = else - ifeq (`pkg-config --exists lua --print-errors`,"") - LUACOPT = `pkg-config lua --cflags` - LUALOPT = `pkg-config lua --libs` - else - LUACOPT = `pkg-config lua5.1 --cflags` - LUALOPT = `pkg-config lua5.1 --libs` - endif + LUACOPT = `pkg-config lua --cflags || pkg-config lua5.1 --cflags || pkg-config lua-5.1 --cflags` + LUALOPT = `pkg-config lua --libs || pkg-config lua5.1 --libs || pkg-config lua-5.1 --libs` endif # These can only be used under linux and maybe freebsd. They allow to compile for the gp2x or to create a windows binary