forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove LIL_ENDIAN macro and configure option
TODO: Remove other endian cruft from: - hashing algs - judy - squashfs - grub - tms320 Signed-off-by: Damien Zammit <[email protected]>
- Loading branch information
Showing
13 changed files
with
20 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# This script was automatically generated by ACR v0.10.0 | ||
# This script was automatically generated by ACR v0.10.1 | ||
# @author: pancake <nopcode.org> | ||
# @url: http://www.nopcode.org | ||
# @repo: git clone https://github.com/radare/acr | ||
|
@@ -26,8 +26,6 @@ USE_ZIP=0 | |
WITH_GPL=1 | ||
WANT_OPENSSL=0 | ||
USE_RPATH=0 | ||
HAVE_LILEND=0 | ||
HAVE_BIGEND=0 | ||
[ -z "${USERCC}" ] && USERCC="gcc" | ||
[ -z "${USEROSTYPE}" ] && USEROSTYPE="auto" | ||
WITHPIC=1 | ||
|
@@ -160,8 +158,7 @@ System types: | |
--target=TARGET configure for building compilers for TARGET [HOST] | ||
EOF2 | ||
|
||
printf " | ||
Optional Features: | ||
printf "\nOptional Features: | ||
--disable-debugger disable native debugger features | ||
--with-sysmagic force to use system's magic | ||
--disable-loadlibs disable loading plugins | ||
|
@@ -171,27 +168,21 @@ Optional Features: | |
--without-gpl do not build GPL code (grub, cxx, ... ) | ||
--with-openssl build with openssl if possible | ||
--with-rpath use rpath to build | ||
--with-little-endian force little endian | ||
--with-big-endian force big endian | ||
--with-compiler Define compiler to use (see mk/) (USERCC=gcc) | ||
--with-ostype Choose OS type ( gnulinux windows darwin haiku ) (USEROSTYPE=auto) | ||
--without-pic do not build libr as a program independent location | ||
--with-nonpic build the library archives .a | ||
--with-libversion specify different libversion (LIBVERSION=xxx) | ||
" | ||
printf " | ||
Some influential environment variables: | ||
--with-libversion specify different libversion (LIBVERSION=xxx)\n" | ||
printf "\nSome influential environment variables: | ||
CC C compiler command | ||
CFLAGS C compiler flags | ||
CPPFLAGS C preprocessor flags | ||
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
nonstandard directory <lib dir> | ||
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
headers in a nonstandard directory <include dir> | ||
CPP C preprocessor | ||
" | ||
printf " | ||
Report bugs to: pancake <[email protected]>" | ||
CPP C preprocessor\n" | ||
printf "\nReport bugs to: pancake <[email protected]>" | ||
echo "" | ||
exit 0 | ||
} | ||
|
@@ -204,7 +195,7 @@ take_environ() { | |
} | ||
|
||
show_version() { | ||
echo "radare2-0.10.3-git configuration script done with acr v0.10.0. | ||
echo "radare2-0.10.3-git configuration script done with acr v0.10.1. | ||
The 'Free Software Foundation' message is only for autodetection. | ||
Originally written by pancake <nopcode.org>." | ||
exit 0 | ||
|
@@ -233,7 +224,7 @@ echo "LANGS: c" | |
echo "REQUIRED: libdl" | ||
echo "OPTIONAL: libmagic" | ||
echo "PKG-CONFIG: capstone openssl" | ||
echo "FLAGS: --disable-debugger --with-sysmagic --disable-loadlibs --without-fork --with-syscapstone --with-syszip --without-gpl --with-openssl --with-rpath --with-little-endian --with-big-endian --with-compiler=gcc --with-ostype=auto --without-pic --with-nonpic --with-libversion=xxx" | ||
echo "FLAGS: --disable-debugger --with-sysmagic --disable-loadlibs --without-fork --with-syscapstone --with-syszip --without-gpl --with-openssl --with-rpath --with-compiler=gcc --with-ostype=auto --without-pic --with-nonpic --with-libversion=xxx" | ||
exit 0 | ||
;; | ||
--cache-file) | ||
|
@@ -286,8 +277,6 @@ echo "FLAGS: --disable-debugger --with-sysmagic --disable-loadlibs --without | |
"--without-gpl") WITH_GPL="0"; ;; | ||
"--with-openssl") WANT_OPENSSL="1"; ;; | ||
"--with-rpath") USE_RPATH="1"; ;; | ||
"--with-little-endian") HAVE_LILEND="1"; ;; | ||
"--with-big-endian") HAVE_BIGEND="1"; ;; | ||
--with-compiler) if [ -z "${value}" ]; then USERCC="gcc"; else USERCC="${value}" ; fi ;; | ||
--with-ostype) if [ -z "${value}" ]; then USEROSTYPE="auto"; else USEROSTYPE="${value}" ; fi ;; | ||
"--without-pic") WITHPIC="0"; ;; | ||
|
@@ -310,7 +299,7 @@ parse_options $1 | |
shift | ||
done | ||
|
||
ENVWORDS="MANDIR INFODIR LIBDIR INCLUDEDIR LOCALSTATEDIR SYSCONFDIR DATADIR LIBEXECDIR SBINDIR BINDIR EPREFIX PREFIX SPREFIX TARGET HOST BUILD INSTALL INSTALL_LIB INSTALL_MAN INSTALL_PROGRAM INSTALL_PROGRAM_STRIP INSTALL_DIR INSTALL_SCRIPT INSTALL_DATA HOST_OS HOST_CPU BUILD_OS BUILD_CPU TARGET_OS TARGET_CPU PKGNAME VPATH VERSION CONTACT CONTACT_NAME CONTACT_MAIL CC CFLAGS CPPFLAGS LDFLAGS HAVE_LANG_C DEBUGGER HAVE_LIB_DL DL_LIBS HAVE_PATCH PATCH HAVE_GIT GIT LIL_ENDIAN BIG_ENDIAN BYTEORDER HAVE_LIB_MAGIC USE_MAGIC USE_LIB_MAGIC LIBMAGIC LOADLIBS HAVE_FORK WITH_CAPSTONE CAPSTONE_CFLAGS CAPSTONE_LDFLAGS HAVE_PKGCFG_CAPSTONE USE_CAPSTONE HAVE_LIB_Z HAVE_LIB_ZIP USE_ZIP USE_LIB_ZIP LIBZIP WITH_GPL HAVE_LIB_GMP HAVE_GMP HAVE_LIB_SSL SSL_CFLAGS SSL_LDFLAGS HAVE_PKGCFG_OPENSSL HAVE_OPENSSL WANT_OPENSSL USE_RPATH HAVE_LILEND HAVE_BIGEND HAVE_LIB_LUA5_1 USERCC USEROSTYPE WITHPIC WITHNONPIC LIBVERSION" | ||
ENVWORDS="MANDIR INFODIR LIBDIR INCLUDEDIR LOCALSTATEDIR SYSCONFDIR DATADIR LIBEXECDIR SBINDIR BINDIR EPREFIX PREFIX SPREFIX TARGET HOST BUILD INSTALL INSTALL_LIB INSTALL_MAN INSTALL_PROGRAM INSTALL_PROGRAM_STRIP INSTALL_DIR INSTALL_SCRIPT INSTALL_DATA HOST_OS HOST_CPU BUILD_OS BUILD_CPU TARGET_OS TARGET_CPU PKGNAME VPATH VERSION CONTACT CONTACT_NAME CONTACT_MAIL CC CFLAGS CPPFLAGS LDFLAGS HAVE_LANG_C DEBUGGER HAVE_LIB_DL DL_LIBS HAVE_PATCH PATCH HAVE_GIT GIT HAVE_LIB_MAGIC USE_MAGIC USE_LIB_MAGIC LIBMAGIC LOADLIBS HAVE_FORK WITH_CAPSTONE CAPSTONE_CFLAGS CAPSTONE_LDFLAGS HAVE_PKGCFG_CAPSTONE USE_CAPSTONE HAVE_LIB_Z HAVE_LIB_ZIP USE_ZIP USE_LIB_ZIP LIBZIP WITH_GPL HAVE_LIB_GMP HAVE_GMP HAVE_LIB_SSL SSL_CFLAGS SSL_LDFLAGS HAVE_PKGCFG_OPENSSL HAVE_OPENSSL WANT_OPENSSL USE_RPATH HAVE_LIB_LUA5_1 USERCC USEROSTYPE WITHPIC WITHNONPIC LIBVERSION" | ||
|
||
create_environ | ||
|
||
|
@@ -325,7 +314,6 @@ echo "checking for working directories... ${WODIS}" | |
echo "using prefix '${PREFIX}'" | ||
ACR_RMFILES=" test.c a.out a.exe" | ||
|
||
|
||
: | ||
COMPILER=CC | ||
printf "checking for c compiler... " | ||
|
@@ -370,8 +358,8 @@ else | |
done | ||
unset IFS | ||
fi | ||
if [ -n "${FIND}" ]; then | ||
echo ${FIND}; | ||
if [ -n "${FIND}" ]; then | ||
echo ${FIND}; | ||
HAVE_PATCH=1 | ||
PATCH=${FIND} | ||
else | ||
|
@@ -394,27 +382,14 @@ else | |
done | ||
unset IFS | ||
fi | ||
if [ -n "${FIND}" ]; then | ||
echo ${FIND}; | ||
if [ -n "${FIND}" ]; then | ||
echo ${FIND}; | ||
HAVE_GIT=1 | ||
GIT=${FIND} | ||
else | ||
HAVE_GIT=0 | ||
GIT=git | ||
echo no ; fi | ||
printf "checking host endianness... " | ||
LIL_ENDIAN=$(printf I|od|awk '{print substr($2,6,1);exit}') | ||
if [ 0 != 0 -o "${LIL_ENDIAN}" = 1 ]; then | ||
BYTEORDER=1234 | ||
BIG_ENDIAN=0 | ||
echo little | ||
else | ||
BYTEORDER=4321 | ||
BIG_ENDIAN=1 | ||
LIL_ENDIAN=0 | ||
echo big | ||
fi | ||
|
||
check_library() { | ||
VAR=$1 | ||
S="$" | ||
|
@@ -493,10 +468,6 @@ if [ "$HAVE_LIB_SSL" = "0" ]; then | |
HAVE_OPENSSL="0" | ||
else | ||
SSL_LDFLAGS="-lssl"; fi; fi | ||
if [ "$HAVE_LILEND" = "1" ]; then | ||
LIL_ENDIAN="1"; fi | ||
if [ "$HAVE_BIGEND" = "1" ]; then | ||
LIL_ENDIAN="0"; fi | ||
check_library HAVE_LIB_LUA5_1 lua5.1 0 | ||
if [ "$USEROSTYPE" = "auto" ]; then | ||
if [ "$HOST_OS" = "mingw32_nt-6.2" ]; then | ||
|
@@ -575,7 +546,7 @@ done | |
do_remove | ||
echo | ||
echo "Final report:" | ||
for A in PREFIX HAVE_LIB_GMP HAVE_OPENSSL USE_CAPSTONE HAVE_FORK VERSION USE_LIB_ZIP USE_LIB_MAGIC DEBUGGER CC USERCC USEROSTYPE LIL_ENDIAN LIBVERSION ; do # REPORT | ||
for A in PREFIX HAVE_LIB_GMP HAVE_OPENSSL USE_CAPSTONE HAVE_FORK VERSION USE_LIB_ZIP USE_LIB_MAGIC DEBUGGER CC USERCC USEROSTYPE LIBVERSION ; do # REPORT | ||
eval VAL="\$${A}" | ||
[ -z "${VAL}" ] && VAL="(null)" | ||
echo " - ${A} = ${VAL}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters