|
@@ -1,15 +1,33 @@
|
|
|
#! /bin/sh
|
|
|
|
|
|
-if which ncurses5-config >/dev/null
|
|
|
+if which ncursesw6-config >/dev/null
|
|
|
then
|
|
|
- echo 'using ncurses autoconfiguration script.'
|
|
|
+ echo 'using ncursesw6 autoconfiguration script…'
|
|
|
+ NCURSES_FLAGS=$(ncursesw6-config --cflags)
|
|
|
+ NCURSES_LIBS=$(ncursesw6-config --libs)
|
|
|
+
|
|
|
+elif which ncursesw5-config >/dev/null
|
|
|
+then
|
|
|
+ echo 'using ncursesw5 autoconfiguration script…'
|
|
|
+ NCURSES_FLAGS=$(ncursesw5-config --cflags)
|
|
|
+ NCURSES_LIBS=$(ncursesw5-config --libs)
|
|
|
+elif which ncurses6-config >/dev/null
|
|
|
+then
|
|
|
+ echo 'using ncurses6 autoconfiguration script…'
|
|
|
+ NCURSES_FLAGS=$(ncurses6-config --cflags)
|
|
|
+ NCURSES_LIBS=$(ncurses6-config --libs)
|
|
|
+
|
|
|
+elif which ncurses5-config >/dev/null
|
|
|
+then
|
|
|
+ echo 'using ncurses5 autoconfiguration script…'
|
|
|
NCURSES_FLAGS=$(ncurses5-config --cflags)
|
|
|
NCURSES_LIBS=$(ncurses5-config --libs)
|
|
|
+
|
|
|
elif which pkg-config >/dev/null
|
|
|
then
|
|
|
- echo 'ncurses autoconfiguration script not found! trying pkg-config…'
|
|
|
- NCURSES_FLAGS=$(pkg-config ncurses --cflags)
|
|
|
- NCURSES_LIBS=$(pkg-config ncurses --libs)
|
|
|
+ echo 'using pkg-config…'
|
|
|
+ NCURSES_FLAGS=$(pkg-config ncursesw --cflags)
|
|
|
+ NCURSES_LIBS=$(pkg-config ncursesw --libs)
|
|
|
else
|
|
|
echo 'can not configure! you will have to manually specify flags.'
|
|
|
NCURSES_FLAGS='# manual configuration required'
|