When retrieving a file, allow preferred extension to be whatever starts with a dot, and not only one of .tar.bz2 .tar.gz .tgz or .tar.
/trunk/scripts/functions | 5 3 2 0 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
2 # Check ncurses compatibility
7 $cc -print-file-name=libncursesw.so | grep -q /
12 $cc -print-file-name=libncurses.so | grep -q /
17 $cc -print-file-name=libcurses.so | grep -q /
28 if [ -f /usr/include/ncurses/ncurses.h ]; then
29 echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
30 elif [ -f /usr/include/ncurses/curses.h ]; then
31 echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
32 elif [ -f /usr/include/ncurses.h ]; then
33 echo '-DCURSES_LOC="<ncurses.h>"'
35 echo '-DCURSES_LOC="<curses.h>"'
39 # Temp file, try to clean up after us
41 trap "rm -f $tmp" 0 1 2 3 15
43 # Check if we can link to ncurses
45 echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null
47 echo " *** Unable to find the ncurses libraries." 1>&2
48 echo " *** make menuconfig require the ncurses libraries" 1>&2
50 echo " *** Install ncurses (ncurses-devel) and try again" 1>&2
57 printf "Usage: $0 [-check compiler options|-header|-library]\n"