__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
set -eu
cflags=$1
libs=$2
PKG="ncursesw menuw panelw"
PKG2="ncurses menu panel"
if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then
if ${HOSTPKG_CONFIG} --exists $PKG; then
${HOSTPKG_CONFIG} --cflags ${PKG} > ${cflags}
${HOSTPKG_CONFIG} --libs ${PKG} > ${libs}
exit 0
fi
if ${HOSTPKG_CONFIG} --exists $PKG2; then
${HOSTPKG_CONFIG} --cflags ${PKG2} > ${cflags}
${HOSTPKG_CONFIG} --libs ${PKG2} > ${libs}
exit 0
fi
fi
# Check the default paths in case pkg-config is not installed.
# (Even if it is installed, some distributions such as openSUSE cannot
# find ncurses by pkg-config.)
if [ -f /usr/include/ncursesw/ncurses.h ]; then
echo -D_GNU_SOURCE -I/usr/include/ncursesw > ${cflags}
echo -lncursesw -lmenuw -lpanelw > ${libs}
exit 0
fi
if [ -f /usr/include/ncurses/ncurses.h ]; then
echo -D_GNU_SOURCE -I/usr/include/ncurses > ${cflags}
echo -lncurses -lmenu -lpanel > ${libs}
exit 0
fi
if [ -f /usr/include/ncurses.h ]; then
echo -D_GNU_SOURCE > ${cflags}
echo -lncurses -lmenu -lpanel > ${libs}
exit 0
fi
echo >&2 "*"
echo >&2 "* Unable to find the ncurses package."
echo >&2 "* Install ncurses (ncurses-devel or libncurses-dev"
echo >&2 "* depending on your distribution)."
echo >&2 "*"
echo >&2 "* You may also need to install ${HOSTPKG_CONFIG} to find the"
echo >&2 "* ncurses installed in a non-default location."
echo >&2 "*"
exit 1
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| lxdialog | Folder | 0755 |
|
|
| tests | Folder | 0755 |
|
|
| .gitignore | File | 124 B | 0644 |
|
| Makefile | File | 8.47 KB | 0644 |
|
| conf.c | File | 18.48 KB | 0644 |
|
| confdata.c | File | 21.79 KB | 0644 |
|
| expr.c | File | 28.54 KB | 0644 |
|
| expr.h | File | 8.73 KB | 0644 |
|
| gconf-cfg.sh | File | 793 B | 0755 |
|
| gconf.c | File | 36.36 KB | 0644 |
|
| gconf.glade | File | 25.04 KB | 0644 |
|
| images.c | File | 6.42 KB | 0644 |
|
| images.h | File | 857 B | 0644 |
|
| internal.h | File | 548 B | 0644 |
|
| lexer.l | File | 8.89 KB | 0644 |
|
| lkc.h | File | 3.54 KB | 0644 |
|
| lkc_proto.h | File | 1.79 KB | 0644 |
|
| mconf-cfg.sh | File | 1.48 KB | 0755 |
|
| mconf.c | File | 25.31 KB | 0644 |
|
| menu.c | File | 18.2 KB | 0644 |
|
| merge_config.sh | File | 5.29 KB | 0755 |
|
| mnconf-common.c | File | 794 B | 0644 |
|
| mnconf-common.h | File | 397 B | 0644 |
|
| nconf-cfg.sh | File | 1.38 KB | 0755 |
|
| nconf.c | File | 38.26 KB | 0644 |
|
| nconf.gui.c | File | 15.43 KB | 0644 |
|
| nconf.h | File | 2.21 KB | 0644 |
|
| parser.y | File | 16.17 KB | 0644 |
|
| preprocess.c | File | 11.06 KB | 0644 |
|
| preprocess.h | File | 432 B | 0644 |
|
| qconf-cfg.sh | File | 1020 B | 0755 |
|
| qconf.cc | File | 41.47 KB | 0644 |
|
| qconf.h | File | 6.25 KB | 0644 |
|
| streamline_config.pl | File | 16.77 KB | 0755 |
|
| symbol.c | File | 28.43 KB | 0644 |
|
| util.c | File | 1.85 KB | 0644 |
|