diff options
Diffstat (limited to 'scripts/lxdialog/Makefile')
-rw-r--r-- | scripts/lxdialog/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index 90e192a55..2bad7a12f 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile @@ -30,8 +30,11 @@ all: ncurses lxdialog lxdialog: $(OBJS) ncurses: - @x=`find /lib/ /usr/lib/ /usr/local/lib/ -maxdepth 1 -name 'libncurses.*'` ;\ - if [ ! "$$x" ]; then \ + @echo "main() {}" > lxtemp.c + @if $(CC) -lncurses lxtemp.c ; then \ + rm -f lxtemp.c a.out; \ + else \ + rm -f lxtemp.c; \ echo -e "\007" ;\ echo ">> Unable to find the Ncurses libraries." ;\ echo ">>" ;\ |