Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (14 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
Location:
branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/BIG.FAT.WARNING

    r1765 r2725  
    11This is NOT the official version of dialog.  This version has been
    2 significantly modified from the original.  It is for use by the Linux
    3 busybox configuration script.  Please do not bother Savio Lam with
    4 questions about this program.
     2significantly modified from the original.  It was used by the Linux
     3kernel configuration script, and subsequently adapted for busybox.
     4Please do not bother Savio Lam with questions about this program.
  • branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/Makefile

    r1765 r2725  
    1313PHONY += dochecklxdialog
    1414$(obj)/dochecklxdialog:
    15     $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES)
     15    $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
    1616
    1717hostprogs-y := lxdialog
  • branches/2.2.9/mindi-busybox/scripts/kconfig/lxdialog/check-lxdialog.sh

    r1765 r2725  
    55ldflags()
    66{
    7     $cc -print-file-name=libncursesw.so | grep -q /
    8     if [ $? -eq 0 ]; then
    9         echo '-lncursesw'
    10         exit
    11     fi
    12     $cc -print-file-name=libncurses.so | grep -q /
    13     if [ $? -eq 0 ]; then
    14         echo '-lncurses'
    15         exit
    16     fi
    17     $cc -print-file-name=libcurses.so | grep -q /
    18     if [ $? -eq 0 ]; then
    19         echo '-lcurses'
    20         exit
    21     fi
     7    for ext in so a dylib ; do
     8        for lib in ncursesw ncurses curses ; do
     9            $cc -print-file-name=lib${lib}.${ext} | grep -q /
     10            if [ $? -eq 0 ]; then
     11                echo "-l${lib}"
     12                exit
     13            fi
     14        done
     15    done
    2216    exit 1
    2317}
     
    2620ccflags()
    2721{
    28     if [ -f /usr/include/ncurses/ncurses.h ]; then
     22    if [ -f /usr/include/ncursesw/ncurses.h ]; then
     23        echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"'
     24    elif [ -f /usr/include/ncursesw/curses.h ]; then
     25        echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
     26    elif [ -f /usr/include/ncurses/ncurses.h ]; then
    2927        echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
    3028    elif [ -f /usr/include/ncurses/curses.h ]; then
     
    4341# Check if we can link to ncurses
    4442check() {
    45     echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null
     43        $cc -xc - -o $tmp 2>/dev/null <<'EOF'
     44#include CURSES_LOC
     45main() {}
     46EOF
    4647    if [ $? != 0 ]; then
    47         echo " *** Unable to find the ncurses libraries."          1>&2
    48         echo " *** make menuconfig require the ncurses libraries"  1>&2
    49         echo " *** "                                               1>&2
    50         echo " *** Install ncurses (ncurses-devel) and try again"  1>&2
    51         echo " *** "                                               1>&2
    52         exit 1
     48        echo " *** Unable to find the ncurses libraries or the"       1>&2
     49        echo " *** required header files."                            1>&2
     50        echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
     51        echo " *** "                                                  1>&2
     52        echo " *** Install ncurses (ncurses-devel) and try again."    1>&2
     53        echo " *** "                                                  1>&2
     54        exit 1
    5355    fi
    5456}
    5557
    5658usage() {
    57     printf "Usage: $0 [-check compiler options|-header|-library]\n"
     59    printf "Usage: $0 [-check compiler options|-ccflags|-ldflags compiler options]\n"
    5860}
    5961
    60 if [ $# == 0 ]; then
     62if [ $# -eq 0 ]; then
    6163    usage
    6264    exit 1
Note: See TracChangeset for help on using the changeset viewer.