patch-1.3.61 linux/scripts/lxdialog/Makefile

Next file: linux/scripts/lxdialog/dialog.h
Previous file: linux/scripts/Configure
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.60/linux/scripts/lxdialog/Makefile linux/scripts/lxdialog/Makefile
@@ -12,8 +12,13 @@
         CFLAGS += -I/usr/include/ncurses
         CURSES =  -DCURSES_LOC="<ncurses.h>"
 else
+ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h))
+        CFLAGS += -I/usr/include/ncurses
+        CURSES =  -DCURSES_LOC="<curses.h>"
+else
 ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h))
         CURSES =  -DCURSES_LOC="<ncurses.h>"
+endif
 endif
 endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this